This API is used to block phone number from sending/recieving SMS/Voice Calls.
Method: Get/Post

Base URL :
Mandatory Parameters Sample Description
key 374593457034859 The company account API key, you can get from company settings > API settings
phone_number 9651112222 the phone number to block

Optional Parameters Sample Description
service_to_unlock 1 OR 2 OR 3 1: for SMS, 2 for Voice, 3 for All (Default value)
block_on_number 54886655 if this variable is sent, the blocking will be made on this phone number (DID), this number must be a registered phone number on the account



Example :[¶meter=parameter¶meter=parameter]

Response :

  1. {
  2. "message":"success",
  3. }
  4. ------OR------
  5. {
  6. "error_message":"error message"
  7. }