GET - Fetch All Domains

Purpose

The API fetches a list of all the domains added to the specified organization, including details such as the verification status and verification code.

OAuth Scope

Use the scope

ZohoMail.organization.domains.ALL (or) ZohoMail.organization.domains.READ

to generate the Authtoken.

ALL - Grants full access to domains.

READ - Grants read access to domains.

Request URL

Method: GET

 https://mail.zoho.com/api/organization/{zoid}/domains

Path Parameters

  • zoid* long
    • This parameter specifies the unique Zoho Organization Identifier for the organization.
    • This parameter can be fetched from Get Organization Details API.

 

* - Mandatory parameter

Response Codes

Refer here for the response codes and their meaning.

Sample Request

Copiedcurl "https://mail.zoho.com/api/organization/1234567890/domains" \
-X GET \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization:Zoho-oauthtoken 1********" 

Sample Response

Copied{
   "status": {
       "code": 200,
       "description": "success"
   },
   "data": {
       "domainVO": [
           {
               "lastName": "T",
               "isDomainAlias": false,
               "mxstatus": "expired",
               "verificationStatus": true,
               "dkimstatus": false,
               "zoid": 1234567890,
               "catchAllExcludeAddresses": [],
               "verifiedBy": 699104950,
               "URI": "https://mail.zoho.com/api/organization/699103332/domains/zylkerbiz.com",
               "domainId": "1082700000213855787",
               "verifiedByAddress": "test@zylkerbiz.com",
               "firstName": "test",
               "spfstatus": false,
               "subDomainStripping": 0,
               "HTMLVerificationCode": "94873515",
               "verifiedDate": 1619586519236,
               "dkimDetailList": [
                   {
                       "isDefault": false,
                       "isVerified": false,
                       "selector": "zmail",
                       "publicKey": "v=DKIM1; k=rsa; p=MWGfMA0GCUpGNIb3DQEBAQUAA4GNADCBiQKBgQCNTHXgi6v4fGVy6y6Z2KjLVuM0T7TEWTHgjGxVQWdlLvMgmIPxEBEXZchCm4KHpYiAdflcPRQy1cYW676JRJaoIZw3szGkSOkJsxhdiwwTYBBTGM478WFJ2bZYN2wMBT9jOF1oj5qeiCHszHbsHLcSEiFlPJD65eA/yZqMZdDv2QIDAQAB",
                       "hashType": "sha256",
                       "domainId": "1082700000213850787",
                       "dkimId": "1082700000213855089"
                   }
               ],
               "domainName": "zylkernew.com",
               "mailHostingEnabled": true,
               "createdTime": 1619586448940,
               "CNAMEVerificationCode": "zb94873515",
               "isExpired": true,
               "isRegisteredByZoho": false,
               "primary": false
           }
       ]
   }
}