data can be empty when every record already existed.curl --location 'https://api.zapmail.ai/api/v3/dns' \
--header 'x-auth-zapmail;' \
--header 'Content-Type: application/json' \
--data-raw '{
"assignedDomainId": "83e2d581-fcb5-48e5-ad21-02f0e57eec69",
"records": [
{
"host": "mail",
"value": "ghs.googlehosted.com",
"recordType": "CNAME"
},
{
"host": "@",
"value": "smtp.google.com",
"recordType": "MX",
"priority": "1"
}
]
}'{
"status": 200,
"message": "Dns records added successfully",
"data": [
{
"id": "0e7a4d62-1b93-4c58-a6f0-3d8c5b9e2a17",
"assignedDomainId": "83e2d581-fcb5-48e5-ad21-02f0e57eec69",
"cdfRecordId": "372e67954025e0ba6aaa6d586b9e0b59",
"cdfResponse": {
"id": "372e67954025e0ba6aaa6d586b9e0b59",
"type": "CNAME",
"name": "mail.acme-outreach.com",
"content": "ghs.googlehosted.com"
},
"recordType": "CNAME",
"value": "ghs.googlehosted.com",
"host": "mail",
"priority": null,
"createdAt": "2026-10-26T09:00:00.000Z",
"updatedAt": "2026-10-26T09:00:00.000Z"
}
]
}