Delete domain

Purpose

This API deletes a domain added to the ZeptoMail account.

Request URL

Method : DELETE

https://api.zeptomail.com/v1.1/domains/{domain_key}

OAuth scope

The steps to generate and use OAuth token can be found here.

scope=Zeptomail.Suppressions.All

or

scope=Zeptomail.Suppressions.DELETE

ALL -This gives full CRUD (Create, Read, Update and Delete) access to all domain APIs.

DELETE - This allows access only to the DELETE operation.

Path parameters

ParameterTypeDescription
domain_key *StringIdentification key of the domain to be edited. This key can be obtained using the GET domains API.

Note:

* - Mandatory parameter

Sample request

Copiedcurl "https://api.zeptomail.in/v1.1/domains/{domain_key}"
-X DELETE
-H "Authorization : Zoho-oauthtoken ***"\
-H "Content-Type : application/json" \

Success response

CopiedSuccess response code: 204

Failure response parameter

Copied     {
         "error":
         {
             "code": "DE_111",
             "message": "Domain verified in another account"
         },
         "status": "failure"
     }