Agents
Get Agent
One agent: its instructions, model, languages, script, widget, call settings and the details it collects from calls. Which engine speaks its voice or runs its model is never part of the answer.
GET/agents/{id}
Path parameters
- idstringrequired
- The agent's id (
ag_…), as List Agents returns it. Another workspace's agent is the same404as one that never existed.
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/agents/{id}" \
-H "Authorization: Bearer $KATEXS_API_KEY"Responses
| Status | Description |
|---|---|
200 | The agent. |
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 | No such agent in your workspace. |
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
- idstringrequired
- The agent's id.
- namestringrequired
- The agent's name, 2 to 60 characters.
- instructionsstringrequired
- What the agent is and how it behaves — its standing prompt.
- greetingstringrequired
- The first thing it says, or an empty string.
- businessDescriptionstringrequired
- One line about the business, or an empty string.
- modelstring | nullrequired
- A model id from List Models.
nullwhen the agent is on a model that has since been retired. - temperaturenumberrequired
- How adventurous the wording is. Range: 0–2.
- maxReplyTokensintegerrequired
- The longest a reply may be, in tokens — one ceiling for chat and calls. Range: 100–800.
- languagestringrequired
auto(reply in the customer's language) or the language it always replies in, e.g.Hindi. When the agent is set to speak several languages this isauto: readlanguages.- languagesstring[]required
- The languages the agent speaks, as the console shows them:
[]is auto, one name is that language alone, and two to four are the languages it expects, the first being the one it falls back to. - secondLanguagestring | nullrequired
- Retired — always
null. An agent answers in one language,language. Still returned so a client that reads it keeps working. - escalationobjectrequired
- When the agent hands the conversation to a person on your team.
- captureLeadsbooleanrequired
- Whether it takes a name, email or phone number from an interested customer.
- ownRulesbooleanrequired
- true leaves out the platform's own lead, hand-over and call-back sentences, for a business that writes those rules in its instructions. Left out: the sentence about asking for details (or that the business does not collect them), the hand-over rule (or that nobody can be handed to, and that nobody should promise a follow-up) and the "cannot book a call back" sentence. Kept whatever you send: the boundary, the AI disclosure, the reply language, the date, your own instructions, and how a call is put through to a person.
- scheduleCallbacksbooleanrequired
- Whether it may book a call back when asked.
- stepsobject[]required
- Its conversation script, in order.
- widgetobjectrequired
- The website chat widget's look.
- voiceobject | nullrequired
- How it handles calls.
nullwhen the agent has no voice channel (a deployment without voice). - byokstringrequired
- How this agent uses the workspace's own provider keys (Bring your own keys).
null(orworkspace) follows the workspace: its default scope applies when it brings its own keys.offnever does: our voices and models at our normal pricing, whatever the workspace does, and the model is not held to the voice-only-BYOK model list.all,voice,llmorllm_voiceruns this agent on that scope's keys whatever the workspace default is; refused with409naming the missing key unless the workspace holds verified keys for every kind that scope needs. If a key goes later, the agent falls back to the workspace's scope at the next call. Omit the field to leave it unchanged; saved BYOK model and voice choices are kept but not used while it isoff. Read back asworkspacewhen it follows the workspace. One of:workspace,off,all,voice,llm,llm_voice. - collectFieldsobject[]required
- The details it fills in after every call, in the shape a call's
extracttakes. Empty when it collects nothing. - webKeystring | nullrequired
- The public key the website widget embeds (
pk_…). It is published on your site, so it is not a secret. - createdAtstring (date-time)required
- When the agent was made.
200 response
{
"id": "ag_5c4a5f93-2b1e-4d7a-9f60-8e2d1c3b4a71",
"name": "Skyline Sales",
"instructions": "You call people who enquired about a flat at Sky Towers, Baner. Find out their budget, preferred size and when they can visit the site.",
"greeting": "Namaste, I'm calling from Skyline Homes about your enquiry for Sky Towers.",
"businessDescription": "Skyline Homes builds 2 and 3 bedroom homes in Austin.",
"model": "prana-voice",
"temperature": 0.3,
"maxReplyTokens": 300,
"language": "Hindi",
"secondLanguage": null,
"escalation": {
"onNoAnswer": false,
"onRequest": true
},
"captureLeads": true,
"ownRules": false,
"scheduleCallbacks": false,
"steps": [
{
"title": "Confirm the enquiry",
"detail": "Check they enquired about Sky Towers and are still looking.",
"branches": [],
"collect": []
},
{
"title": "Budget and size",
"detail": "Ask for their budget and whether they want a 2 BHK or a 3 BHK.",
"branches": [],
"collect": []
}
],
"widget": {
"theme": "classic",
"accent": "#0f766e",
"height": 806,
"welcomeScreen": true,
"welcomeCollectLeads": true
},
"voice": {
"answersCalls": true,
"surfaces": [
"web",
"whatsapp",
"phone"
],
"voice": "priya",
"phoneNumber": "+14155550134",
"language": null,
"summariseCalls": true,
"detectMachines": false,
"recordCalls": true,
"maxCallSeconds": 300,
"ringSeconds": 30,
"pastConversations": "quiet",
"unavailableMessage": null,
"unavailableMessageNote": null,
"callStartUrl": null,
"thinking": true,
"thinkingLines": [],
"thinkingDelayMs": 900,
"thinkingRepeatMs": 2500,
"thinkingAtTurnEnd": false,
"turnSilenceSeconds": null,
"turnDetection": null,
"reaskAfterSeconds": null,
"recordDoNotCall": true,
"interruptWords": 3,
"neverInterrupt": false,
"earlyAnswers": true,
"holdShortSpeech": true,
"greetingUninterruptible": false,
"ambience": null,
"ambienceVolume": 0.15,
"endCallOnFinish": false,
"nudgeAfterSeconds": null,
"nudges": 1,
"nudgePhrase": null,
"endAfterSilenceSeconds": null,
"endPhrases": [],
"callInstructions": null
},
"byok": "workspace",
"collectFields": [
{
"name": "budget",
"type": "number",
"description": "Budget in dollars",
"choices": null
},
{
"name": "interest",
"type": "text",
"description": null,
"choices": [
"Hot",
"Warm",
"Cold"
]
}
],
"webKey": "pk_9fQ2xLm7Rt4vWb8KcN3hYd6sJ1pZ",
"createdAt": "2026-09-17T09:39:31.204Z"
}Last updated November 2026 · Found a problem? Email support@katexs.com
