Skip to main content

Add domain to suppression list

Description

Adds an email domain to a specified suppression list.

Request URL

Method: POST

https://example.com/api/v1.1/suppresses/domain_add

Request parameters

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
domainstring"example.com"YesEmail domain
formatstring"json"NoResponse data format.
By default – json
idint1YesSuppression list ID

Request example

{
"token": "abcdefghijklmnqrstuvwxyz",
"domain": "example.com",
"id": 1
}

Response example

{
"data": {
"example.com": true
},
"error": 0,
"error_text": "Successful operation"
}

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text