NOTE: Before calling this API, update your domain’s Name Server (NS) records to the following:
pns61.cloudns.net
pns62.cloudns.com
pns63.cloudns.net
pns64.cloudns.ukYou can poll the endpoint to fetch the real time status of connection
{
"domainNames": [
"company.com"
]
}curl --location --request POST 'https://api.zapmail.ai/api/v2/domains/connect-domain' \
--header 'x-auth-zapmail;' \
--header 'x-workspace-key;' \
--header 'x-service-provider;' \
--header 'Content-Type: application/json' \
--data-raw '{
"domainNames": [
"company.com"
]
}'{
"status": 0,
"message": "string",
"data": {
"status": "string",
"domains": {
"acmecorpfor123zap.info": {
"status": "string",
"metadata": null,
"dnsManagedBy": "string",
"createdAt": "string",
"updatedAt": "string"
}
}
}
}