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

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

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

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