Get started
Customers
Build your own product on the API: a workspace for each of your customers, reached with one key.
A customer is a workspace you create for one of your own customers — with its own agents, contacts, knowledge, phone numbers and WhatsApp. Your one API key reaches any of them by adding a header. Everything they use is billed to you.
Note
Your first customer makes your workspace a developer workspace. A workspace that resells our console under its own brand (white label) cannot also have API customers.
Create a customer
POST /api/v1/customers
Authorization: Bearer ta_live_…
Idempotency-Key: 6f1d2c9a-…
Content-Type: application/json{
"name": "Acme Dental",
"externalId": "acme-42",
"metadata": { "tier": "gold", "seats": 3 },
"timezone": "Asia/Kolkata"
}201 Created
{
"id": "org_1f2e…",
"name": "Acme Dental",
"externalId": "acme-42",
"metadata": { "tier": "gold", "seats": 3 },
"timezone": "Asia/Kolkata",
"allottedCallLines": null,
"archivedAt": null,
"eraseAfter": null,
"createdAt": "2026-10-06T10:00:00Z"
}| Field | |
|---|---|
name | Required. 1–120 characters. |
externalId | Your own id for this customer: 1–128 letters, digits, . _ : or -. Unique among your customers. |
metadata | Up to 50 keys (1–40 characters each). Values are strings (up to 500 characters), numbers or booleans — no nested objects or lists. 8 KB in all. |
timezone | An IANA time zone such as Asia/Kolkata. |
Send an Idempotency-Key so a retried request returns the same customer instead of making a second one. Creating a customer needs a key with full access.
| Status | Why |
|---|---|
400 | A field is wrong — the message names it. |
402 | Your plan's customer limit is reached. |
409 | Another customer already has that externalId, or your workspace uses white label. |
Work inside a customer
Add Katexs-Workspace with the customer's id to any request. It runs inside that customer as if the customer had sent it. X-Workspace is the same header under a neutral name; send one or the other. Both naming different workspaces is refused with 400.
POST /api/v1/agents
Authorization: Bearer ta_live_…
Katexs-Workspace: org_1f2e…{ "name": "Front desk" }| You send | You get |
|---|---|
| No header, or your own workspace | Your own workspace |
| One of your customers | That customer |
| Someone else's customer, or an id that does not exist | 404 Workspace not found. |
| A customer you deleted | 410 — with when it was deleted and when it will be erased |
| The header from a workspace with no customers | 400 |
Your key's access level applies inside the customer too: a read-only key can only read there.
List customers
GET /api/v1/customers?limit=50Newest first. Pass nextCursor back as cursor for the next page. Filters: externalId, archived=true (deleted, waiting to be erased), createdAfter, createdBefore (ISO 8601 times).
Manage customers from your own workspace — without Katexs-Workspace.
Get one customer
GET /api/v1/customers/org_1f2e…The customer, plus:
{
"counts": { "agents": 2, "phoneNumbers": 1, "contacts": 418 },
"spendThisMonthMicro": 1840000
}spendThisMonthMicro is what this customer's usage has cost you since the 1st of the month (UTC), in millionths of your currency — 1840000 is $1.84.
Update a customer
PATCH /api/v1/customers/org_1f2e…{ "name": "Acme Dental Pvt", "metadata": { "tier": null, "region": "south" } }You can change name, externalId (null clears it), timezone, allottedCallLines (how many of your call lines this customer may use at once; null for no cap) and metadata. Metadata is merged: keys you leave out are kept, and a key set to null is removed.
Delete a customer
DELETE /api/v1/customers/org_1f2e…Warning
Release the customer's phone numbers and disconnect its WhatsApp number first. Deleting is refused (409, naming them) while it still holds either, because releasing a number cannot be undone.
When you delete a customer:
- requests into it answer
410, and keys made for it stop working; - its webhooks are switched off, its campaigns cancelled, its sequences and scheduled callbacks stopped;
- a call already in progress finishes;
- 30 days later it is erased — every conversation, contact, recording and file.
Until then you can bring it back:
POST /api/v1/customers/org_1f2e…/restoreRestoring does not restart campaigns or bring back old keys — start those again yourself.
Keys for one customer
To give a customer its own API access, or to run one customer's integration on a key that cannot reach the others:
POST /api/v1/customers/org_1f2e…/keys{ "name": "Acme's dashboard", "scope": "read" }The key (ta_live_…) is in the response once. scope is full, build or read.
GET /api/v1/customers/{id}/keys | The customer's keys — name, prefix, access level, last used. Never the key itself. |
DELETE /api/v1/customers/{id}/keys/{keyId} | Revoke it, immediately. |
A key made for one customer works only in that customer.
Move a phone number between customers
A number one customer rents can be handed to another customer, or to your own workspace, with its digits kept — for a customer that is splitting in two, or a number you rented for yourself while setting a customer up.
In the console it is on the Phone Numbers page: open the number's menu and choose Move to another workspace…. Through the API:
curl -X POST https://app.katexs.com/api/v1/phone-numbers/918041234567/move \
-H "Authorization: Bearer $KEY" \
-H "Katexs-Workspace: org_…from…" \
-H "Content-Type: application/json" \
-d '{ "toWorkspace": "org_…to…" }'Send it as the workspace that holds the number (no header when that is your own). It answers with the number, from, to and paidThrough — the last month already paid, after which the new workspace's rent begins. The number arrives unassigned; point it with PATCH /api/v1/phone-numbers/{number} as the new workspace. Nothing moves during a live call (number_on_live_call). See Move Phone Number for every refusal.
Billing
Everything your customers use — calls, messages, replies, phone number rental — is charged to your balance at your plan's prices. Your customers have no balance of their own. When your balance runs out, your customers stop with you until you top up.
A customer is always on your plan. Your plan decides how many customers you can have:
| Plan | Customers |
|---|---|
| Free and Pay as you go | 3 |
| Pro | 100 |
| Scale | 1,000 |
| Enterprise | 10,000 |
Need more? Write to us. A deleted customer counts until it is erased.
On the Free plan, the included replies, voice minutes and WhatsApp messages are shared by you and all your customers — one trial, not one each.
What a customer can see
Your balance stays yours. Inside a customer, GET /api/v1/usage returns "billedTo": "developer" and no wallet, and its console shows no balance and nothing to pay — so a key you give a customer, or a person you invite into it, never sees what you hold.
Your cloned voices
Every voice you clone can be used by all your customers' agents, automatically: inside a customer, GET /voices lists it with "sharedFromDeveloper": true. Only you can rename or delete it, and it counts against your clone limit. Its id inside a customer is your own voice's id, the same one you see in your workspace, so you set it as an agent's voice the same way. A customer's own clones are its own; you do not see them. More on the Voice Clone page.
How long a customer's calls are kept
Set callRetentionDays on a customer with PATCH /workspace and the Katexs-Workspace header, the same as any other setting of theirs. See How long calls are kept.
Notifications
Your customers have no members of their own, so anything we would tell them — a webhook switched off, a template rejected, a campaign in trouble — comes to you, with the customer's name in the title, and is emailed according to your own notification settings. Its Open link takes you into that customer's workspace, to the template or campaign it is about. So does a low-balance warning caused by your customers' usage.
Currency
You and your customers use one currency, US dollars, fixed once you have a customer. Make sure it is set to dollars before you create your first customer.
Last updated November 2026 · Found a problem? Email support@katexs.com
