Nothing found

Remove contact

API URL

URL used to send HTTP requests:

https://portal.bulkgate.com/api/1.0/address-book/remove
Note

If the request does not reach its destination, repeat it on the backup server backup1.bulkgate.com.

Supported HTTP methods

  • POST - application/json
POST /api/1.0/address-book/remove HTTP/1.1 Host: portal.bulkgate.com Content-Type: application/json

Parameters table

PARAMETER NAME VALUE MANDATORY DEFAULT VALUE
application_id Application ID Yes -
application_token Application token Yes -
phone_number Phone number of contact to be removed. Yes -
category The address book to work with. Defaults to the account main one. No main

Example request

POST /api/1.0/address-book/remove HTTP/1.1 Host: portal.bulkgate.com Content-Type: application/json { "application_id": 451, "application_token": "NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj", "phone_number": "123456789" }

Response

In case of success:

{ "data": { "message": "contact_has_been_removed" } }

In case of error:

{ "type": "number_not_found", "code": 400, "error": "Number not found", "detail": null } { "type": "invalid_phone_number", "code": 400, "error": "Invalid phone number", "detail": null }

Where:

  • type and error (description of the error) can be found in the error types table
  • code represents http error
  • detail is an additional info about the error
Was this page helpful?