Documentation ›
Contacts › Delete contact
DELETE
Delete contact
DELETEhttps://app.sendapp.ai/api/contacts/{id}
Delete a single contact by ID. Only contacts belonging to your account can be deleted — any other ID returns 404.
Parameters
apikey
required
La tua API Key (anche header
X-API-Key).
id
required
Contact ID (integer, in the path). Use
GET /api/contacts to find it. Request
curl -X DELETE 'https://app.sendapp.ai/api/contacts/42' \
-H 'X-API-Key: YOUR_API_KEY'<?php
$ch = curl_init('https://app.sendapp.ai/api/contacts/42');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => ['X-API-Key: YOUR_API_KEY'],
]);
echo curl_exec($ch);
curl_close($ch);const res = await fetch('https://app.sendapp.ai/api/contacts/42', {
method: 'DELETE',
headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
console.log(await res.json());Response (200 OK)
{
"status": "success",
"message": "Contact deleted."
}Error
{
"status": "error",
"message": "Contact not found."
}