Skip to main content
Altcraft Docs LogoAltcraft Docs Logo
User guideDeveloper guideAdmin guide
Company siteHelp center
English
  • Русский
  • English
v75
Login
  • User API documentation
  • API interaction
  • Matching
  • Profiles
  • Databases
  • Resources
  • Segments
  • Suppression lists
    • Create suppression list
    • Update suppression list
    • Get suppression list info
    • Get the list of suppression lists
    • Delete suppression list
    • Upload suppression list data to file
    • Suppression list actions
      • Check if email is suppressed
      • Add email to suppression list
      • Add multiple emails to suppression list
      • Remove email from suppression list
      • Remove all emails from suppression list
      • Check if domain is suppressed
      • Add domain to suppression list
      • Add multiple domains to suppression list
      • Remove domain from suppression list
      • Remove all domains from suppression list
      • Check if phone number is suppressed
      • Add phone number to suppression list
      • Add multiple phones to suppression list
      • Remove phone number from suppression list
      • Remove all phone numbers from suppression list
  • Templates and fragments
  • Campaigns
  • Mailings
  • Automation scenarios
  • Loyalty Programs
  • Promo codes
  • Goals
  • Application push notifications
  • Market
  • Analytic reports
  • SendersDev
  • External datatables queries
  • Objects
  • Miscellaneous
  • Importing the API collection in Postman
  • List of API endpoints
  • SDK
  • Suppression lists
  • Suppression list actions
  • Check if phone number is suppressed
Documentation for version v75

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​

  • JSON
  • XML
{
"token":"abcdefghijklmnqrstuvwxyz",
"id":1,
"value":"+79000000001"
}
<xml>
<token>abcdefghijklmnqrstuvwxyz</token>
<id>1</id>
<value>+79000000001</value>
</xml>

Response example​

  • JSON
  • XML
{
"domain_matched": false,
"email_matched": false,
"error": 0,
"error_text": "Successful operation",
"matched": true,
"phone_matched": true
}
<xml>
<domain_matched>false</domain_matched>
<email_matched>false</email_matched>
<error>0</error>
<error_text>Successful operation</error_text>
<matched>true</matched>
<phone_matched>true</phone_matched>
</xml>

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
Last updated on Oct 11, 2024
Previous
Remove all domains from suppression list
Next
Add phone number to suppression list
  • Description
  • Request URL
  • Request parameters
  • Request example
  • Response example
  • Response parameters
© 2015 - 2025 Altcraft, LLC. All rights reserved.