Developer Docs

Table of contents

Add a contact to the Stoplist

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
Request parameters:
ParameterRequiredTypeDescription 
phonesYesarrayArray of the phone numbers
typesYesarraySpecify the stop list type: sms, viber

Request sample:

{
  "phones": [
    85226010227,
    85236016161
  ],
  "types": [
    "sms"
  ]
}
Response parameters

If the query is successful, you will get a 200 Successful attached.

If the query fails, an error object will be returned.

We use cookies (and other similar technologies) to collect data to improve your experience on our site. By using our website, you’re agreeing to the collection of data as described in our Website Data Collection Policy.