Skip to content

Latest commit



62 lines (46 loc) · 2 KB

File metadata and controls

62 lines (46 loc) · 2 KB

REST API: GET senderdomain

This method is used to fetch an existing senderdomain with the REST API. It uses an HTTP GET request to the following address:$id?access_token=xxxx

Replace the $id with the identifier of the senderdomain you want to fetch.

Returned parameters

Name Description
ID Unique numerical identifier of the senderdomain.
domain The domain that you are sending email with.
approved Whether the senderdomain is validated or not.
records A list with the different DNS records

JSON voorbeeld

The JSON for the database might look something like this:

   "ID": "113",
   "domain": "",
   "approved": true,
   "records": [{
       "type": "dns",
       "property": "validation",
       "record": "TXT",
       "name": "",
       "value": "Q3YzYwMGI0ODNlYzUxMmE2ZWVhM2JjMDY1MTUwOGQ4OTZiNjhhMjgzMzQ1MGE1MWZkNjhiZDgwNwxx",
       "actual": [],
       "valid": "valid"
   }, ...]

PHP example

The following example demonstrates how to use this method:

// dependencies

// change this into your access token
$api = new CopernicaRestAPI("your-access-token", 3);

// do the call, and print result

The example above requires the CopernicaRestApi class.

More information