Customers
Restore Customer
Brings back a deleted customer before its erase date, with everything it held. It does not restart campaigns or revive the keys that were revoked when it was deleted: start those again and mint new keys. Restoring a customer that was never deleted answers it unchanged. Needs a full key.
POST/customers/{id}/restore
Path parameters
- idstringrequired
- The customer's
id(org_…), as Create Customer answered.
Example request
bash
curl -X POST "https://app.katexs.com/api/v1/customers/{id}/restore" \
-H "Authorization: Bearer $KATEXS_API_KEY"Responses
| Status | Description |
|---|---|
200 | The customer, live again. |
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 | Your workspace resells the console under white label: its workspaces are clients, managed in the console, not API customers. |
410 | The customer is past its erase date. |
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": null,
"eraseAfter": null,
"createdAt": "2026-10-02T06:14:22.418Z"
}Last updated November 2026 · Found a problem? Email support@katexs.com
