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

ParametersData TypeDescription
responseJSON ObjectContains the response details of the API.
codeIntegerSuccess or failure code.
messageStringSuccess or failure message returned by the API.
errorsJSON ArrayContains 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"
       }
   ]
}