Agents
Create Agent
Makes an agent exactly as the console does: a starter persona when you send no instructions, a website widget key, and (where your deployment has voice) a voice channel that answers on the web and WhatsApp. Only name is required. The plan's agent allowance, its model list and its voice tiers apply; a refused voice undoes the whole create. A build key may do this.
POST/agents
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.
Request body
- namestringrequired
- The agent's name, 2 to 60 characters, without hidden characters or markup.
- instructionsstring
- What the agent is and how it behaves. Left out, it gets the starter persona the console gives a blank agent. Re-sent on every reply, so every character costs on every turn.
- greetingstring
- The first thing it says on a call or in a chat.
- businessDescriptionstring
- One line about what the business is. Facts belong in Knowledge.
- modelstring | null
- A model id from List Models, or
nullfor the default (Prana [Voice]) — the same as leaving it out. An empty string is a 400. If given, it is the same list the console's one model picker offers, for chat and calls alike: it must be on your plan, quick enough to answer a call (voice: true), within the per-minute budget a call can carry, and not one of our voice-only models (they answer calls on their own and are never an agent's model). A chat-only agent is held to the same list, as in the console. Default:prana-voice. - temperaturenumber
- How adventurous the wording is. Clamped to 0–2. Default:
0.3. Range: 0–2. - maxReplyTokensnumber
- The longest a reply may be, in tokens, for chat and calls alike. Rounded and clamped to 100–800. Default:
300. Range: 100–800. - languagesstring[]
- The languages the agent speaks, by their English names:
[]is auto (reply in the customer's language), one name is that language alone, and two to four make the agent expect those languages, the first being the one it falls back to when it cannot tell. On a phone call the recogniser works out the language among them. Sendlanguagesorlanguage, not both:languagesets one language and clears this list. A name the console does not offer, a repeat, or more than four is refused with a 400. - languagestring
autoto reply in the customer's language, or a language the console offers by its English name: English, Hindi, Assamese, Bengali, Bodo, Dogri, French, German, Gujarati, Indonesian, Italian, Japanese, Kannada, Kashmiri, Konkani, Korean, Maithili, Malayalam, Manipuri, Marathi, Nepali, Odia, Polish, Portuguese, Punjabi, Russian, Sanskrit, Santali, Sindhi, Spanish, Swahili, Tamil, Telugu, Thai, Turkish, Urdu or Vietnamese. Default:auto.- secondLanguagestring | null
- Retired. Accepted so an older integration keeps working, but ignored: the agent answers in
languagealone. - escalationobject
- When the agent hands over to a person. Send either or both.
- escalation.onNoAnswerboolean
- Hand over when it cannot answer.
- escalation.onRequestboolean
- Hand over when the customer asks for a person.
- captureLeadsboolean
- Take a name, email or phone number from an interested customer. Default:
true. - ownRulesboolean
- 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. Default:
false. - scheduleCallbacksboolean
- Allow it to book a call back when asked. Default:
false. - welcomeScreenboolean
- Open the website widget on a welcome screen. Default:
true. - welcomeCollectLeadsboolean
- Ask for the visitor's details on the welcome screen. Default:
true. - stepsobject[]
- A conversation script, in order, replacing any there was. Blank steps are dropped.
- steps[].titlestring
- What the step is for. Trimmed and cut to 80 characters.
- steps[].detailstring
- What the agent should do here. Trimmed and cut to 600 characters.
- steps[].branchesobject[]
- Conditions within the step, e.g. when
If they are already a customer, actionskip to payment. A branch missing either half is dropped. Returned instepsas written. - steps[].collectstring[]
- What must be in hand before the step is done — a name, a date, an order number. Returned in
steps. - byokstring | null
- 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. - widgetobject
- The website widget's look. Send any subset.
- widget.themestring
- The widget's design. Anything else is refused with a 400. One of:
classic,modern. - widget.accentstring | null
- A colour as
#rrggbbor#rgb(the#optional). Null or an empty string clears it to the default; anything else that is not a colour is refused with a 400. - widget.welcomeScreenboolean
- Open the widget on a welcome screen — here, where it is returned, or top-level as before.
- widget.welcomeCollectLeadsboolean
- Ask for the visitor's details on the welcome screen — here or top-level.
- widget.heightnumber
- The open widget's height in pixels, clamped to 420–900. Range: 420–900.
- voiceobject
- How the agent handles calls. Send any subset. Where an agent has no voice channel yet, sending any of these creates one — switched OFF, so setting only a voice or a message never starts it taking calls; send
answersCalls: trueto switch it on. - voice.answersCallsboolean
- Whether the agent takes calls at all.
- voice.voicestring | null
- A voice id from List Voices. A Studio voice needs the Pro plan or above.
nullputs the agent back on the default voice a new agent starts with (currently Kavya, a Premium voice, which bills at the Premium rate) — the way back to the defaults. An empty string is refused with a 400. - voice.languagestring | null
- The language for calls: one the console offers, by its English name (
Hindi) or its tag (hi-IN), or null to follow the agent'slanguage. Anything else,autoincluded, is refused with a 400. - voice.summariseCallsboolean
- Write a summary after every call (a small charge per call).
- voice.detectMachinesboolean
- Hang up on an answering machine.
- voice.recordCallsboolean
- Record calls.
- voice.recordDoNotCallboolean
- Let the agent add a caller to your do-not-call list when they ask not to be called again. On by default;
falsetakes the ability away from this agent, and numbers you add yourself (API, Contacts page) are unaffected. In the console: Voice page, Do-not-call list. Default:true. - voice.maxCallSecondsinteger | null
- The longest a call may run, in whole seconds; null for the default ceiling of 20 minutes. Range: 60–1200.
- voice.ringSecondsinteger | null
- How long a call the agent places (API calls, campaigns, callbacks, test calls) rings before it is given up, in whole seconds (10 to 60);
nullfor the default of 30. In the console: Voice page, Ring time. A call nobody answers in that time ends asno_answer(thehangupofcall.completed), and a campaign retries it as one. Can be set per call on Place Call. Range: 10–60. - voice.pastConversationsstring
- What a call does with earlier conversations:
quiet(the default) uses them without mentioning it,recapopens by recapping them and asking whether to carry on,freshuses nothing from before. One of:fresh,quiet,recap. - voice.unavailableMessagestring | null
- What a caller hears when this agent's line is switched off (
answersCallsfalse), instead of the standard "not taking calls" sentence. Trimmed, control characters removed, 300 characters at most (longer is a 400, not a cut); null or blank clears it. Phone calls only. Spoken on Plivo numbers (English, or English in Roman letters, but not Hindi) and on Twilio numbers (English and Hindi); a Telnyx number a busy tone and WhatsApp calling a rejection. It is read by the provider's own English voice, so a message in any other script, or Hindi on Plivo, plays the standard sentence instead. The message is kept either way, andunavailableMessageNotesays when it will not be spoken as written. Never used for a call refused over a plan, a balance or busy lines. - voice.callStartUrlstring (uri) | null
- A call-start lookup: an https address of yours, asked who is calling when an inbound phone or WhatsApp call is about to be answered by the agent (not one forwarded to a person), before the agent speaks. We POST
{ "event": "call.started", "callId", "surface": "phone" | "whatsapp", "agentId", "from", "to", "direction": "inbound", "contact", "sentAt" }—tois the agent's voice line (also on a WhatsApp call), andcontactis the contact you hold under the caller's number (id,name,phone,email,externalId) or null — signed like a webhook (x-katexs-signature, andx-katexs-signature-v2over<x-katexs-delivered-at>.<body>) with the secret returned once asvoice.callStartSecret. Answer within 2 seconds with{ "variables": { "name": "Asha", "plan": "Gold" } }: up to 20, names normalised and values cut to 150 characters as for Place Call'svariables, strings, numbers and booleans only. They fill{{...}}placeholders in the greeting and instructions, over the contact's own fields (yours win). No answer in 2 seconds, a non-2xx status or anything else, and the call goes ahead without them; we never retry it, but the phone provider asks again if it did not get our answer in time, and that repeats the request with the samecallId, so dedupe oncallId. Must be https, not a private address, and carry no username or password.nullor an empty string switches it off and deletes the secret; a new address creates a new secret. Refused with503signing_unavailablewhile call-start requests cannot be signed (try again later). - voice.callStartSecretstring
- Send
"rotate"to create a new signing secret for the existingcallStartUrl(or the one in the same request); the old one stops working at once. The new secret comes back once, asvoice.callStartSecreton the response. Needs acallStartUrl. You cannot choose the secret yourself. One of:rotate. - voice.surfacesstring[]
- Where the agent answers calls:
web(the call button on your website),whatsapp(WhatsApp calls; whether a WhatsApp number takes calls is its own Calls switch on Connect WhatsApp),phone(its phone number). A new agent starts with["web", "whatsapp"], andphoneis added when a number is attached. Addingphonewhile the agent answers calls (answersCallstrue) and has no number to answer or call from is refused with409phone_number_required; with calls off you may set it first and attach a number after. On a plan that cannot hold a number,phoneis left out. While a number is attached,phonestays on even if you leave it out (a number nobody answers is a caller hearing silence): to stop the phone ringing, sendanswersCalls: falseor take the number off. Anything other than these three values is a 400. One of:phone,web,whatsapp. - voice.thinkingboolean
- Say a short filler ("One moment.") when a reply has not started after
thinkingDelayMs, for example while an action runs. Default:true. - voice.thinkingLinesstring[] | null
- Your own filler lines, one phrase per item: up to 8, each 60 characters or fewer after trimming (blank items are dropped; a line break inside an item is a 400). Longer or more is refused with a 400, never cut. Each call uses the lines written in the caller's script (Hindi lines on a Hindi call, English on an English one). Words of a language typed in Roman letters are converted to that language's script when saved.
nullor[]goes back to the built-in fillers in the caller's language. - voice.thinkingDelayMsinteger | null
- Milliseconds of quiet before the filler is said, 200 to 5000.
nullgoes back to 900. Default:900. Range: 200–5000. - voice.thinkingRepeatMsinteger | null
- Milliseconds after one filler before another may be said (and how often a long-running action is covered again), 1000 to 10000.
nullgoes back to 2500. Default:2500. Range: 1000–10000. - voice.thinkingAtTurnEndboolean
- Always acknowledge ("Okay.") the moment the caller stops, before every reply, instead of only when a reply is slow. Suits a slow model; on a quick one it is a syllable in front of everything. Default:
false. - voice.turnDetectionstring | null
- How the agent decides the caller has finished speaking.
smart: a model predicts whether the sentence is finished, so a caller who pauses to think is not cut off, but replies start later;turnSilenceSecondsis then a ceiling on how long it keeps waiting (0.6 s unless set).timer: a stretch of silence ends the turn, which is faster but cuts off people who pause mid-sentence;turnSilenceSecondsis that silence (0.25 s unless set).timer_v2: liketimer, but at each pause an AI check reads what the caller said and decides whether they have finished, so a pause mid-sentence is not answered as if they were done; words said over the agent are judged the same way (a listener's "haan ji" lets it carry on, a clear interruption stops it);turnSilenceSecondsis not used.ear: real-time speech recognition decides when the caller has finished, and can stop the agent while the caller is still speaking; the agent usestimeron a line where real-time recognition is not available.nullfollows the platform's own setting (the Voice page shows which). Anything else is a 400. One of:smart,timer,timer_v2,ear. - voice.turnSilenceSecondsnumber | null
- Seconds of quiet, 0.2 to 3. With
turnDetectiontimerit is the silence that ends the caller's turn (0.25 s unless set); withsmartit is a ceiling on how long the model may keep waiting (0.6 s unless set).nullgoes back to the default. Shorter answers sooner and cuts slow speakers off more often. Range: 0.2–3. - voice.reaskAfterSecondsnumber | null
- How long to wait, after a question the agent asked has had no answer, before it asks again.
0means never ask again; otherwise 1.5 to 10 seconds (one decimal).nullgoes back to the platform's 2.5 seconds. - voice.interruptWordsinteger | null
- How many words a caller must say to cut the agent off while it is speaking, 1 to 6. Short acknowledgements ("okay", "haan") under this never interrupt.
nullgoes back to 3. Default:3. Range: 1–6. - voice.neverInterruptboolean
- The agent can never be cut off, on any line, at any length — for a disclosure or a price read out in full. What the caller says meanwhile is handled by
holdShortSpeech. Default:false. - voice.realtimeVoicestring | null
- Only for an agent on a realtime model (OpenAI GPT-Live-1 or OpenAI GPT-Realtime Mini): one of that model's own voices, from
voiceson its entry in List Models. null is its default. The agent'svoiceis kept as it is, for when it goes back to another model. Realtime models are on the Enterprise plan only for now: we set them up on your agents, they are not in List Models, andmodelrefuses one as a new choice. - voice.realtimeSessionobject | null
- Only for an agent on OpenAI GPT-Realtime Mini: its session settings. Send only the fields you change; the rest keep their values. null puts them all back to the defaults. A value outside its range is brought into it; a wrong type or an unknown field is refused, naming it.
- voice.earlyAnswersboolean
- On by default. The agent starts working on its reply the moment it has heard what the caller said, while it is still making sure they have finished, so the first words come sooner. If the caller goes on, that early reply is thrown away and never spoken or recorded, but it still costs the model's tokens: on an agent that runs on your own model key they are billed to your key and are not counted in the call's
usage.falsestarts a reply only once the caller has finished. - voice.holdShortSpeechboolean
- Keep words the caller says over the agent (too few to interrupt) and answer them when it stops.
falsediscards them; if that was all the caller said, the agent finishes and waits. Default:true. - voice.greetingUninterruptibleboolean
- Let the greeting finish on phone calls even if the caller talks over it (callers often say "hello" on pickup). What they said is kept and answered next. Default:
false. - voice.openingWaitsForCallerboolean
- Hold the opening line until the person who picked up speaks, then play it right after their first words (a bare "Hello" that started it is not answered a second time). If they stay silent it plays after four seconds. Default false: it plays the moment the call connects. Phone calls on a voice agent; not used on a realtime model. Default:
false. - voice.openingWaitSecondsnumber | null
- With
openingWaitsForCalleron: how many seconds of silence after pickup before the opening plays anyway. 0.5 to 10, a tenth of a second at most. A shorter wait talks over a slow "Hello"; a longer one leaves a silent pickup waiting.nullis the default, 4. Range: 0.5–10. - voice.ambiencestring | null
- A background sound under the call:
office,office-quiet, ornullfor none. One of:office,office-quiet. - voice.ambienceVolumenumber | null
- The background sound's volume, 0.05 to 1, with at most two decimal places (more is refused with a 400).
nullgoes back to 0.15. Default:0.15. Range: 0.05–1. - voice.speakingSpeednumber | null
- How fast the agent talks, as a multiple of the voice's own pace: 0.9 is a little slower, 1.1 a little faster (the console's slider moves in steps of 0.05). Every voice follows it, cloned voices included, and so does a voice from your own voice account wherever that provider has a speed setting (a speed set in a Cartesia voice's own settings is used instead).
null(or 1) is the voice's own pace. Default:1. Range: 0.7–1.3. - voice.backchannelDetectionboolean
- Ear mode only. Tell a caller's backchannel ("haan ji", "okay", "mm-hmm") from a real interruption while the agent is talking. Off: only
interruptWordsdecides. Default:true. - voice.backchannelWordsstring[] | null
- Ear mode only. Caller backchannel words that always mean "I am listening", on top of what the agent recognises.
nullor[]is the agent's own judgement alone. - voice.acknowledgementsboolean
- Ear mode only. The agent speaks a short backchannel / acknowledgement when the caller pauses mid-explanation. Off: it waits silently. Default:
true. - voice.acknowledgementWordsstring[] | null
- Ear mode only. The agent's backchannel phrases, said in turn.
nullor[]is a short word in the caller's own language. - voice.vocabularystring[] | null
- Names and terms the agent should hear correctly on calls: your products, places, people. Given to the speech recognition as its custom vocabulary.
nullor[]is none. - voice.endCallOnFinishboolean
- Release the line when the agent ends the conversation. With it off, the call stays open until the caller hangs up and you are charged for every minute. Agents created in the console or by this API start with it off; an agent made earlier that never had it saved still reads as true.
- voice.nudgeAfterSecondsinteger | null
- Seconds of caller silence before the agent asks whether they are still there, 5 to 180.
nullnever asks. Range: 5–180. - voice.nudgesinteger | null
- How many times it asks before giving up, 1 to 5; reset whenever the caller speaks.
nullgoes back to 1. Default:1. Range: 1–5. - voice.nudgePhrasestring | null
- What it asks, 120 characters or fewer (longer is a 400).
nullor blank asks "Are you still there?" in the caller's language. - voice.endAfterSilenceSecondsinteger | null
- Seconds of caller silence after which the call ends, 5 to 180, or
null. When the agent also asks (nudgeAfterSeconds), this is raised to at leastnudgeAfterSeconds × (nudges + 1)so every question gets an answer window; with asking on and this null, the call ends when the last question goes unanswered. Range: 5–180. - voice.endPhrasesstring[] | null
- Phrases that end the call when the caller says them: up to 12, each 2 to 60 characters after trimming, and still at least 2 once punctuation is removed (a phrase such as
!!is refused with a 400 that names it). Matched case-insensitively anywhere in what the caller says, in any language — a short word also matches inside longer ones. Stored lower-case with punctuation removed; duplicates are dropped.nullor[]clears them. - voice.callInstructionsstring | null
- How the agent should speak on calls (the console's call instructions box), 4000 characters or fewer, separate from the agent's
instructionslimit. It REPLACES the built-in call rules and is added after the agent's instructions in the call prompt. Longer is refused with a 400, never cut.nullor blank goes back to the built-in rules. - collectFieldsobject[] | null
- The details to fill in from the transcript after every call; they arrive as
fieldsin each call's results. A call that sends its ownextractuses that instead.
Example request
bash
curl -X POST "https://app.katexs.com/api/v1/agents" \
-H "Authorization: Bearer $KATEXS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"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",
"language": "Hindi",
"escalation": {
"onRequest": true
},
"voice": {
"voice": "priya",
"summariseCalls": true,
"recordCalls": true,
"maxCallSeconds": 300
},
"collectFields": [
{
"name": "budget",
"type": "number",
"description": "Budget in dollars"
},
{
"name": "interest",
"choices": [
"Hot",
"Warm",
"Cold"
]
}
]
}'Responses
| Status | Description |
|---|---|
201 | The agent, as Get Agent returns it. |
400 | A field breaks its rule, the model is not on your plan or cannot answer calls (or, while the workspace brings only its own voice, is not one a call may run on — see voiceOnlyByok on GET /api/v1/models), or the voice is not one you may use. |
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. |
409 | Your plan's agent allowance is used up, or voice.surfaces includes phone for an agent that answers calls but has no phone number to answer or call from (the code is phone_number_required). Nothing is created. |
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. |
500 | The agent could not be created (including its voice line, in which case nothing is kept), or was created but could not be read back. Check List Agents before repeating the request, so you do not create two. If a voice.callStartUrl was sent and the message says the agent was created but its signing secret could not be created, the agent exists with the address saved and the secret is not shown: send Update Agent with voice.callStartSecret: "rotate" to get a new one. The code is internal_error. |
503 | Nothing was created. Either a voice.callStartUrl (or voice.callStartSecret: "rotate") was sent but call-start requests cannot be signed right now (the code is signing_unavailable; try again later), or voice settings were sent where voice is not available, which refuses them instead of dropping them (the code is service_unavailable; an empty voice is fine). |
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.
201 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": [],
"widget": {
"theme": "classic",
"accent": null,
"height": 806,
"welcomeScreen": true,
"welcomeCollectLeads": true
},
"voice": {
"answersCalls": true,
"surfaces": [
"web",
"whatsapp"
],
"voice": "priya",
"phoneNumber": null,
"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-10-06T08:12:44.118Z"
}Last updated November 2026 · Found a problem? Email support@katexs.com
