Skip to main content

Delete Contact

Each agent API request in TeleCMI platform includes agent login token. After getting the agent login token, make a POST request to the below base URL to delete the existing contact.

Base URL​

Send your POST method request with valid parameters, to the following base URL.

https://piopiy.telecmi.com/v1/deleteContact

Required Parameters​

These are the required POST method parameters with description

Parameter NameTypeDescription
*tokenstringYour agent token
*mobilenumberThe phone number of the saved contact
Note
The * marked parameter is mandatory.

Sample JSON Request​

Below is the following sample JSON POST method request

{
"token": "xxxx-xxxx-xxxx-xxxx",
"mobile": 9200000000
}

Sample Response​

If the provided information is valid, your web server will get a sample response from TeleCMI Platform as given below

{
"code": 200,
"msg": "Contact Removed"
}

Properties​

These are the list of properties and its description

PropertyTypeDescription
msgstringContact Removed

HTTP status codes​

TeleCMI API platform represents the following status code to identity the errors.

Status codeStatus TypeDescription
200SuccessWe received the request
400ErrorInvalid app id or secret, authentication failed, Missing parameter