Delete Contacts

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.

Header

{
    "Accept": "application/json",
    "Content-Type": "application/json"
}

Body

{
    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.

Response

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.