Delete a contact

DELETE/v1/contacts/{id}

This endpoint allows you to delete a contact from your Protocol contact list. Once a contact is deleted, it cannot be recovered.

Path parameters

idstringrequired

The unique identifier of the contact to delete.

Request example

fetch('https://api.protocol.chat/v1/contacts/WAz8eIbvDR60rouK', {
method: 'DELETE',
headers: {
  'Authorization': 'Bearer {token}'
}
})
{
  "success": true,
  "message": "Contact successfully deleted"
}