Get DND List

Open in ChatGPT Open in ChatGPT to ask questions about this page
Open in Claude Open in Claude to ask questions about this page
Copy as MarkdownCopy this page as markdown to use with AI assistants
View as Markdown Open this page as markdown in a new tab

Retrieve a list of suppression (DND) entries. The suppression entry can be an email address or a domain. Supports filtering by date, mail agent, and search value.

Endpoint

Request URL

https://api.zeptomail.com/v1.1/suppressions/{dnd_type} Copied!

Scope

Zeptomail.Suppressions.READCopied!
(or)
Zeptomail.Suppressions.ALLCopied!

Request Parameters

- Path Parameters

dnd_typestringMandatory

Type of suppression entry. Use email for email address suppression or domain for domain suppression.

Allowed Values :
Show Values
emailCopied!
domainCopied!
Copied!Copy all as JSON Array

- Query Parameters

date_fromstringOptional

Filter entries added from this date (format: dd/MM/yyyy).

date_tostringOptional

Filter entries added up to this date (format: dd/MM/yyyy).

limitintegerOptional

Number of entries to return per request.

mailagent_keystringOptional

Filter entries by specific Mail Agent key.

offsetintegerOptional

Starting position for pagination.

search_valuestringOptional

Search for a specific email address or domain in the suppression list.

Sample Request

Curl
Java
Python
Deluge
Copied!
curl --request GET \
  --url 'https://api.zeptomail.com/v1.1/suppressions/{dnd_type}?date_from=01/06/2025&date_to=30/06/2025&limit=25&mailagent_key=123456abcd78&offset=0&search_value=user@example.com' \
  --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52'

Response Parameters

- HTTP code 200

Response Body - application/json
JSON Object
Show Sub-Attributes
dataJSON Array
Show Sub-Attributes
JSON Object
Show Sub-Attributes
created_timestring
actionstring
descriptionstring
valuestring
statusstring

- HTTP code 400

Response Body - application/json
JSON Object
Show Sub-Attributes
errorJSON Object
Show Sub-Attributes
codestring
messagestring
statusstring

Possible Response Codes

200HTTP code

List of suppression entries.

400HTTP code

Bad Request

Sample Response: HTTP 200

Copied!
  {
    "data": [
      {
        "created_time": "2025-06-01T10:00:00Z",
        "action": "reject",
        "description": "Customer opted out",
        "value": "user@example.com"
      }
    ],
    "status": "success"
  }
                
Show full

Sample Response: HTTP 400

Copied!
  {
    "error": {
      "code": "SP_400",
      "message": "Invalid request"
    },
    "status": "failure"
  }
                
Show full