Skip to main content

Check if email is suppressed

Description

Checks if an email address is in a suppression list.

Request URL

Method: POST

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

Request parameters

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
emailstring"john@example.com"YesEmail address to check
formatstring"json"NoResponse data format
By default – json
idint1YesSuppression list ID

Request example

{
"email": "john@example.com",
"id": 1,
"token": "abcdefghijklmnqrstuvwxyz"
}

Response example

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

Response parameters

ParameterTypeDescription
errorintError code
error_textstringerror text
domain_matchedbooltrue, if email domain is on the suppressed domains list
email_matchedbooltrue, if email domain is on the suppressed emails list
matchedbooltrue, if email address is on the suppressed emails or domains list