Delete Contact

Contacts

Delete Contact

Erases the contact: their conversations and transcripts, their calls, any queued call and their campaign rows go with them, and so does any duplicate that was merged into them. This cannot be undone. Use it for a person's request to be forgotten; to stop messaging someone, set their consent to withdrawn instead. A build key may do this.

DELETE/contacts/{id}

Erases the contact: their conversations and transcripts, their calls, any queued call and their campaign rows go with them, and so does any duplicate that was merged into them. This cannot be undone. Use it for a person's request to be forgotten; to stop messaging someone, set their consent to withdrawn instead. A build key may do this.

Recordings are erased too. The audio of their calls is deleted before the call rows go: a recording we store is deleted right away, the phone provider's copy of a call on a number we rent is deleted through your workspace's own account with them, and any copy made for model training is deleted. A file that cannot be deleted at that moment is queued and retried every night until it is gone; the contact is erased regardless, and the response says how many are still queued in recordingsPending.

Knowing when it is finished. Subscribe a webhook to contact.erased: it is sent once the erasure is complete — straight away when this answers 204, or from the nightly retry once the last queued recording is gone — with only the contact's id and when it was erased.

What is not erased. Do-not-call entries are kept deliberately, so the person is not called again. Webhook payloads we already sent are purged on their own schedule after 7 days. Copies in your own systems, and in your vendors', are yours to delete.

Path parameters

idstringrequired
The contact's id (cust_…).

Headers

Katexs-Workspacestring
Developers only: the customer workspace this request acts in — its org_… id from POST /customers. Leave it out to act in your own workspace. Refused with 404 (Workspace not found.) when the id is unknown, is not one of your customers, or is not an org_… id; 410 when that customer was deleted (restore it with POST /customers/{id}/restore until it is erased); 403 when the key belongs to one customer workspace (it cannot act as another); 400 when your workspace is not a developer workspace. /customers/* and GET /customers/usage are your own workspace's and refuse the header with 400: call them without it.

Example request

bash
curl -X DELETE "https://app.katexs.com/api/v1/contacts/{id}" \
  -H "Authorization: Bearer $KATEXS_API_KEY"

Responses

StatusDescription
200Erased. A recording could not be deleted at this moment and is queued; the nightly sweep retries it until it is gone.
204Erased, recordings included. No body.
400Katexs-Workspace was sent from a workspace that is not a developer workspace.
401The key is missing, wrong or revoked. The answer is always the same, whichever it is.
403The key's access level (read-only or build) does not allow this request, the plan does not include it, or a customer's key named another workspace in Katexs-Workspace. code says which: key_scope_read, key_scope_build, workspace_header_forbidden, or forbidden.
404No such contact in this workspace.
410The customer named in Katexs-Workspace was deleted. POST /customers/{id}/restore brings it back until its erase date.
429Over a per-minute limit. Wait for Retry-After seconds. code and limit say which limit: rate_limit_resources (240 requests a minute for the workspace), rate_limit_family (2,400 across a developer's customers), rate_limit_calls, rate_limit_messages, rate_limit_codes, rate_limit_code_recipient, concurrent_calls or number_daily_limit.
503The erasure could not start right now. Nothing was deleted; try again.

Response fields

recordingsPendingintegerrequired
How many recording files (stored audio, a carrier copy or a training copy) are still queued for deletion. Present only when above zero.
200 response
{
  "recordingsPending": 1
}

Last updated November 2026 · Found a problem? Email support@katexs.com