curl -X POST https://api.magpipe.ai/functions/v1/delete-contact \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"contact_id": "c1d2e3f4-5678-9abc-def0-123456789abc"}'
const response = await fetch(
'https://api.magpipe.ai/functions/v1/delete-contact',
{
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
contact_id: 'c1d2e3f4-5678-9abc-def0-123456789abc'
}),
}
);
const result = await response.json();
console.log('Deleted:', result.success);
import requests
response = requests.post(
'https://api.magpipe.ai/functions/v1/delete-contact',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
json={'contact_id': 'c1d2e3f4-5678-9abc-def0-123456789abc'}
)
result = response.json()
print(f"Deleted: {result['success']}")
{
"success": true
}
{
"error": {
"code": "contact_not_found",
"message": "Contact not found"
}
}
Contacts
Delete Contact
Delete a contact from your address book
POST
/
delete-contact
curl -X POST https://api.magpipe.ai/functions/v1/delete-contact \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"contact_id": "c1d2e3f4-5678-9abc-def0-123456789abc"}'
const response = await fetch(
'https://api.magpipe.ai/functions/v1/delete-contact',
{
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
contact_id: 'c1d2e3f4-5678-9abc-def0-123456789abc'
}),
}
);
const result = await response.json();
console.log('Deleted:', result.success);
import requests
response = requests.post(
'https://api.magpipe.ai/functions/v1/delete-contact',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
json={'contact_id': 'c1d2e3f4-5678-9abc-def0-123456789abc'}
)
result = response.json()
print(f"Deleted: {result['success']}")
{
"success": true
}
{
"error": {
"code": "contact_not_found",
"message": "Contact not found"
}
}
Permanently delete a contact from your address book.
This action is irreversible. Contact notes and tags will be deleted. Call and message history will remain but will no longer be linked to this contact.
Request Body
string
required
The unique identifier of the contact to delete.
Response
boolean
Whether the contact was deleted successfully.
curl -X POST https://api.magpipe.ai/functions/v1/delete-contact \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"contact_id": "c1d2e3f4-5678-9abc-def0-123456789abc"}'
const response = await fetch(
'https://api.magpipe.ai/functions/v1/delete-contact',
{
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
contact_id: 'c1d2e3f4-5678-9abc-def0-123456789abc'
}),
}
);
const result = await response.json();
console.log('Deleted:', result.success);
import requests
response = requests.post(
'https://api.magpipe.ai/functions/v1/delete-contact',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
json={'contact_id': 'c1d2e3f4-5678-9abc-def0-123456789abc'}
)
result = response.json()
print(f"Deleted: {result['success']}")
{
"success": true
}
{
"error": {
"code": "contact_not_found",
"message": "Contact not found"
}
}
⌘I