Skip to content

Latest commit

 

History

History
48 lines (48 loc) · 1.71 KB

Add multiple numbers to sms blacklist.md

File metadata and controls

48 lines (48 loc) · 1.71 KB

Add multiple numbers to sms blacklist

Add multiple numbers to the user’s blacklist.

Remember to provide the authentication HTTP headers as described in the Authenticate using a session key and the Authenticate using a user token sections.
All the query string parameters in URL must be UTF-8 URL Encoded.

HTTP Headers

user_key / Session_key

HTTP Method

POST

HTTP Request

https://app.gateway.smsend.it/API/v1.0/REST/blacklist/smsbatch

Body Fields

Parameter Type Description Required Default
List(String) Array of phone numbers Yes “”
If one or more phone numbers are badly formatted, no numbers will be put in blacklist, and the response will have http status 400

Returns

200 Number of phone numbers correctly put in blacklist
400 Some of the phone numbers specified were badly formatted
401 [Unauthorized] User_key, Token or Session_key are invalid or not provided
404 [Not found] The User_key was not found