Skip to main content

Add phone number to suppression list

Description

Adds a phone number to a suppression list.

Request URL

Method: POST

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

Request parameters

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

Request example

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

Response example

{
"data": {
"+79000000991": true
},
"error": 0,
"error_text": "Successful operation"
}

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text
dataobjPhone number added to the suppression list