This function deletes an existing contact. You only need to supply the unique contact ID and group ID that was returned upon creation.
API Endpoint #
https://app.text.lk/api/v3/contacts/{group_id}/delete/{uid}
HTTPParameters #
Parameter | Required | Type | Description |
group_id | Yes | string | Contact Group uid |
uid | Yes | string | Contact uid |
Example request #
curl -X DELETE https://app.text.lk/api/v3/contacts/{group_id}/delete/{uid}\
-H 'Authorization: Bearer API_KEY' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
HTTPExample response #
Returns a contact object if the request is successful.
{
"status": "success",
"data": "contacts data with all details",
}
HTTPIf the request fails, an error object will be returned.
{
"status": "error",
"message" : "A human-readable description of the error."
}
HTTP