Create Customer Key

Customers

Create Customer Key

Mints an API key that works in this one customer only — to give your customer its own API access, or to run one customer's integration on a key that cannot reach the others. The full key (ta_live_…) is in this response once; store it, because it is never shown again. Its usage is still charged to you. Needs a full key.

POST/customers/{id}/keys

Path parameters

idstringrequired
The customer's id (org_…), as Create Customer answered.

Request body

namestringrequired
What the key is for, so you know what to revoke later. Trimmed.
scopestring
The key's access level: full, build (everything except messaging customers, sending codes and placing calls) or read. One of: full, build, read. Default: full.

Example request

bash
curl -X POST "https://app.katexs.com/api/v1/customers/{id}/keys" \
  -H "Authorization: Bearer $KATEXS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Sunrise front-desk dashboard",
  "scope": "read"
}'

Responses

StatusDescription
201The key, with its secret shown this once.
400name or scope is wrong, or the request carried the Katexs-Workspace header.
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.
404You have no customer with that id. Another developer's customer reads the same.
409Your workspace resells the console under white label: its workspaces are clients, managed in the console, not API customers.
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.

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: full everything; build everything except messaging customers, sending codes and placing calls; read reads 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.
keystringrequired
The key itself, to send as Authorization: Bearer <key>. Shown in this response only.
201 response
{
  "id": "0c7e4a92-3d1b-4f6a-8e25-91b7c3d4f5a6",
  "name": "Sunrise front-desk dashboard",
  "prefix": "ta_live_Xk3pQ9",
  "scope": "read",
  "createdAt": "2026-10-06T10:12:45.330Z",
  "lastUsedAt": null,
  "revokedAt": null,
  "key": "ta_live_Xk3pQ9vLr2mT7yHc4bN8sJd1Wq6Ez0aUo5iKf3gPxRt"
}

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