DELETE https://app.alaaqat.com/api/contacts/delete-selected
Deletes one or more contacts in a single request. Each contact's notes are deleted with it. Your API key needs the contact-delete ability.
{warning} Deleting is permanent. A deleted contact and its notes cannot be restored.
{
"Accept": "application/json",
"Content-Type": "application/json"
}
{
selected_ids: string[]
}
| Field | Required | Validation | Description |
|---|---|---|---|
| selected_ids | Required | An array of contact IDs | The _id of every contact to delete. |
{
"selected_ids": [
"6650f1a2b3c4d5e6f7a8b901",
"6650f1a2b3c4d5e6f7a8b902"
]
}
Send the IDs under selected_ids. Under any other name, nothing is deleted.
An ID that does not match a contact in your account is skipped, and the rest are still deleted.
200 OK
{
"message": "Entity was deleted successfully.",
"data": []
}
The response is the same whether every ID matched a contact or some were skipped. To check the result, list your contacts again.