Skip to main content

Check if domain is suppressed

Description

Check if an email domain is in a suppression list.

Request URL

Method: POST

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

Request parameters

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

Request example

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

Response example

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

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text
matchedbooltrue, if domain is on the suppression list