Skip to main content

Add multiple phones to suppression list

Description

Adds single or multiple phone numbers to a suppression list.

Request URL

Method: POST

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

Request parameters

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
valuesJSON array
[
"+79009009001",
"+79009009002"
]
YesList of phone numbers
formatstring"json"NoResponse data format.
By default –json
idint1YesSuppression list ID

Request example

{
"values": [
"+79009009001",
"+79009009002"
],
"id": 1,
"token": "abcdefghijklmnqrstuvwxyz"
}

Response example

{
"error": 0,
"error_text": "Successful operation",
"total_count": 2,
"total_duplicated": 0,
"total_imported": 2,
"total_invalid": 0
}

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text
total_countintTotal number of phone numbers
total_duplicatedintPhone numbers previously added to the stop list
total_importedintPhone numbers added
total_invalidintNumber of invalid phone numbers