Bring your own keys
Get BYOK Status
Whether your workspace runs on its own keys, whose keys are in use (own, or developer for a customer using its developer's), which keys you bring (scope: all three, only your voice, only your language model, or your language model and your voice), whether your keys for that scope are complete enough to switch on, and each key, masked to its last four characters.
GET/byok
Headers
- Katexs-Workspacestring
- Developers only: the customer workspace this request acts in — its
org_…id fromPOST /customers. Leave it out to act in your own workspace. Refused with404(Workspace not found.) when the id is unknown, is not one of your customers, or is not anorg_…id;410when that customer was deleted (restore it withPOST /customers/{id}/restoreuntil it is erased);403when the key belongs to one customer workspace (it cannot act as another);400when your workspace is not a developer workspace./customers/*andGET /customers/usageare your own workspace's and refuse the header with400: call them without it.
Example request
bash
curl "https://app.katexs.com/api/v1/byok" \
-H "Authorization: Bearer $KATEXS_API_KEY"Responses
| Status | Description |
|---|---|
200 | The workspace's BYOK state. |
400 | Katexs-Workspace was sent from a workspace that is not a developer 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 | The Katexs-Workspace header names a workspace that is unknown, is not one of your customers, or is not an org_… id. Always this one sentence, so a key cannot learn which ids exist in other accounts. |
410 | The customer named in Katexs-Workspace was deleted. POST /customers/{id}/restore brings it back until 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
- enabledbooleanrequired
- Whether this workspace has switched its own keys on.
- scopestringrequired
- What this workspace brings:
all— speech-to-text, LLM and voice keys (a call is $0.012/min all-in, a chat reply at the own-key reply price);voice— only the voice key, with our speech-to-text, model and telephony (a call is billed at the voice-only BYOK rate, replies as usual);llm— only the language-model key, with our speech-to-text and voice (a call is billed on the same Premium or Studio voice plan as any call, a chat reply at the own-key reply price);llm_voice— the language-model key and the voice key, with our speech recogniser (a call is a flat $0.012/min likeall, no model limit, a chat reply at the own-key reply price). It is the default for your agents; an agent may choose its own (byokon the agent).allunless changed. One of:all,voice,llm,llm_voice. - usingScopestring | nullrequired
- The scope that applies right now — a customer inheriting runs on its developer's scope — or null when no keys apply. One of:
all,voice,llm,llm_voice. - usingstringrequired
- Whose keys calls and replies use right now: this workspace's, its developer's (a customer inheriting them), or none. One of:
own,developer,none. - completebooleanrequired
- Whether this workspace's own keys for its
scopeare verified and each has a model — what turning BYOK on needs (all three underall, the voice key undervoice, the LLM key underllm, the LLM and voice keys underllm_voice). - credentialsobject[]required
- This workspace's own keys, masked.
200 response
{
"enabled": true,
"scope": "all",
"usingScope": "all",
"using": "own",
"complete": true,
"credentials": [
{
"kind": "stt",
"provider": "deepgram",
"label": "Deepgram",
"key": "…k9z2",
"fields": {
"model": "nova-3-general"
},
"model": "nova-3-general",
"models": [
"flux-general-en",
"nova-3-general",
"nova-3-medical",
"nova-2-general"
],
"verifiedAt": "2026-10-06T10:00:12.441Z",
"updatedAt": "2026-10-06T10:00:12.441Z"
},
{
"kind": "llm",
"provider": "openai",
"label": "OpenAI",
"key": "…Qw7m",
"fields": {
"model": "gpt-5.4-nano"
},
"model": "gpt-5.4-nano",
"models": [
"gpt-5.4",
"gpt-5.4-mini",
"gpt-5.4-nano",
"gpt-4.1-mini"
],
"verifiedAt": "2026-10-06T10:01:40.902Z",
"updatedAt": "2026-10-06T10:01:40.902Z"
},
{
"kind": "tts",
"provider": "elevenlabs",
"label": "ElevenLabs",
"key": "…3c1d",
"fields": {
"model": "eleven_flash_v2_5"
},
"model": "eleven_flash_v2_5",
"models": [
"eleven_flash_v2_5",
"eleven_turbo_v2_5",
"eleven_multilingual_v2"
],
"verifiedAt": "2026-10-06T10:02:05.117Z",
"updatedAt": "2026-10-06T10:02:05.117Z"
}
]
}Last updated November 2026 · Found a problem? Email support@katexs.com
