Skip to content

Latest commit

 

History

History
51 lines (51 loc) · 1.77 KB

Add Phone Number to Blacklist.md

File metadata and controls

51 lines (51 loc) · 1.77 KB

Add Phone Number to Blacklist

Add Phone Number to SMS Blacklist The Phone number will no longer receive an SMS from the user requesting the addition to the 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/sms

Parameters

Parameter Type Description Required Default
phoneNumber String The phone number of the user. The format must be +1111111111 or 001111111111 Yes -

Returns

Code Description
200 The phone number is succesfully added.
400 [Bad request] Invalid recipient.
401 [Unauthorized] User_key, Token or Session_key are invalid or not provided
404 [Not found] The User_key was not found