Get details of a sending domain

Use this API to get sending domain details such as domain name, DNS record status and domain verification status.

Request Type

  • GET

Request URL to get list of domains

https://campaigns.zoho.com/emailapi/v1/settings/domain

Request URL to get single domain

https://campaigns.zoho.com/emailapi/v1/settings/domain/{domain-name}

Content-Type

application/json

List of Response Body Attributes

ParametersData TypeDescription
responseJSON ObjectContains the response details of the API.
codeIntegerSuccess or failure code.
messageStringSuccess or failure message returned by the API.
domainsJSON ArrayContains details of list of domains and their verification status.
domain_nameStringName of the domain.
is_sending_domain_verifiedBooleanReturns a true or false value based on the verification status.
is_bounce_domain_verifiedBooleanReturns a true or false value based on the verification status.
is_verifiedBooleanReturns true if both sending_domain and bounce_domain are verified and false otherwise.
errorsJSON ArrayContains the error details of the API such as 'code' and 'message'.
sending_domainJSON ObjectContains details of sending domain like host name, value.
dns_host_nameStringHost name of the sending domain.
dns_record_typeStringRecord type of the sending domain.
dns_valueStringValue or key of the sending domain.

Possible Errors

Error Codes

Description

400101

Domain name not provided

400102

Invalid domain name

400104

No such domain configured

400105

No domains configured yet

Success sample response to get details of list of domains

Copied{
   "response": {
       "code": 200101,
       "message": "Successfully obtained the list of configured domains"
   },
   "domains": [
       {
           "domain_name": "zylker.com",
           "is_sending_domain_verified": false,
           "is_bounce_domain_verified": false,
           "is_verified": false
       },
       {
           "domain_name": "ze.poster.in",
           "is_sending_domain_verified": true,
           "is_bounce_domain_verified": true,
           "is_verified": true
       }
   ]
}

Failure sample response to get details of list of domains

Copied{
   "errors": [
       {
           "code": 400105,
           "message": "No domains configured yet"
       }
   ]
}

Success sample response to details of a single domain

Copied{
   "domain_name": "zylker.com",
   "response": {
       "code": 200105,
       "message": "Successfully obtained the domain details"
   },
   "sending_domain": {
       "dns_host_name": "27723._domainkey.zylker.com",
       "dns_record_type": "TXT",
       "dns_value": "k=rsa; p=M1jjadf8123akfladsfhfadf1829318923/asdflasdf3YA6nhCglviEQIDAQAB",
       "is_verified": true
   },
   "bounce_domain": {
       "dns_host_name": "bounce.zylker.com",
       "dns_record_type": "CNAME",
       "dns_value": "1273771.send.zcsend.net",
       "is_verified": true
   }
}

Failure sample response to get details of a single domain

Copied{
   "errors": [
       {
           "code": 400104,
           "message": "No such domain configured"
       }
   ]
}