Customers
Delete Customer
Deletes a customer: requests into it answer 410 from now on, every key made for it is revoked, its webhooks are switched off, its campaigns cancelled and its sequences and scheduled callbacks stopped (a call already in progress finishes). 30 days later it is erased — every conversation, contact, recording and file — unless you restore it first. Refused while the customer still holds a rented phone number or a connected WhatsApp number: release those yourself first, because that cannot be undone. Deleting an already-deleted customer answers it as it is. Needs a full key.
DELETE/customers/{id}
Path parameters
- idstringrequired
- The customer's
id(org_…), as Create Customer answered.
Example request
bash
curl -X DELETE "https://app.katexs.com/api/v1/customers/{id}" \
-H "Authorization: Bearer $KATEXS_API_KEY"Responses
| Status | Description |
|---|---|
200 | The customer, now deleted, with the date it will be erased. |
400 | The request carried the Katexs-Workspace header. Customers are managed from your own workspace. |
401 | The key is missing, wrong or revoked. The answer is always the same, whichever it is. |
403 | The 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. |
404 | You have no customer with that id. Another developer's customer reads the same. |
409 | The customer still holds a rented phone number or a connected WhatsApp number (each is named), or your workspace is a white-label reseller. |
429 | Over 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. |
Response fields
- idstringrequired
- The customer's id (
org_…). Send it asKatexs-Workspaceto act inside this customer. - namestringrequired
- The customer's name.
- externalIdstring | nullrequired
- Your own id for this customer, unique among your customers; null when you gave none.
- metadataobjectrequired
- Your own flat key-value data about the customer: up to 50 keys of 1-40 characters, each value a string (up to 500 characters), a number or a boolean. No nested objects or lists; 8 KB in all.
- timezonestringrequired
- The customer's IANA time zone; every date its console shows is in it.
- allottedCallLinesinteger | nullrequired
- How many of your call lines this customer may use at once; null for no cap. Range: 0–.
- archivedAtstring (date-time) | nullrequired
- When the customer was deleted; null while it is live.
- eraseAfterstring (date-time) | nullrequired
- When a deleted customer will be erased for good (30 days after deletion); null while it is live.
- createdAtstring (date-time)required
- When the customer was created.
200 response
{
"id": "org_5b2f9c1e-8a4d-4f7b-9e3a-2c6d1f0a7b84",
"name": "Sunrise Dental Clinic",
"externalId": "clinic-0042",
"metadata": {
"city": "Austin",
"tier": "gold",
"seats": 3
},
"timezone": "Asia/Kolkata",
"allottedCallLines": 2,
"archivedAt": "2026-10-06T10:05:41.203Z",
"eraseAfter": "2026-11-05T10:05:41.203Z",
"createdAt": "2026-10-02T06:14:22.418Z"
}Last updated November 2026 · Found a problem? Email support@katexs.com
