Customers
Revoke Customer Key
Revokes one of a customer's keys, immediately: its next request answers 401. Answers with the key as it now is. A key already revoked is 404. Needs a full key.
DELETE/customers/{id}/keys/{keyId}
Path parameters
- idstringrequired
- The customer's
id(org_…), as Create Customer answered. - keyIdstring (uuid)required
- The key's
id, from List Customer Keys.
Example request
bash
curl -X DELETE "https://app.katexs.com/api/v1/customers/{id}/keys/{keyId}" \
-H "Authorization: Bearer $KATEXS_API_KEY"Responses
| Status | Description |
|---|---|
200 | The key, now revoked. |
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 | No such customer, or no such live key in it. |
409 | Your workspace resells the console under white label: its workspaces are clients, managed in the console, not API customers. |
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
- idstring (uuid)required
- The key's id, for revoking it.
- namestringrequired
- What you called it.
- prefixstringrequired
- The key's first characters, so you can tell keys apart.
- scopestringrequired
- Its access level:
fulleverything;buildeverything except messaging customers, sending codes and placing calls;readreads only. One of:full,build,read. - createdAtstring (date-time)required
- lastUsedAtstring (date-time) | nullrequired
- When it last made a request; null if never.
- revokedAtstring (date-time) | nullrequired
- When it was revoked; null while it works.
200 response
{
"id": "0c7e4a92-3d1b-4f6a-8e25-91b7c3d4f5a6",
"name": "Sunrise front-desk dashboard",
"prefix": "ta_live_Xk3pQ9",
"scope": "read",
"createdAt": "2026-10-03T08:22:10.511Z",
"lastUsedAt": "2026-10-06T09:58:47.090Z",
"revokedAt": "2026-10-06T10:20:03.615Z"
}Last updated November 2026 · Found a problem? Email support@katexs.com
