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://cpaas.zoho.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.

Example
email
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).

Example
01/06/2025
date_tostringOptional

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

Example
30/06/2025
limitintegerOptional

Number of entries to return per request.

Example
25
mailagent_keystringOptional

Filter entries by specific Mail Agent key.

Example
123456abcd78
offsetintegerOptional

Starting position for pagination.

Example
0
search_valuestringOptional

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

Example
user@example.com

Sample Request

Curl
Java
Python
Deluge
Copied!
curl --request GET \
  --url 'https://cpaas.zoho.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
object
created_timestringread-only
Example
2025-06-01T10:00:00Z
actionstringread-only
Example
reject
descriptionstringread-only
Example
Customer opted out
valuestringread-only
Example
user@example.com
statusstringread-only
Example
success

- HTTP code 400

Response Body - application/json
JSON Object
Show Sub-Attributes
errorJSON Object
Show Sub-Attributes
codestringread-only
Example
SP_400
messagestringread-only
Example
Invalid request
statusstringread-only
Example
failure

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