Customers
Create Customer
Creates a workspace for one of your customers and answers with its id — send that id as Katexs-Workspace to act inside it. Your first customer makes your workspace a developer workspace; everything a customer uses (calls, messages, replies, number rental) is charged to your balance at your plan's prices, and your plan caps how many customers you may have (3 on Free and pay-as-you-go, 100 on Pro, 1,000 on Scale, 10,000 on Enterprise; a deleted customer counts until it is erased). Send an Idempotency-Key so a retry never makes a second workspace. Needs a full key.
POST/customers
Headers
- Idempotency-Keystring
- Any unique string. A retry with the same key within 24 hours returns the first request's answer instead of acting twice.
Request body
- namestringrequired
- The customer's name, as your dashboard shows it. Trimmed.
- externalIdstring | null
- Your own id for this customer: 1-128 letters, digits,
.,_,:or-. Unique among your customers, and filterable on List Customers. - metadataobject
- 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.
- timezonestring | null
- An IANA time zone such as
Asia/KolkataorEurope/Boston. Leave it out for the default. - idempotencyKeystring
- The same as the
Idempotency-Keyheader, for clients that cannot set headers. The header wins when both are sent.
Example request
bash
curl -X POST "https://app.katexs.com/api/v1/customers" \
-H "Authorization: Bearer $KATEXS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Sunrise Dental Clinic",
"externalId": "clinic-0042",
"metadata": {
"city": "Austin",
"tier": "gold",
"seats": 3
},
"timezone": "Asia/Kolkata"
}'Responses
| Status | Description |
|---|---|
201 | The customer was created. |
400 | A field is wrong (the message names it), or the request carried the Katexs-Workspace header, or the key belongs to a customer workspace. |
401 | The key is missing, wrong or revoked. The answer is always the same, whichever it is. |
402 | Your plan's customer limit is reached. |
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. |
409 | Another of your customers already has that externalId, or your workspace resells the console under white label (a reseller cannot also have 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
- 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.
201 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": null,
"archivedAt": null,
"eraseAfter": null,
"createdAt": "2026-10-06T09:30:12.881Z"
}Last updated November 2026 · Found a problem? Email support@katexs.com
