Delete a sending domain
Use the delete API to delete a sending domain from your account. Ensure that the sending domain you want to delete is no longer in use or associated with any emails.
Note:
Any new transmission with the deleted domain will result in a rejection. This means transmissions in progress or scheduled will be rejected.
Request Type
DELETE
Request URL
https://campaigns.zoho.com/emailapi/v1/settings/domain
Content-Type
application/json
List of Request Body Attributes
Parameters | Data Type | Description |
domain* | String | Name of the domain to be deleted |
List of Response Body Attributes
Parameters | Data Type | Description |
response | JSON Object | Contains the response details of the API. |
code | Integer | Success or failure code. |
message | String | Success or failure message returned by the API. |
errors | JSON Array | Contains the error details of the API such as 'code' and 'message'. |
Possible Errors
Error Codes | Description |
400101 | Domain name not provided |
400102 | Invalid domain name |
400104 | No such domain configured |
Sample Request Payload
Copied{
"domain": "zylker.in"
}
Sample Response - Success
Copied{
"response": {
"code": 200104,
"message": "Domain deleted successfully"
}
}
Sample Response - Failure
Copied{
"errors": [
{
"code": 400104,
"message": "No such domain configured"
}
]
}