Skip to main content

Check if phone number is suppressed

Description

Checks if a phone number is in a suppression list.

Request URL

Method: POST

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

Request parameters

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
valuestring"+79000000001"YesPhone number to check
formatstring"json"NoResponse data format
By default – json
idint1YesSuppression list ID

Request example

{
"token":"abcdefghijklmnqrstuvwxyz",
"id":1,
"value":"+79000000001"
}

Response example

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

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text
domain_matchedbooltrue, if value is in the suppressed domains list
email_matchedbooltrue, if value is in the suppressed emails list
phone_matchedbooltrue, if value is in the list of suppressed phone numbers
matchedbooltrue, if value is in the suppressed emails, domains or phones list