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

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

Response example

{
"error": 0,
"error_text": "Successful operation"
}

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text