Contacts

Deleting a contact

Deleting a contact can be performed using a DELETE request to the /contacts/{id} endpoint. To do this you need to know the exact ‘link’ associated with the contact.

After performing this request, the response doesn't contain any information other than the headers as it's not necessary.

You request that a contact gets deleted, and when the204 No Content reponse is returned, the contact is successfully deleted.

You can also delete a contact from all mapped workspace in a single API call. See Deleting a contact from all workspaces.

  • JSON
  • XML

Deleting a contact

The following statement allows users to delete a contact using the Whispir API. Note that the contact will only be deleted from the current workspace.

{{codeStart}}

HTTP 1.1 DELETE https://api.<region>.whispir.com/contacts/124F6B2D46A5A268?apikey=<your_api_key>

Authorization: Basic am9obi5zbWl0aDpteXBhc3N3b3Jk

x-api-key: your_api_key

{{codeEnd}}