Developer Docs
Performs adding one or more contacts to the SMS or Viber stop list. When sending SMS or Viber, messages will not be sent to numbers added to the stop list.
To add contact to the stoplist, make a request to this URL:
POST http://one-api.bsg.world/api/stoplist/attach |
Parameter | Required | Type | Description |
phones | Yes | array | Array of the phone numbers |
types | Yes | array | Specify the stop list type: sms, viber |
{
"phones": [
85226010227,
85236016161
],
"types": [
"sms"
]
}
If the query is successful, you will get a 201 Successful attached.
{
"data": [
{
"id": 18815384,
"phone": 380662939860,
"created_at": "2023-02-06 12:30:26",
"sms_stoplist": true,
"viber_stoplist": true
}
]
}
If the query fails, an error object will be returned.