204 No Content.
DELETE
/api/v1/contacts/{identifier}Path Parameters
string
required
A contact lookup string using one of the three supported prefix formats. Minimum length: 1 character.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Permanently delete a contact from your ChatbotX Workspace using their internal ID, email address, or phone number as the identifier.
204 No Content.
/api/v1/contacts/{identifier}| Format | Example |
|---|---|
id:<value> | id:123456789 |
email:<value> | email:user@example.com |
phone:<value> | phone:+84708123123 |
curl --request DELETE \
--url "https://app.chatbotx.io/api/v1/contacts/email:user@example.com" \
--header "Authorization: Bearer YOUR_API_TOKEN"
import requests
identifier = "email:user@example.com"
url = f"https://app.chatbotx.io/api/v1/contacts/{identifier}"
headers = {"Authorization": "Bearer YOUR_API_TOKEN"}
response = requests.delete(url, headers=headers)
print(response.status_code) # 204 on success
const identifier = 'email:user@example.com';
const options = {
method: 'DELETE',
headers: { Authorization: 'Bearer YOUR_API_TOKEN' }
};
fetch(`https://app.chatbotx.io/api/v1/contacts/${identifier}`, options)
.then(res => {
if (res.status === 204) console.log('Contact deleted successfully');
})
.catch(err => console.error(err));
HTTP/1.1 204 No Content