Requires agents:create. Creates one unpublished workflow agent and its canonical initial draft atomically: Strict Mode off, one conversation step and a closing route, empty Before and After phases. Only name, description, language, authoring_locale, greeting_message, model, template and workflow are accepted; identity and execution ownership are assigned by Yappr, and an agent created without a model is automatic (see model). An agent has no direction: a phone number’s inbound_agent_id or a SIP address endpoint makes it answer calls (a username-and-password trunk too, once the workflow is published), and POST /calls (or a number’s outbound_agent_id) makes it place them. Save and explicitly publish through the workflow endpoints — creation alone starts nothing. Creating a prompt or flow agent is gone: a body carrying system_prompt, type, flow_config, tools or another field only that agent had answers 410 AGENT_LEGACY_CREATION_GONE.
Create one unpublished agent draft with agents:create. Yappr assigns the agent ID,
workflow ID/name, and execution ownership. Strict Mode starts off; the starter contains
one conversation and a closing route, with empty Before and After phases.language defaults to he. Omit it and the agent is created to speak Hebrew,
whatever language the request was written in — send "language": "en" explicitly for an
English-speaking agent.language is the language the agent speaks and listens for on calls: one of the seventeen
languages, or multi for an agent that answers in the
caller’s language. The dashboard’s New Agent form asks for the same thing as Call
language, and Agent settings shows and changes it afterwards.Those starting steps are written for a reader, not a caller: authoring_locale picks the
language of their names, their instructions and the closing route condition (he or en),
and defaults to he for a Hebrew agent and to en for any other. It never changes what the
call is spoken in. So a body with no language
at all comes back with Hebrew step names; {"language":"en"} gives English ones, and
{"language":"he","authoring_locale":"en"} gives a Hebrew-speaking agent whose starting
steps are written in English for the person editing them.
curl --request POST "$YAPPR_API_URL/agents" \ --header "Authorization: Bearer $YAPPR_API_KEY" \ --header "Content-Type: application/json" \ --header "Idempotency-Key: new-agent-request-2026-0001" \ --data '{"name":"Reception assistant","language":"en","workflow":{"global_instructions":"Help callers understand our services and answer their questions."}}'
Field
Workflow creation
name
Required, trimmed, 1–200 characters.
description
Optional, at most 2,000 characters, or null.
language
The language the call is spoken in: he (default), en, ar, ru, fr, es, de, it, pt, nl, tr, pl, uk, hi, ja, ko, zh, or multi (multilingual). See Languages. he-IL and iw are read as he, en-US and en-GB as en — the spellings PATCH /agents/{id} takes — and the agent answers with the short form.
greeting_message
Optional. The opening line, said word for word when the agent speaks first (below). Text, or null for none. Needs agents:update on the key as well.
model
Optional. gemini-3.1-flash-live or gemini-3.8-live, or null/omitted for automatic (Yappr picks by the agent’s language). gpt-live is not accepted here — see Choosing a model. Part of what the Idempotency-Key matches.
authoring_locale
Optional. he or en; the language the starting step names and instructions are written in. Defaults to he for a Hebrew agent and en for any other.
template
Optional. inbound, qualify or reminder: start from one of the dashboard’s starters (below). Takes the place of workflow.
workflow.global_instructions
At most 100,000 characters. Send workflow (an empty string or {} fills the instructions in later) or template, not both with text.
Idempotency-Key header
Required; 16–128 letters, digits, _ or -.
Nothing else is accepted. Creation settings, publication pointers and IDs are assigned by
Yappr; configure ordinary agent settings after creation with
PATCH /agents/{id} or GET /agents/{id}/settings.
Choosing a model
An agent runs on one of three models: gemini-3.1-flash-live,
gemini-3.8-live or gpt-live. A new agent is automatic unless you say otherwise — Yappr picks
by the agent’s language today (Hebrew and multilingual run gemini-3.1-flash-live, every
other language gemini-3.8-live), and the response’s resolved_model tells you which. Send model to pin one of the
two Gemini models from the first call, so the agent never moves:
A new agent starts on a Gemini voice, and gpt-live speaks only with its own voices, so it cannot be
chosen in the create: model: "gpt-live" answers 400 WORKFLOW_AGENT_REQUEST_INVALID with an issues[]
entry at /model that says how — create the agent, then PATCH /agents/{id} with modelgpt-live
and a voice of that model. model is saved with the agent in the same step, so it needs only
agents:create.
The opening line
greeting_message is the one setting a create takes, so an agent can be made with its
opening line in one request. It is the line the agent opens the call with when
agent_speaks_first is true (the default), said word for word in the agent’s language —
a voice of the second family (Keren, Eitan, … see Voices)
can still put it in slightly different words.
{{FirstName}} in it is filled in with the first name from the call’s variables or the
lead’s stored name, and when there is none it is left out together with the space before
it: "Hi {{FirstName}}, this is Dana from the clinic." opens as Hi Noa, this is Dana from
the clinic. or Hi, this is Dana from the clinic.It is saved by the same settings write Update Agent makes,
so the key needs agents:update as well as agents:create; without it the create answers
403 INSUFFICIENT_SCOPE and makes nothing. If the agent was made and the opening line could
not be saved, the answer is 503 WORKFLOW_STORAGE_UNAVAILABLE: send the same request with the
same Idempotency-Key and the retry saves it and returns the agent.greeting_message is not part of what the Idempotency-Key matches, because it is saved
after the agent is made. A retry with the same key saves it only while the agent has no
opening line and has not been changed since it was created — the case above, where the first
answer was lost before the line was saved. Otherwise the retry answers 200 with the agent as
it is, never 409, even when its greeting_message differs from the first request’s, and a
line cleared later with PATCH stays cleared. Change the line with PATCH /agents/{id}.
curl --request POST "$YAPPR_API_URL/agents" \ --header "Authorization: Bearer $YAPPR_API_KEY" \ --header "Content-Type: application/json" \ --header "Idempotency-Key: front-desk-en-2026-0002" \ --data '{"name":"Front desk","language":"en","template":"inbound","greeting_message":"Hi {{FirstName}}, this is Dana from the clinic. How can I help?"}'
Random variations
Any text the agent speaks or is instructed with can vary from call to call. Write two or
more options between double braces with | between them, and the agent uses one of them:
{{Hi|Hello|Hey}} {{FirstName}}, this is Dana from the clinic.{{היי|שלום|בוקר טוב}}, הגעתם למרפאה. {{במה אפשר לעזור?|איך אפשר לעזור?}}
Where it works. The opening line (greeting_message), a legacy agent’s system_prompt,
a workflow’s global_instructions and every conversation step’s instructions, a flow
agent’s node greetings, instructions, transfer and farewell lines, and a transfer tool’s
announce_message. Inbound, outbound and browser calls alike, on every model.
One pick per call. Each group is picked when the call starts and stays the same for the
whole call: the line the caller hears is the line the agent’s history shows, and the
stored transcript shows what was actually said. The next call picks again.
As many as you like. Every group is its own pick, so {{Hi|Hello}} written twice can
come out as Hi … Hello. Agent eval runs pick the same way.
Options are plain text, used exactly as written — spaces included and nothing trimmed.
An option may be empty: {{Sure, |}}let me check says Sure, let me check or let me check.
An option cannot hold a brace: {{Hi {there}|Hello}} is not a choice, it is read out braces
and all, and the dashboard flags it.
Variables sit next to a group, never inside it.{{Hi|Hello}} {{FirstName}} works;
{{Hi {{FirstName}}|Hello}} is not a choice and the dashboard flags it. Groups are picked
before variables are filled in, so a variable’s value is never read as a choice.
Nothing that already used braces changes meaning. A group without | is a variable
({{FirstName}}, {{CurrentDateTime.Asia/Jerusalem}}), and a workflow reference keeps its
fallback: {{call.caller_number|the caller}} and {{before.step_id.field|text}} are
references, not choices. A variable has no fallback of its own: {{FirstName|there}} is a
choice between the words FirstName and there — write {{FirstName}}, which is left out
of a spoken line when the call has no value for it.
Start from a template
Send template instead of your own instructions and the agent starts with the same
instructions the dashboard’s New agent form offers:
template
Starts an agent that…
inbound
Answers incoming calls: greets, understands the request, answers it or takes a message.
qualify
Calls a lead back: checks who it reached, learns the need, agrees the next step.
reminder
Confirms a booked appointment: confirms it, moves it or takes the time the person prefers.
The starter is written in authoring_locale, which defaults to he for a Hebrew agent and
en for any other: languageen (or fr, or multi) alone gives the English starter, and so does authoring_localeen; when both are sent,
authoring_locale decides. It is the text the dashboard shows a reader in that language,
and ordinary instructions: read it with GET /agents/{id}/workflow and change it with
PUT /agents/{id}/workflow. A body with both template and non-empty
workflow.global_instructions is 400 WORKFLOW_AGENT_REQUEST_INVALID, and so is a
template outside the three names. The name does not say which way the agent calls:
that is the number’s job (next section).
Numbers carry the direction, not agents
An agent has no inbound or outbound setting; the same agent can answer calls and place
them. A number decides which:
To answer calls, set the agent as a phone number’s inbound_agent_id
(PATCH /phone-numbers/{id}) or a SIP
address endpoint’s (POST /sip-endpoints).
A username-and-password trunk can answer for them too, once the workflow is published. inbound on
GET /agents lists what routes calls to it.
To place calls, send its agent_id to POST /calls
with a from number, or set it as the number’s outbound_agent_id so a call from that
number without an agent_id uses it. A number from
your own Telnyx account is outbound only.
No number yet? A browser call (POST /calls with type: "web", the dashboard’s
Test Call) reaches the agent without one.
Names are not unique. A POST /agents with a name another agent already has makes a
second agent under that name, answered 201 like the first. Only the Idempotency-Key
makes a retry return the agent it already made. To see whether a name is in use,
GET /agents?name= lists every agent whose name contains
it; tell same-named agents apart by id and created_at.The response is 201 and the full agent object — the same twenty-seven fields
List agents returns for a workflow_v1 row, plus
the idempotency_key you sent:
idempotency_key is the Idempotency-Key you sent, echoed back so the response
confirms which key produced this agent — and, on a replay, that the same key
produced the same one. It is on the two responses that create an agent, this one
and Duplicate agent, and nowhere else: the key
belongs to the request, not to the agent, so a read of the agent carries no key
at all.type is "workflow", and on an agent created here the legacy slots are
absent rather than empty: there is no system_prompt, flow_config,
webhook_url, webhook_events, webhook_headers or tools key to read.
(Agents from before the workflow engine still carry all six — see
List agents.) published_workflow_revision_id is
null because creation never publishes, and the workflow itself is not
included — read it with GET /agents/{id}/workflow.Read the canonical draft with GET /agents/{id}/workflow. Save with
PUT /agents/{id}/workflow using its current expected_version and document, then
validate or publish with POST /agents/{id}/workflow/validate or /publish and
{"expected_version":1} (use the current saved version). Creation never publishes.
Publication does not by itself enable calling or the legacy call tester.Retry a lost response with the same key and accepted body: the original agent returns
with HTTP 200. A changed name, description, language, authoring_locale, model or
instructions (workflow.global_instructions, or the text a template writes) returns
409 AGENT_IDEMPOTENCY_CONFLICT; greeting_message is not compared
(The opening line). A disabled agent
is returned unchanged; an archived or removed original returns 410 AGENT_CREATION_GONE
and is never recreated. Keys are scoped to the company and this creation endpoint.
There is one kind of agent
A create body carrying system_prompt, type, flow_config, tools, tool_ids,
prompt, webhook_url, webhook_events or webhook_headers asks for the prompt or
flow agent this API used to create. That is gone, and the request answers:
{ "error": "Creating a prompt or flow agent is no longer supported. Create a workflow agent instead: POST /agents with a name and either workflow.global_instructions or a template (inbound, qualify or reminder), then add its steps, tools and follow-ups with the workflow endpoints. Existing agents of the old kind keep running and can still be updated.", "code": "AGENT_LEGACY_CREATION_GONE"}
with HTTP 410, because the request is well formed and the kind of agent it asks for no
longer exists. 400 would suggest a field to fix; there isn’t one.This is decided by what the body asks for, never by what it leaves out. A body that
simply forgot something — {}, or a name with no workflow — is 400 WORKFLOW_AGENT_REQUEST_INVALID. Every problem in the body is named in the one answer:
issues[] has an entry per field at fault — code (field_unknown, field_required or
field_invalid), path (/name, /language, /workflow/global_instructions, …) and
message — and error repeats the first. {"language":"xx","colour":"red"} names
/colour, /name, /language and /workflow/global_instructions together, not one per
round trip:
{ "error": "Give the agent a name: name is required and cannot be blank.", "code": "WORKFLOW_AGENT_REQUEST_INVALID", "issues": [ { "code": "field_required", "path": "/name", "message": "Give the agent a name: name is required and cannot be blank." } ]}
The body is checked before the Idempotency-Key header, so a request that is wrong in
both places is told about the part it wrote first.Nothing you already have stops working. Every agent that existed before this
release was converted onto the workflow engine: it keeps taking calls, keeps its
tools, its lifecycle webhooks and its phone numbers, and is still read with
GET /agents/{id}, updated with PATCH /agents/{id} and archived with
DELETE /agents/{id}. Only creating another one this way is gone.If you are moving an integration off the old body: send name and
workflow.global_instructions in place of name and system_prompt, then add what the
old body carried through its own endpoint — tools with POST /tools and the workflow’s
bindings, the conversation graph with PUT /agents/{id}/workflow instead of flow_config,
and lifecycle webhooks as a follow-up: an http tool from POST /tools, bound to a step
under after in that same save (see Follow-up triggers).
A workflow agent has no webhook_url, so PATCH /agents/{id} refuses one and names it.
Authorizations
Authorization
string
header
required
Your Yappr API key (e.g. ypr_live_...). Generate one in the dashboard under Settings → API Keys. No key is 401 MISSING_KEY; a key that is not one of ours, or is revoked, is 401 INVALID_KEY; an expired one is 401 EXPIRED_KEY. A valid key without the scope an operation needs is 403 INSUFFICIENT_SCOPE on every operation, and the message names the scope. Every response, a 401 included, carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset: the budget is 60 requests a minute per API key. Every 429, whatever its code, carries Retry-After (whole seconds, never zero): the per-key budget's RATE_LIMIT asks for what is left of the minute, a route's daily cap (RATE_LIMITED) for the time until that cap resets. All four headers are listed in Access-Control-Expose-Headers, so a browser can read them. A path the API does not serve (an unknown sub-path, an id left empty) is 404 ROUTE_NOT_FOUND, and a method a served path does not take is 405 METHOD_NOT_ALLOWED with an Allow header; both are answered before any scope check, and nothing is read or changed. A trailing slash is ignored where it cannot be an id left empty (POST /calls/ is POST /calls) and refused where it can (GET /calls/). A doubled slash inside a path is merged into one before the request reaches the API (GET //calls is GET /calls).
Headers
Idempotency-Key
string
required
Scoped to this company and creation endpoint. The same normalized accepted body returns the original agent with 200; a changed body returns 409. Retry a lost response with the same key. An archived or removed original returns 410 AGENT_CREATION_GONE without recreating it; a merely disabled original returns 200 unchanged.
Pattern: ^[A-Za-z0-9_-]{16,128}$
Body
application/json
Send workflow or template.
name
string
required
Required string length: 1 - 200
Example:
"Reception assistant"
description
string | null
Maximum string length: 2000
language
enum<string>
default:he
The language the agent speaks and listens for on calls, or multi for a multilingual agent that answers in the caller's language (see the Languages page). he-IL and iw are read as he, en-US and en-GB as en, as PATCH /agents/{id} reads them; the agent stores and answers the short form. An en agent opens and talks in English, from its first word; a he agent in Hebrew; an fr agent in French. The dashboard's Call language (New Agent, Agent settings) is the same field.
Available options:
he,
en,
ar,
ru,
fr,
es,
de,
it,
pt,
nl,
tr,
pl,
uk,
hi,
ja,
ko,
zh,
multi,
he-IL,
iw,
en-US,
en-GB
greeting_message
string | null
The opening line, said word for word when the agent speaks first (a second-family voice can still word it slightly differently), with {{FirstName}} filled in from the call's variables or the lead's name, or left out with the space before it. Saved the way PATCH /agents/{id} saves it, so the key needs agents:update as well as agents:create; null or omitted leaves the agent without one. It is not part of what the Idempotency-Key matches: a replay with the same key saves it only while the agent has no opening line and is unchanged since it was created (the first answer was lost before the line was saved), and otherwise answers 200 with the agent as it is, never 409, even when this line differs from the first request's. Random variations: {{Hi|Hello|Hey}} (two or more options separated by |) says one option, picked once per call; see Random variations.
model
enum<string> | null
The voice model the new agent runs on. Omit it or send null for automatic: Yappr picks by the agent's language. gpt-live is not accepted here, because it needs one of its own voices and a new agent starts on a Gemini voice: create the agent, then send modelgpt-live with a voice to PATCH /agents/{id}. Part of what the Idempotency-Key matches when sent; a request without it matches one made before models could be chosen.
Available options:
gemini-3.1-flash-live,
gemini-3.8-live
authoring_locale
enum<string>
The language Yappr writes the starting step names, their instructions and the closing route condition in. Nobody speaks these; they are read by whoever opens the workflow. Defaults to he for a Hebrew agent and en for any other language (multi included). Sending it does not change what the call is spoken in.
Available options:
he,
en
template
enum<string>
Start from one of the dashboard's starters: inbound answers incoming calls, qualify calls a lead back, reminder confirms a booked appointment. Yappr writes the starter's text into workflow.global_instructions, in authoring_locale. Takes the place of workflow; sending both with non-empty instructions is refused.
Available options:
inbound,
qualify,
reminder
workflow
object
Show child attributes
Response
Idempotent replay; the original agent is returned without reactivation.
id
string<uuid>
name
string
execution_version
enum<string>
read-only
Authoring ownership assigned by Yappr. workflow_v1 can be an unpublished draft; this field does not prove call readiness.
Available options:
legacy,
workflow_v1
published_workflow_revision_id
string<uuid> | null
read-only
Null until explicit workflow publication. Cannot be set by agent create or PATCH.
live
boolean
read-only
On GET /agents and GET /agents/{id}: whether callers reach this agent right now. A workflow_v1 agent is live when it is active and a version of its workflow is published; a saved draft that was never published is not live. A legacy agent (type prompt or flow) has nothing to publish and is live whenever it is active, with published_workflow_revision_id null. A deactivated agent is never live. For a workflow_v1 agent the dashboard's "Live · version N" badge is the same fact; N is published.version on GET /agents/{id}/workflow.
inbound
object
read-only
On GET /agents and GET /agents/{id}: what routes inbound calls to this agent - active phone numbers that answer with it (as the number's agent or the other half of its A/B split) and active SIP endpoints. Empty lists mean no inbound route reaches it; the member is absent when the routes could not be read. A key reads each route as its scopes allow: without phone_numbers:search a number's number and friendly_name are null, and without sip_endpoints:read an endpoint's name is null.
Show child attributes
type
enum<string>
workflow on every agent with execution_version: workflow_v1 — the only kind that can be created. Such an agent also omitssystem_prompt, flow_config, webhook_url, webhook_events, webhook_headers and tools: it has no such things, and returning them as nulls read as the retired kind. Its instructions, graph and tool bindings are its workflow document — GET /agents/{id}/workflow.
prompt and flow appear only on agents created before the workflow engine, which keep their old response shape unchanged. prompt (legacy): a single system_prompt drives the call; the LLM decides when to call attached tools. flow: the call is driven by a flow_config graph. type is immutable post-create.
Available options:
workflow,
prompt,
flow
flow_config
object | null
Legacy agents only, and absent from a workflow agent's response. The flow graph. Required when type='flow', must be omitted/null when type='prompt'.
Show child attributes
system_prompt
string | null
Legacy agents only, and absent from a workflow agent's response — read its workflow document instead. {{VariableName}} is filled in from the call's variables. Random variations: {{Hi|Hello|Hey}} (two or more options separated by |) says one option, picked once per call; see Random variations.
description
string | null
voice
enum<string>
The persona the agent speaks in. A voice belongs to one of Yappr's two voice families, so naming a voice on its own still chooses the family — and with it the model family (model below) — and no existing client has to change. There is no separate engine field, and engine / engine_voice are rejected if you send them.
Keren, Eitan, Hila, Ido, Boaz, Tali, Erez, Efrat are the voices of gpt-live, available to every workspace. Agents on these voices handle their own turn-taking and expressiveness, so temperature, vad_stop_secs, vad_start_secs and vad_confidence are rejected on them, and they cannot be used on a type='flow' agent. The other thirty are the voices of both Gemini models. Any other name returns 400 listing every voice you may use.
Always the name the agent actually speaks in, whichever family it is on.
Available options:
Michal,
Yonatan,
David,
Rachel,
Gil,
Noa,
Maya,
Adam,
Shira,
Avigail,
Amir,
Liat,
Omer,
Tamar,
Tom,
Benny,
Nir,
Natan,
Yael,
Dvora,
Yosef,
Shir,
Anat,
Ariel,
Roi,
Shlomo,
Dana,
Alon,
Ruth,
Yuval,
Keren,
Eitan,
Hila,
Ido,
Boaz,
Tali,
Erez,
Efrat
model
enum<string> | null
The voice model the agent runs on, as you chose it; null means automatic, where Yappr picks by the agent's language (see resolved_model). See the models page for what each model is and how to choose.
A gpt-live agent always reads gpt-live: GPT Live is chosen through its voices, never automatically.
Available options:
gemini-3.1-flash-live,
gemini-3.8-live,
gpt-live
resolved_model
enum<string>
read-only
The model the agent's calls run on: model when it is set, and otherwise what automatic chooses today for the agent's language (Hebrew and multilingual run gemini-3.1-flash-live, every other language gemini-3.8-live). Read-only, and it can change for an automatic agent when Yappr moves a language to a better model; a pinned model never moves.
Available options:
gemini-3.1-flash-live,
gemini-3.8-live,
gpt-live
background_sound
enum<string> | null
Ambient background sound mixed under the agent's voice during calls. Null means silent (default).
Available options:
call_center,
open_office,
cafe,
outdoor
background_sound_volume
number
default:0.3
Volume of the background sound, 0.0–0.6. Capped to protect turn-taking.
Required range: 0 <= x <= 0.6
language
enum<string>
The language the agent speaks and listens for on calls, as its short code, or multi for a multilingual agent that answers in the caller's language and switches when they do. Each language gets its own speaking rules (politeness, gender, how numbers, dates and prices are said). See the Languages page.
Available options:
he,
en,
ar,
ru,
fr,
es,
de,
it,
pt,
nl,
tr,
pl,
uk,
hi,
ja,
ko,
zh,
multi
temperature
number
How varied the agent's wording is. On the Gemini voices a value below 0.3 is stored and returned as you sent it, and the agent speaks as if it were 0.3: lower values sometimes made a call open on a word or two and a pause. The expressive voices do not take it.
Required range: 0 <= x <= 2
greeting_message
string | null
The line the agent opens the call with when agent_speaks_first is true, said word for word in the agent's language (a second-family voice can still word it slightly differently). On the standard voices a caller's brief hello in the first few seconds of the line does not interrupt it; a caller who keeps talking over it does. {{FirstName}} is filled in from the call's variables or the lead's name, or left out with the space before it when there is none. Send null to clear it and let the agent open in its own words. Editable here and on PATCH /agents/{id}; on a flow agent the start node's own opening overrides it. Random variations: {{Hi|Hello|Hey}} (two or more options separated by |) says one option, picked once per call; see Random variations. On a workflow agent it may read a Before-call step's result, {{before.<step_id>.|}}, said word for word: the value, else the fallback, else the rest of the line; Check and Publish refuse a step the workflow does not have. See Opening line from a Before step.
agent_speaks_first
boolean
vad_stop_secs
number
default:0.5
Seconds of silence that end the caller's turn. Lower answers sooner and cuts a caller who pauses mid-thought; higher waits longer before replying. Below 0.5 s the agent may start answering half a sentence.
Required range: 0.05 <= x <= 5
vad_start_secs
number
default:0.2
Seconds of speech that count as the caller starting to talk. It also sets how much of the moment before that is kept, so an interruption does not lose the caller's first word.
Required range: 0.05 <= x <= 2
vad_confidence
number
default:0.7
How sure the agent must be that it is hearing speech. Below the 0.7 default the agent reacts more eagerly — useful for quiet callers, and more likely to react to background noise on a noisy line. Two things read it, and they read it differently. How readily the caller can cut the agent off mid-sentence follows the number continuously, so any change moves it. Where the caller's turn begins and ends is a two-position switch either side of the 0.7 default: at or above it the agent is deliberate about deciding the caller has started or stopped, below it eager. For that half, 0.05 and 0.69 behave identically, and so do 0.70 and 1.00 — tune it by moving across the default, not by nudging it.
Required range: 0 <= x <= 1
silence_timeout_secs
number
default:60
Seconds of caller silence before auto-hangup. Prevents idle calls wasting credits.
Required range: 10 <= x <= 900
idle_reminder_count
integer
default:0
How many times the agent asks a silent caller whether they are still there before silence_timeout_secs hangs up. Each reminder is said when the silence timeout runs out, and the timer starts again after it; the caller speaking resets the count. 0 (the default) hangs up at the first timeout without asking. See Idle reminders.
Required range: 0 <= x <= 3
idle_reminder_text
string | null
What the agent says as each reminder, word for word. Null (the default) is a short line in the call's language ("Hello, are you still there?" in English); for a language without a fixed line, the agent asks in its own words in the call's language. A blank string is stored as null.
Maximum string length: 200
max_continuous_speech_secs
number
default:120
Max seconds one party can speak non-stop before auto-hangup. Catches answering machines. 0 = disabled.
Required range: 0 <= x <= 300
max_call_duration_secs
number
default:600
Hard cap on total call duration regardless of activity. 0 = no cap of the agent's own; the platform still ends the call after 65 minutes (3900 s), with the disconnect reason Platform call limit reached. A call is never billed for more than this plus 60 seconds; with 0, or once a call is transferred to a person, billing stops at 4 hours.
Required range: 0 <= x <= 3600
lead_memory_enabled
boolean
default:true
When true, the matched lead's long-term memory context is injected into the system prompt at call time.
noise_cancellation_enabled
boolean
is_active
boolean
webhook_url
string<uri> | null
Legacy agents only. Read whole by a key with tools:read (or tools:update), the rule GET /deliveries/{id} applies to the same destination; for any other key, and in a campaign or eval-case embed, it is scheme://host[:port] and webhook_url_path_withheld is true. Send the whole URL to change it.
webhook_url_path_withheld
boolean
read-only
Legacy agents only. True when webhook_url is shortened to scheme://host[:port] because the reading key holds neither tools:read nor tools:update.
webhook_events
enum<string>[]
Events posted to webhook_url as {event, timestamp, agent_id, company_id, call_id, data}.
data on every call event carries direction, status, from_number, to_number,
duration_seconds, started_at (when the call was placed), answered_at (when its audio
came up; absent until it did) and recording_started_at (when its recording began - a
transcript's start and end are milliseconds from here; null until the recording is saved,
on a browser call, and on older calls recorded before the field was added), all ISO 8601 with a +00:00
offset as GET /calls/{id} writes them; plus disposition, summary, transcript and
extracted_data once they exist. transcript.ready and call.analyzed are sent after the
recording is saved, so they carry recording_started_at on a phone call. No event carries the
conversation while the call is still going.
call.failed and call.no_answer carry data.hangup_cause when the cause is known. For a call
from a number in your own Telnyx account that Telnyx
refused while it rang, call.failed has data.hangup_cause:
carrier_rejected — Telnyx refused the call (SIP 401, 403 or 407).
carrier_number_invalid — Telnyx could not route the number called (SIP 404, 484 or 604).
The SIP code is not in the webhook; the carrier account keeps the last one in last_error.sip_code.
One Telnyx refused before it rang sends no webhook when POST /calls was placing it (the
request answers 422); from the queue it sends call.failed with data.error_reason instead.
Available options:
call.started,
call.answered,
call.ended,
call.failed,
call.no_answer,
call.dnc_blocked,
transcript.ready,
call.analyzed
configured_webhook_header_names
string[]
read-only
Legacy agents only, and absent from a workflow agent's response. The names of the stored webhook_headers, sorted; the values are never returned, to any key.
Example:
["Authorization", "X-Source"]
tools
object[]
read-only
Legacy agents only, and absent from a workflow agent's response. The agent's tools in execution order, each as GET /tools/{id} answers it plus execution_order, for a key that holds tools:read; without it each is {id, name} only.
extraction_parameters
object[]
AI extraction parameters — after each call, values are extracted from the transcript, stored on the call log and included in the call.analyzed webhook payload. Read them back on a call as extracted_data in GET /calls/{id}.
Show child attributes
created_at
string<date-time>
updated_at
string<date-time>
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Yappr","colors":{"primary":"#6366f1","light":"#818cf8","dark":"#4f46e5"},"favicon":"https://mintcdn.com/yappr/E1AQ46GZ-5iPcyPp/favicon.svg?fit=max\u0026auto=format\u0026n=E1AQ46GZ-5iPcyPp\u0026q=85\u0026s=a8c28fe51e78b8e4701c773698ba2378","logo":{"light":"https://mintcdn.com/yappr/E1AQ46GZ-5iPcyPp/logo/light.svg?fit=max\u0026auto=format\u0026n=E1AQ46GZ-5iPcyPp\u0026q=85\u0026s=a117ff3aa08c2017e8d58b0da5be882f","dark":"https://mintcdn.com/yappr/E1AQ46GZ-5iPcyPp/logo/dark.svg?fit=max\u0026auto=format\u0026n=E1AQ46GZ-5iPcyPp\u0026q=85\u0026s=613f48501928d9122f97fb91bfcf9b87"},"api":{"openapi":"openapi.yaml"},"footer":{"socials":{"website":"https://goyappr.com"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"yappr","hasAudioNarration":false,"actualSubdomain":"yappr","customDomains":["docs.goyappr.com"],"gitSource":{"type":"github","owner":"simon-isf","repo":"hebrew-voice-ai","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b097bda241cbb20e7401d81","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"default","tag":"API Reference","count":210},{"language":"default","tag":"Tools \u0026 integrations","count":35},{"language":"default","tag":"Agent Eval","count":24},{"language":"default","tag":"Agents","count":20},{"language":"default","tag":"Tools","count":19},{"language":"default","tag":"Connected accounts","count":16},{"language":"default","tag":"Campaigns","count":15},{"language":"default","tag":"Carrier accounts","count":14},{"language":"default","tag":"Workflows","count":12},{"language":"default","tag":"Billing","count":11}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/agents/create","slug":"/api-reference/agents/create","pageMetadata":{"title":"Create Agent","openapi":"POST /agents","description":"Requires agents:create. Creates one unpublished workflow agent and its canonical initial draft atomically: Strict Mode off, one conversation step and a closing route, empty Before and After phases. Only name, description, language, authoring_locale, greeting_message, model, template and workflow are accepted; identity and execution ownership are assigned by Yappr, and an agent created without a model is automatic (see `model`). An agent has no direction: a phone number's inbound_agent_id or a SIP address endpoint makes it answer calls (a username-and-password trunk too, once the workflow is published), and POST /calls (or a number's outbound_agent_id) makes it place them. Save and explicitly publish through the workflow endpoints — creation alone starts nothing. Creating a prompt or flow agent is gone: a body carrying system_prompt, type, flow_config, tools or another field only that agent had answers 410 AGENT_LEGACY_CREATION_GONE.\n","href":"/api-reference/agents/create"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Requires agents:create. Creates one unpublished workflow agent and its canonical initial draft atomically: Strict Mode off, one conversation step and a closing route, empty Before and After phases. Only name, description, language, authoring_locale, greeting_message, model, template and workflow are accepted; identity and execution ownership are assigned by Yappr, and an agent created without a model is automatic (see \", _jsx(_components.code, {\n children: \"model\"\n }), \"). An agent has no direction: a phone number’s inbound_agent_id or a SIP address endpoint makes it answer calls (a username-and-password trunk too, once the workflow is published), and POST /calls (or a number’s outbound_agent_id) makes it place them. Save and explicitly publish through the workflow endpoints — creation alone starts nothing. Creating a prompt or flow agent is gone: a body carrying system_prompt, type, flow_config, tools or another field only that agent had answers 410 AGENT_LEGACY_CREATION_GONE.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Create one unpublished agent draft with `,_jsx(_components.code,{children:`agents:create`}),`. Yappr assigns the agent ID,\nworkflow ID/name, and execution ownership. Strict Mode starts off; the starter contains\none conversation and a closing route, with empty Before and After phases.`]}),`\n`,_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`language`}),` defaults to `,_jsx(_components.code,{children:`he`}),`.`]}),` Omit it and the agent is created to speak Hebrew,\nwhatever language the request was written in — send `,_jsx(_components.code,{children:`\"language\": \"en\"`}),` explicitly for an\nEnglish-speaking agent.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`language`}),` is the language the agent speaks and listens for on calls: one of the seventeen\n`,_jsx(_components.a,{href:`/api-reference/agents/languages`,children:`languages`}),`, or `,_jsx(_components.code,{children:`multi`}),` for an agent that answers in the\ncaller’s language. The dashboard’s New Agent form asks for the same thing as `,_jsx(_components.strong,{children:`Call\nlanguage`}),`, and Agent settings shows and changes it afterwards.`]}),`\n`,_jsxs(_components.p,{children:[`Those starting steps are written for a reader, not a caller: `,_jsx(_components.code,{children:`authoring_locale`}),` picks the\nlanguage of their names, their instructions and the closing route condition (`,_jsx(_components.code,{children:`he`}),` or `,_jsx(_components.code,{children:`en`}),`),\nand defaults to `,_jsx(_components.code,{children:`he`}),` for a Hebrew agent and to `,_jsx(_components.code,{children:`en`}),` for any other. It never changes what the\ncall is spoken in. So a body with no `,_jsx(_components.code,{children:`language`}),`\nat all comes back with Hebrew step names; `,_jsx(_components.code,{children:`{\"language\":\"en\"}`}),` gives English ones, and\n`,_jsx(_components.code,{children:`{\"language\":\"he\",\"authoring_locale\":\"en\"}`}),` gives a Hebrew-speaking agent whose starting\nsteps are written in English for the person editing them.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$YAPPR_API_URL`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/agents\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$YAPPR_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Idempotency-Key: new-agent-request-2026-0001\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"name\":\"Reception assistant\",\"language\":\"en\",\"workflow\":{\"global_instructions\":\"Help callers understand our services and answer their questions.\"}}'`})]}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Workflow creation`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`Required, trimmed, 1–200 characters.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`description`})}),_jsx(_components.td,{children:`Optional, at most 2,000 characters, or null.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`language`})}),_jsxs(_components.td,{children:[`The language the call is spoken in: `,_jsx(_components.code,{children:`he`}),` (default), `,_jsx(_components.code,{children:`en`}),`, `,_jsx(_components.code,{children:`ar`}),`, `,_jsx(_components.code,{children:`ru`}),`, `,_jsx(_components.code,{children:`fr`}),`, `,_jsx(_components.code,{children:`es`}),`, `,_jsx(_components.code,{children:`de`}),`, `,_jsx(_components.code,{children:`it`}),`, `,_jsx(_components.code,{children:`pt`}),`, `,_jsx(_components.code,{children:`nl`}),`, `,_jsx(_components.code,{children:`tr`}),`, `,_jsx(_components.code,{children:`pl`}),`, `,_jsx(_components.code,{children:`uk`}),`, `,_jsx(_components.code,{children:`hi`}),`, `,_jsx(_components.code,{children:`ja`}),`, `,_jsx(_components.code,{children:`ko`}),`, `,_jsx(_components.code,{children:`zh`}),`, or `,_jsx(_components.code,{children:`multi`}),` (multilingual). See `,_jsx(_components.a,{href:`/api-reference/agents/languages`,children:`Languages`}),`. `,_jsx(_components.code,{children:`he-IL`}),` and `,_jsx(_components.code,{children:`iw`}),` are read as `,_jsx(_components.code,{children:`he`}),`, `,_jsx(_components.code,{children:`en-US`}),` and `,_jsx(_components.code,{children:`en-GB`}),` as `,_jsx(_components.code,{children:`en`}),` — the spellings `,_jsx(_components.code,{children:`PATCH /agents/{id}`}),` takes — and the agent answers with the short form.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`greeting_message`})}),_jsxs(_components.td,{children:[`Optional. The opening line, said word for word when the agent speaks first (below). Text, or `,_jsx(_components.code,{children:`null`}),` for none. Needs `,_jsx(_components.code,{children:`agents:update`}),` on the key as well.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`model`})}),_jsxs(_components.td,{children:[`Optional. `,_jsx(_components.code,{children:`gemini-3.1-flash-live`}),` or `,_jsx(_components.code,{children:`gemini-3.8-live`}),`, or `,_jsx(_components.code,{children:`null`}),`/omitted for `,_jsx(_components.strong,{children:`automatic`}),` (Yappr picks by the agent’s language). `,_jsx(_components.code,{children:`gpt-live`}),` is not accepted here — see `,_jsx(_components.a,{href:`#choosing-a-model`,children:`Choosing a model`}),`. Part of what the `,_jsx(_components.code,{children:`Idempotency-Key`}),` matches.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`authoring_locale`})}),_jsxs(_components.td,{children:[`Optional. `,_jsx(_components.code,{children:`he`}),` or `,_jsx(_components.code,{children:`en`}),`; the language the starting step names and instructions are written in. Defaults to `,_jsx(_components.code,{children:`he`}),` for a Hebrew agent and `,_jsx(_components.code,{children:`en`}),` for any other.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`template`})}),_jsxs(_components.td,{children:[`Optional. `,_jsx(_components.code,{children:`inbound`}),`, `,_jsx(_components.code,{children:`qualify`}),` or `,_jsx(_components.code,{children:`reminder`}),`: start from one of the dashboard’s starters (below). Takes the place of `,_jsx(_components.code,{children:`workflow`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`workflow.global_instructions`})}),_jsxs(_components.td,{children:[`At most 100,000 characters. Send `,_jsx(_components.code,{children:`workflow`}),` (an empty string or `,_jsx(_components.code,{children:`{}`}),` fills the instructions in later) or `,_jsx(_components.code,{children:`template`}),`, not both with text.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Idempotency-Key`}),` header`]}),_jsxs(_components.td,{children:[`Required; 16–128 letters, digits, `,_jsx(_components.code,{children:`_`}),` or `,_jsx(_components.code,{children:`-`}),`.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Nothing else is accepted. Creation settings, publication pointers and IDs are assigned by\nYappr; configure ordinary agent settings after creation with\n`,_jsx(_components.code,{children:`PATCH /agents/{id}`}),` or `,_jsx(_components.code,{children:`GET /agents/{id}/settings`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`choosing-a-model`,children:`Choosing a model`}),`\n`,_jsxs(_components.p,{children:[`An agent runs on one of three `,_jsx(_components.a,{href:`/api-reference/agents/models`,children:`models`}),`: `,_jsx(_components.code,{children:`gemini-3.1-flash-live`}),`,\n`,_jsx(_components.code,{children:`gemini-3.8-live`}),` or `,_jsx(_components.code,{children:`gpt-live`}),`. A new agent is `,_jsx(_components.strong,{children:`automatic`}),` unless you say otherwise — Yappr picks\nby the agent’s `,_jsx(_components.code,{children:`language`}),` today (Hebrew and multilingual run `,_jsx(_components.code,{children:`gemini-3.1-flash-live`}),`, every\nother language `,_jsx(_components.code,{children:`gemini-3.8-live`}),`), and the response’s `,_jsx(_components.code,{children:`resolved_model`}),` tells you which. Send `,_jsx(_components.code,{children:`model`}),` to pin one of the\ntwo Gemini models from the first call, so the agent never moves:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$YAPPR_API_URL`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/agents\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$YAPPR_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Idempotency-Key: front-desk-en-2026-0003\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"name\":\"Front desk\",\"language\":\"en\",\"model\":\"gemini-3.1-flash-live\",\"template\":\"inbound\"}'`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`A new agent starts on a Gemini voice, and `,_jsx(_components.code,{children:`gpt-live`}),` speaks only with its own voices, so it cannot be\nchosen in the create: `,_jsx(_components.code,{children:`model: \"gpt-live\"`}),` answers `,_jsx(_components.code,{children:`400 WORKFLOW_AGENT_REQUEST_INVALID`}),` with an `,_jsx(_components.code,{children:`issues[]`}),`\nentry at `,_jsx(_components.code,{children:`/model`}),` that says how — create the agent, then `,_jsx(_components.code,{children:`PATCH /agents/{id}`}),` with `,_jsx(_components.code,{children:`model`}),` `,_jsx(_components.code,{children:`gpt-live`}),`\nand a voice of that model. `,_jsx(_components.code,{children:`model`}),` is saved with the agent in the same step, so it needs only\n`,_jsx(_components.code,{children:`agents:create`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`the-opening-line`,children:`The opening line`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`greeting_message`}),` is the one setting a create takes, so an agent can be made with its\nopening line in one request. It is the line the agent opens the call with when\n`,_jsx(_components.code,{children:`agent_speaks_first`}),` is true (the default), said word for word in the agent’s language —\na voice of the second family (`,_jsx(_components.code,{children:`Keren`}),`, `,_jsx(_components.code,{children:`Eitan`}),`, … see `,_jsx(_components.a,{href:`/api-reference/agents/voices`,children:`Voices`}),`)\ncan still put it in slightly different words.\n`,_jsx(_components.code,{children:`{{FirstName}}`}),` in it is filled in with the first name from the call’s `,_jsx(_components.code,{children:`variables`}),` or the\nlead’s stored name, and when there is none it is left out together with the space before\nit: `,_jsx(_components.code,{children:`\"Hi {{FirstName}}, this is Dana from the clinic.\"`}),` opens as `,_jsx(_components.em,{children:`Hi Noa, this is Dana from\nthe clinic.`}),` or `,_jsx(_components.em,{children:`Hi, this is Dana from the clinic.`})]}),`\n`,_jsxs(_components.p,{children:[`It is saved by the same settings write `,_jsx(_components.a,{href:`/api-reference/agents/update`,children:`Update Agent`}),` makes,\nso the key needs `,_jsx(_components.code,{children:`agents:update`}),` as well as `,_jsx(_components.code,{children:`agents:create`}),`; without it the create answers\n`,_jsx(_components.code,{children:`403 INSUFFICIENT_SCOPE`}),` and makes nothing. If the agent was made and the opening line could\nnot be saved, the answer is `,_jsx(_components.code,{children:`503 WORKFLOW_STORAGE_UNAVAILABLE`}),`: send the same request with the\nsame `,_jsx(_components.code,{children:`Idempotency-Key`}),` and the retry saves it and returns the agent.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`greeting_message`}),` is not part of what the `,_jsx(_components.code,{children:`Idempotency-Key`}),` matches, because it is saved\nafter the agent is made. A retry with the same key saves it only while the agent has no\nopening line and has not been changed since it was created — the case above, where the first\nanswer was lost before the line was saved. Otherwise the retry answers `,_jsx(_components.code,{children:`200`}),` with the agent as\nit is, never `,_jsx(_components.code,{children:`409`}),`, even when its `,_jsx(_components.code,{children:`greeting_message`}),` differs from the first request’s, and a\nline cleared later with `,_jsx(_components.code,{children:`PATCH`}),` stays cleared. Change the line with `,_jsx(_components.code,{children:`PATCH /agents/{id}`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$YAPPR_API_URL`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/agents\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$YAPPR_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Idempotency-Key: front-desk-en-2026-0002\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"name\":\"Front desk\",\"language\":\"en\",\"template\":\"inbound\",\"greeting_message\":\"Hi {{FirstName}}, this is Dana from the clinic. How can I help?\"}'`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`random-variations`,children:`Random variations`}),`\n`,_jsxs(_components.p,{children:[`Any text the agent speaks or is instructed with can vary from call to call. Write two or\nmore options between double braces with `,_jsx(_components.code,{children:`|`}),` between them, and the agent uses one of them:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`{{Hi|Hello|Hey}} {{FirstName}}, this is Dana from the clinic.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`{{היי|שלום|בוקר טוב}}, הגעתם למרפאה. {{במה אפשר לעזור?|איך אפשר לעזור?}}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Where it works.`}),` The opening line (`,_jsx(_components.code,{children:`greeting_message`}),`), a legacy agent’s `,_jsx(_components.code,{children:`system_prompt`}),`,\na workflow’s `,_jsx(_components.code,{children:`global_instructions`}),` and every conversation step’s `,_jsx(_components.code,{children:`instructions`}),`, a flow\nagent’s node greetings, instructions, transfer and farewell lines, and a transfer tool’s\n`,_jsx(_components.code,{children:`announce_message`}),`. Inbound, outbound and browser calls alike, on every model.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`One pick per call.`}),` Each group is picked when the call starts and stays the same for the\nwhole call: the line the caller hears is the line the agent’s history shows, and the\nstored transcript shows what was actually said. The next call picks again.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`As many as you like.`}),` Every group is its own pick, so `,_jsx(_components.code,{children:`{{Hi|Hello}}`}),` written twice can\ncome out as `,_jsx(_components.em,{children:`Hi … Hello`}),`. Agent eval runs pick the same way.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Options are plain text, used exactly as written`}),` — spaces included and nothing trimmed.\nAn option may be empty: `,_jsx(_components.code,{children:`{{Sure, |}}let me check`}),` says `,_jsx(_components.em,{children:`Sure, let me check`}),` or `,_jsx(_components.em,{children:`let me check`}),`.\nAn option cannot hold a brace: `,_jsx(_components.code,{children:`{{Hi {there}|Hello}}`}),` is not a choice, it is read out braces\nand all, and the dashboard flags it.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Variables sit next to a group, never inside it.`}),` `,_jsx(_components.code,{children:`{{Hi|Hello}} {{FirstName}}`}),` works;\n`,_jsx(_components.code,{children:`{{Hi {{FirstName}}|Hello}}`}),` is not a choice and the dashboard flags it. Groups are picked\nbefore variables are filled in, so a variable’s value is never read as a choice.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Nothing that already used braces changes meaning.`}),` A group without `,_jsx(_components.code,{children:`|`}),` is a variable\n(`,_jsx(_components.code,{children:`{{FirstName}}`}),`, `,_jsx(_components.code,{children:`{{CurrentDateTime.Asia/Jerusalem}}`}),`), and a workflow reference keeps its\nfallback: `,_jsx(_components.code,{children:`{{call.caller_number|the caller}}`}),` and `,_jsx(_components.code,{children:`{{before.step_id.field|text}}`}),` are\nreferences, not choices. A variable has no fallback of its own: `,_jsx(_components.code,{children:`{{FirstName|there}}`}),` is a\nchoice between the words `,_jsx(_components.em,{children:`FirstName`}),` and `,_jsx(_components.em,{children:`there`}),` — write `,_jsx(_components.code,{children:`{{FirstName}}`}),`, which is left out\nof a spoken line when the call has no value for it.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`start-from-a-template`,children:`Start from a template`}),`\n`,_jsxs(_components.p,{children:[`Send `,_jsx(_components.code,{children:`template`}),` instead of your own instructions and the agent starts with the same\ninstructions the dashboard’s `,_jsx(_components.strong,{children:`New agent`}),` form offers:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`template`})}),_jsx(_components.th,{children:`Starts an agent that…`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`inbound`})}),_jsx(_components.td,{children:`Answers incoming calls: greets, understands the request, answers it or takes a message.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`qualify`})}),_jsx(_components.td,{children:`Calls a lead back: checks who it reached, learns the need, agrees the next step.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reminder`})}),_jsx(_components.td,{children:`Confirms a booked appointment: confirms it, moves it or takes the time the person prefers.`})]})]})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$YAPPR_API_URL`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/agents\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$YAPPR_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Idempotency-Key: front-desk-2026-0001\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"name\":\"Front desk\",\"template\":\"inbound\"}'`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The starter is written in `,_jsx(_components.code,{children:`authoring_locale`}),`, which defaults to `,_jsx(_components.code,{children:`he`}),` for a Hebrew agent and\n`,_jsx(_components.code,{children:`en`}),` for any other: `,_jsx(_components.code,{children:`language`}),` `,_jsx(_components.code,{children:`en`}),` (or `,_jsx(_components.code,{children:`fr`}),`, or `,_jsx(_components.code,{children:`multi`}),`) alone gives the English starter, and so does `,_jsx(_components.code,{children:`authoring_locale`}),` `,_jsx(_components.code,{children:`en`}),`; when both are sent,\n`,_jsx(_components.code,{children:`authoring_locale`}),` decides. It is the text the dashboard shows a reader in that language,\nand ordinary instructions: read it with `,_jsx(_components.code,{children:`GET /agents/{id}/workflow`}),` and change it with\n`,_jsx(_components.code,{children:`PUT /agents/{id}/workflow`}),`. A body with both `,_jsx(_components.code,{children:`template`}),` and non-empty\n`,_jsx(_components.code,{children:`workflow.global_instructions`}),` is `,_jsx(_components.code,{children:`400 WORKFLOW_AGENT_REQUEST_INVALID`}),`, and so is a\n`,_jsx(_components.code,{children:`template`}),` outside the three names. The name does not say which way the agent calls:\nthat is the number’s job (next section).`]}),`\n`,_jsx(Heading,{level:`2`,id:`numbers-carry-the-direction-not-agents`,children:`Numbers carry the direction, not agents`}),`\n`,_jsx(_components.p,{children:`An agent has no inbound or outbound setting; the same agent can answer calls and place\nthem. A number decides which:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`To answer calls`}),`, set the agent as a phone number’s `,_jsx(_components.code,{children:`inbound_agent_id`}),`\n(`,_jsx(_components.a,{href:`/api-reference/phone-numbers/update`,children:_jsx(_components.code,{children:`PATCH /phone-numbers/{id}`})}),`) or a SIP\naddress endpoint’s (`,_jsx(_components.a,{href:`/api-reference/sip-endpoints/create`,children:_jsx(_components.code,{children:`POST /sip-endpoints`})}),`).\nA username-and-password trunk can answer for them too, once the workflow is published. `,_jsx(_components.code,{children:`inbound`}),` on\n`,_jsx(_components.a,{href:`/api-reference/agents/list`,children:_jsx(_components.code,{children:`GET /agents`})}),` lists what routes calls to it.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`To place calls`}),`, send its `,_jsx(_components.code,{children:`agent_id`}),` to `,_jsx(_components.a,{href:`/api-reference/calls/create`,children:_jsx(_components.code,{children:`POST /calls`})}),`\nwith a `,_jsx(_components.code,{children:`from`}),` number, or set it as the number’s `,_jsx(_components.code,{children:`outbound_agent_id`}),` so a call from that\nnumber without an `,_jsx(_components.code,{children:`agent_id`}),` uses it. A number from\n`,_jsx(_components.a,{href:`/concepts/bring-your-own-carrier`,children:`your own Telnyx account`}),` is outbound only.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`No number yet?`}),` A browser call (`,_jsx(_components.code,{children:`POST /calls`}),` with `,_jsx(_components.code,{children:`type: \"web\"`}),`, the dashboard’s\nTest Call) reaches the agent without one.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Names are not unique.`}),` A `,_jsx(_components.code,{children:`POST /agents`}),` with a name another agent already has makes a\nsecond agent under that name, answered `,_jsx(_components.code,{children:`201`}),` like the first. Only the `,_jsx(_components.code,{children:`Idempotency-Key`}),`\nmakes a retry return the agent it already made. To see whether a name is in use,\n`,_jsx(_components.a,{href:`/api-reference/agents/list`,children:_jsx(_components.code,{children:`GET /agents?name=`})}),` lists every agent whose name contains\nit; tell same-named agents apart by `,_jsx(_components.code,{children:`id`}),` and `,_jsx(_components.code,{children:`created_at`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`The response is `,_jsx(_components.code,{children:`201`}),` and the full agent object — the same twenty-seven fields\n`,_jsx(_components.a,{href:`/api-reference/agents/list`,children:`List agents`}),` returns for a `,_jsx(_components.code,{children:`workflow_v1`}),` row, plus\nthe `,_jsx(_components.code,{children:`idempotency_key`}),` you sent:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`30`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`30`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"7cf020c3-0f9d-413f-b460-6180723b2bfe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Reception assistant\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"voice\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Rachel\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resolved_model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gemini-3.8-live\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"language\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"en\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"temperature\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"greeting_message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"agent_speaks_first\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"vad_stop_secs\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"vad_start_secs\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"vad_confidence\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.7`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"silence_timeout_secs\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`60`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"max_continuous_speech_secs\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`120`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"max_call_duration_secs\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`600`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"is_active\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"lead_memory_enabled\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"noise_cancellation_enabled\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"background_sound\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"background_sound_volume\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.3`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"workflow\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"extraction_parameters\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"idempotency_key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"onboarding-2026-09-22-0001\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"execution_version\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"workflow_v1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"published_workflow_revision_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-09-21T08:00:36.697447+00:00\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"updated_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-09-21T08:00:36.697447+00:00\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`idempotency_key`}),` is the `,_jsx(_components.code,{children:`Idempotency-Key`}),` you sent, echoed back so the response\nconfirms which key produced this agent — and, on a replay, that the same key\nproduced the same one. It is on the two responses that create an agent, this one\nand `,_jsx(_components.a,{href:`/api-reference/agents/duplicate`,children:`Duplicate agent`}),`, and nowhere else: the key\nbelongs to the request, not to the agent, so a read of the agent carries no key\nat all.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`type`}),` is `,_jsx(_components.code,{children:`\"workflow\"`}),`, and on an agent created here the legacy slots are\n`,_jsx(_components.strong,{children:`absent`}),` rather than empty: there is no `,_jsx(_components.code,{children:`system_prompt`}),`, `,_jsx(_components.code,{children:`flow_config`}),`,\n`,_jsx(_components.code,{children:`webhook_url`}),`, `,_jsx(_components.code,{children:`webhook_events`}),`, `,_jsx(_components.code,{children:`webhook_headers`}),` or `,_jsx(_components.code,{children:`tools`}),` key to read.\n(Agents from before the workflow engine still carry all six — see\n`,_jsx(_components.a,{href:`/api-reference/agents/list`,children:`List agents`}),`.) `,_jsx(_components.code,{children:`published_workflow_revision_id`}),` is\n`,_jsx(_components.code,{children:`null`}),` because creation never publishes, and the workflow itself is not\nincluded — read it with `,_jsx(_components.code,{children:`GET /agents/{id}/workflow`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Read the canonical draft with `,_jsx(_components.code,{children:`GET /agents/{id}/workflow`}),`. Save with\n`,_jsx(_components.code,{children:`PUT /agents/{id}/workflow`}),` using its current `,_jsx(_components.code,{children:`expected_version`}),` and `,_jsx(_components.code,{children:`document`}),`, then\nvalidate or publish with `,_jsx(_components.code,{children:`POST /agents/{id}/workflow/validate`}),` or `,_jsx(_components.code,{children:`/publish`}),` and\n`,_jsx(_components.code,{children:`{\"expected_version\":1}`}),` (use the current saved version). Creation never publishes.\nPublication does not by itself enable calling or the legacy call tester.`]}),`\n`,_jsxs(_components.p,{children:[`Retry a lost response with the same key and accepted body: the original agent returns\nwith HTTP 200. A changed `,_jsx(_components.code,{children:`name`}),`, `,_jsx(_components.code,{children:`description`}),`, `,_jsx(_components.code,{children:`language`}),`, `,_jsx(_components.code,{children:`authoring_locale`}),`, `,_jsx(_components.code,{children:`model`}),` or\ninstructions (`,_jsx(_components.code,{children:`workflow.global_instructions`}),`, or the text a `,_jsx(_components.code,{children:`template`}),` writes) returns\n`,_jsx(_components.code,{children:`409 AGENT_IDEMPOTENCY_CONFLICT`}),`; `,_jsx(_components.code,{children:`greeting_message`}),` is not compared\n(`,_jsx(_components.a,{href:`#the-opening-line`,children:`The opening line`}),`). A disabled agent\nis returned unchanged; an archived or removed original returns `,_jsx(_components.code,{children:`410 AGENT_CREATION_GONE`}),`\nand is never recreated. Keys are scoped to the company and this creation endpoint.`]}),`\n`,_jsx(Heading,{level:`2`,id:`there-is-one-kind-of-agent`,children:`There is one kind of agent`}),`\n`,_jsxs(_components.p,{children:[`A create body carrying `,_jsx(_components.code,{children:`system_prompt`}),`, `,_jsx(_components.code,{children:`type`}),`, `,_jsx(_components.code,{children:`flow_config`}),`, `,_jsx(_components.code,{children:`tools`}),`, `,_jsx(_components.code,{children:`tool_ids`}),`,\n`,_jsx(_components.code,{children:`prompt`}),`, `,_jsx(_components.code,{children:`webhook_url`}),`, `,_jsx(_components.code,{children:`webhook_events`}),` or `,_jsx(_components.code,{children:`webhook_headers`}),` asks for the prompt or\nflow agent this API used to create. That is gone, and the request answers:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Creating a prompt or flow agent is no longer supported. Create a workflow agent instead: POST /agents with a name and either workflow.global_instructions or a template (inbound, qualify or reminder), then add its steps, tools and follow-ups with the workflow endpoints. Existing agents of the old kind keep running and can still be updated.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"AGENT_LEGACY_CREATION_GONE\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`with HTTP `,_jsx(_components.code,{children:`410`}),`, because the request is well formed and the kind of agent it asks for no\nlonger exists. `,_jsx(_components.code,{children:`400`}),` would suggest a field to fix; there isn’t one.`]}),`\n`,_jsxs(_components.p,{children:[`This is decided by what the body `,_jsx(_components.strong,{children:`asks for`}),`, never by what it leaves out. A body that\nsimply forgot something — `,_jsx(_components.code,{children:`{}`}),`, or a `,_jsx(_components.code,{children:`name`}),` with no `,_jsx(_components.code,{children:`workflow`}),` — is `,_jsx(_components.code,{children:`400 WORKFLOW_AGENT_REQUEST_INVALID`}),`. Every problem in the body is named in the one answer:\n`,_jsx(_components.code,{children:`issues[]`}),` has an entry per field at fault — `,_jsx(_components.code,{children:`code`}),` (`,_jsx(_components.code,{children:`field_unknown`}),`, `,_jsx(_components.code,{children:`field_required`}),` or\n`,_jsx(_components.code,{children:`field_invalid`}),`), `,_jsx(_components.code,{children:`path`}),` (`,_jsx(_components.code,{children:`/name`}),`, `,_jsx(_components.code,{children:`/language`}),`, `,_jsx(_components.code,{children:`/workflow/global_instructions`}),`, …) and\n`,_jsx(_components.code,{children:`message`}),` — and `,_jsx(_components.code,{children:`error`}),` repeats the first. `,_jsx(_components.code,{children:`{\"language\":\"xx\",\"colour\":\"red\"}`}),` names\n`,_jsx(_components.code,{children:`/colour`}),`, `,_jsx(_components.code,{children:`/name`}),`, `,_jsx(_components.code,{children:`/language`}),` and `,_jsx(_components.code,{children:`/workflow/global_instructions`}),` together, not one per\nround trip:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Give the agent a name: name is required and cannot be blank.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"WORKFLOW_AGENT_REQUEST_INVALID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"issues\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"field_required\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"path\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"/name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Give the agent a name: name is required and cannot be blank.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The body is checked before the `,_jsx(_components.code,{children:`Idempotency-Key`}),` header, so a request that is wrong in\nboth places is told about the part it wrote first.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Nothing you already have stops working.`}),` Every agent that existed before this\nrelease was converted onto the workflow engine: it keeps taking calls, keeps its\ntools, its lifecycle webhooks and its phone numbers, and is still read with\n`,_jsx(_components.code,{children:`GET /agents/{id}`}),`, updated with `,_jsx(_components.code,{children:`PATCH /agents/{id}`}),` and archived with\n`,_jsx(_components.code,{children:`DELETE /agents/{id}`}),`. Only creating another one this way is gone.`]}),`\n`,_jsxs(_components.p,{children:[`If you are moving an integration off the old body: send `,_jsx(_components.code,{children:`name`}),` and\n`,_jsx(_components.code,{children:`workflow.global_instructions`}),` in place of `,_jsx(_components.code,{children:`name`}),` and `,_jsx(_components.code,{children:`system_prompt`}),`, then add what the\nold body carried through its own endpoint — tools with `,_jsx(_components.code,{children:`POST /tools`}),` and the workflow’s\nbindings, the conversation graph with `,_jsx(_components.code,{children:`PUT /agents/{id}/workflow`}),` instead of `,_jsx(_components.code,{children:`flow_config`}),`,\nand lifecycle webhooks as a follow-up: an `,_jsx(_components.code,{children:`http`}),` tool from `,_jsx(_components.code,{children:`POST /tools`}),`, bound to a step\nunder `,_jsx(_components.code,{children:`after`}),` in that same save (see `,_jsx(_components.a,{href:`/api-reference/workflows/save#follow-up-triggers`,children:`Follow-up triggers`}),`).\nA workflow agent has no `,_jsx(_components.code,{children:`webhook_url`}),`, so `,_jsx(_components.code,{children:`PATCH /agents/{id}`}),` refuses one and names it.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create Agent","openapi":"POST /agents","description":"Requires agents:create. Creates one unpublished workflow agent and its canonical initial draft atomically: Strict Mode off, one conversation step and a closing route, empty Before and After phases. Only name, description, language, authoring_locale, greeting_message, model, template and workflow are accepted; identity and execution ownership are assigned by Yappr, and an agent created without a model is automatic (see `model`). An agent has no direction: a phone number's inbound_agent_id or a SIP address endpoint makes it answer calls (a username-and-password trunk too, once the workflow is published), and POST /calls (or a number's outbound_agent_id) makes it place them. Save and explicitly publish through the workflow endpoints — creation alone starts nothing. Creating a prompt or flow agent is gone: a body carrying system_prompt, type, flow_config, tools or another field only that agent had answers 410 AGENT_LEGACY_CREATION_GONE.\n","href":"/api-reference/agents/create"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Choosing a model","slug":"choosing-a-model","depth":3,"children":[]},{"title":"The opening line","slug":"the-opening-line","depth":3,"children":[]},{"title":"Random variations","slug":"random-variations","depth":3,"children":[]},{"title":"Start from a template","slug":"start-from-a-template","depth":2,"children":[]},{"title":"Numbers carry the direction, not agents","slug":"numbers-carry-the-direction-not-agents","depth":2,"children":[]},{"title":"There is one kind of agent","slug":"there-is-one-kind-of-agent","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Create agent","description":"Requires agents:create. Creates one unpublished workflow agent and its canonical initial draft atomically: Strict Mode off, one conversation step and a closing route, empty Before and After phases. Only name, description, language, authoring_locale, greeting_message, model, template and workflow are accepted; identity and execution ownership are assigned by Yappr, and an agent created without a model is automatic (see `model`). An agent has no direction: a phone number's inbound_agent_id or a SIP address endpoint makes it answer calls (a username-and-password trunk too, once the workflow is published), and POST /calls (or a number's outbound_agent_id) makes it place them. Save and explicitly publish through the workflow endpoints — creation alone starts nothing. Creating a prompt or flow agent is gone: a body carrying system_prompt, type, flow_config, tools or another field only that agent had answers 410 AGENT_LEGACY_CREATION_GONE.\n","operationId":"createAgent","tags":["Agents"],"parameters":["d9b408b3-cd4b-4989-b84b-03778595a14b"],"requestBody":"a7209868-6354-45b3-8012-8b524c333cf4","responses":{"200":"9bbd9133-7080-46bc-bbd0-28e58c800b26","201":"062ec1a1-224c-42f9-8584-3b2b994870c0","400":"ba6eacb7-a418-4e85-9919-631927dc024f","403":"24d4d8fb-793e-4934-8de3-8a0502f21a45","404":"aa8b45bd-2fa8-4113-968f-c5f28ca0696f","409":"93fbba9b-a2d3-42b1-9ae4-4b07db5769d3","410":"4eb1ab9f-1b78-4a22-96e1-23a1865bdad3","503":"1ca97ffc-0b11-4566-a80b-33e4c72cd3c5"},"method":"post","type":"path","servers":["dc0c5f7d-c0c3-40b9-9c53-ce2239f5b67d"],"security":["2767439e-f0c6-4cd4-a450-ba11a6ab8311"],"path":"/agents","baseUrlOptions":["https://api.goyappr.com"],"title":"Create agent","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"d9b408b3-cd4b-4989-b84b-03778595a14b":{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,128}$","isRequired":true,"description":"Scoped to this company and creation endpoint. The same normalized accepted body returns the original agent with 200; a changed body returns 409. Retry a lost response with the same key. An archived or removed original returns 410 AGENT_CREATION_GONE without recreating it; a merely disabled original returns 200 unchanged.","uniqueKey":"","typeLabel":"string"},"description":"Scoped to this company and creation endpoint. The same normalized accepted body returns the original agent with 200; a changed body returns 409. Retry a lost response with the same key. An archived or removed original returns 410 AGENT_CREATION_GONE without recreating it; a merely disabled original returns 200 unchanged."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"additionalProperties":false,"description":"Send workflow or template.","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"example":"Reception assistant","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"description":{"oneOf":[{"type":"string","maxLength":2000,"uniqueKey":"description.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":2000,"uniqueKey":"description.oneOf.1","typeLabel":"null"}],"uniqueKey":"description","typeLabel":"string | null"},"language":{"type":"string","enum":["he","en","ar","ru","fr","es","de","it","pt","nl","tr","pl","uk","hi","ja","ko","zh","multi","he-IL","iw","en-US","en-GB"],"default":"he","description":"The language the agent speaks and listens for on calls, or multi for a multilingual agent that answers in the caller's language (see the Languages page). he-IL and iw are read as he, en-US and en-GB as en, as PATCH /agents/{id} reads them; the agent stores and answers the short form. An en agent opens and talks in English, from its first word; a he agent in Hebrew; an fr agent in French. The dashboard's Call language (New Agent, Agent settings) is the same field.","uniqueKey":"language","typeLabel":"enum\u003cstring>"},"greeting_message":{"oneOf":[{"type":"string","description":"The opening line, said word for word when the agent speaks first (a second-family voice can still word it slightly differently), with {{FirstName}} filled in from the call's variables or the lead's name, or left out with the space before it. Saved the way PATCH /agents/{id} saves it, so the key needs agents:update as well as agents:create; null or omitted leaves the agent without one. It is not part of what the Idempotency-Key matches: a replay with the same key saves it only while the agent has no opening line and is unchanged since it was created (the first answer was lost before the line was saved), and otherwise answers 200 with the agent as it is, never 409, even when this line differs from the first request's. Random variations: {{Hi|Hello|Hey}} (two or more options separated by |) says one option, picked once per call; see [Random variations](/api-reference/agents/create#random-variations).\n","uniqueKey":"greeting_message.oneOf.0","typeLabel":"string"},{"type":"null","description":"The opening line, said word for word when the agent speaks first (a second-family voice can still word it slightly differently), with {{FirstName}} filled in from the call's variables or the lead's name, or left out with the space before it. Saved the way PATCH /agents/{id} saves it, so the key needs agents:update as well as agents:create; null or omitted leaves the agent without one. It is not part of what the Idempotency-Key matches: a replay with the same key saves it only while the agent has no opening line and is unchanged since it was created (the first answer was lost before the line was saved), and otherwise answers 200 with the agent as it is, never 409, even when this line differs from the first request's. Random variations: {{Hi|Hello|Hey}} (two or more options separated by |) says one option, picked once per call; see [Random variations](/api-reference/agents/create#random-variations).\n","uniqueKey":"greeting_message.oneOf.1","typeLabel":"null"}],"uniqueKey":"greeting_message","typeLabel":"string | null"},"model":{"oneOf":[{"type":"string","enum":["gemini-3.1-flash-live","gemini-3.8-live"],"description":"The voice model the new agent runs on. Omit it or send null for automatic: Yappr picks by the agent's language. `gpt-live` is not accepted here, because it needs one of its own voices and a new agent starts on a Gemini voice: create the agent, then send `model` `gpt-live` with a voice to PATCH /agents/{id}. Part of what the Idempotency-Key matches when sent; a request without it matches one made before models could be chosen.\n","uniqueKey":"model.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["gemini-3.1-flash-live","gemini-3.8-live"],"description":"The voice model the new agent runs on. Omit it or send null for automatic: Yappr picks by the agent's language. `gpt-live` is not accepted here, because it needs one of its own voices and a new agent starts on a Gemini voice: create the agent, then send `model` `gpt-live` with a voice to PATCH /agents/{id}. Part of what the Idempotency-Key matches when sent; a request without it matches one made before models could be chosen.\n","uniqueKey":"model.oneOf.1","typeLabel":"null"}],"uniqueKey":"model","typeLabel":"enum\u003cstring> | null"},"authoring_locale":{"type":"string","enum":["he","en"],"description":"The language Yappr writes the starting step names, their instructions and the closing route condition in. Nobody speaks these; they are read by whoever opens the workflow. Defaults to he for a Hebrew agent and en for any other language (multi included). Sending it does not change what the call is spoken in.\n","uniqueKey":"authoring_locale","typeLabel":"enum\u003cstring>"},"template":{"type":"string","enum":["inbound","qualify","reminder"],"description":"Start from one of the dashboard's starters: inbound answers incoming calls, qualify calls a lead back, reminder confirms a booked appointment. Yappr writes the starter's text into workflow.global_instructions, in authoring_locale. Takes the place of workflow; sending both with non-empty instructions is refused.\n","uniqueKey":"template","typeLabel":"enum\u003cstring>"},"workflow":{"type":"object","additionalProperties":false,"properties":{"global_instructions":{"type":"string","maxLength":100000,"default":"","description":"The agent's instructions. Random variations: {{Hi|Hello|Hey}} (two or more options separated by |) says one option, picked once per call; see [Random variations](/api-reference/agents/create#random-variations).","uniqueKey":"workflow.global_instructions","typeLabel":"string"}},"uniqueKey":"workflow","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"name":"Reception assistant","description":"\u003cstring>","language":"he","greeting_message":"\u003cstring>","workflow":{"global_instructions":""}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"9bbd9133-7080-46bc-bbd0-28e58c800b26":{"description":"Idempotent replay; the original agent is returned without reactivation.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","uniqueKey":"name","typeLabel":"string"},"execution_version":{"type":"string","enum":["legacy","workflow_v1"],"readOnly":true,"description":"Authoring ownership assigned by Yappr. workflow_v1 can be an unpublished draft; this field does not prove call readiness.","uniqueKey":"execution_version","typeLabel":"enum\u003cstring>"},"published_workflow_revision_id":{"oneOf":[{"type":"string","format":"uuid","readOnly":true,"description":"Null until explicit workflow publication. Cannot be set by agent create or PATCH.","uniqueKey":"published_workflow_revision_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","readOnly":true,"description":"Null until explicit workflow publication. Cannot be set by agent create or PATCH.","uniqueKey":"published_workflow_revision_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"published_workflow_revision_id","typeLabel":"string\u003cuuid> | null"},"live":{"type":"boolean","readOnly":true,"description":"On GET /agents and GET /agents/{id}: whether callers reach this agent right now. A workflow_v1 agent is live when it is active and a version of its workflow is published; a saved draft that was never published is not live. A legacy agent (type prompt or flow) has nothing to publish and is live whenever it is active, with published_workflow_revision_id null. A deactivated agent is never live. For a workflow_v1 agent the dashboard's \"Live · version N\" badge is the same fact; N is published.version on GET /agents/{id}/workflow.\n","uniqueKey":"live","typeLabel":"boolean"},"inbound":{"type":"object","readOnly":true,"description":"On GET /agents and GET /agents/{id}: what routes inbound calls to this agent - active phone numbers that answer with it (as the number's agent or the other half of its A/B split) and active SIP endpoints. Empty lists mean no inbound route reaches it; the member is absent when the routes could not be read. A key reads each route as its scopes allow: without `phone_numbers:search` a number's `number` and `friendly_name` are null, and without `sip_endpoints:read` an endpoint's `name` is null.\n","properties":{"phone_numbers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"inbound.phone_numbers.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"number":{"oneOf":[{"type":"string","example":"+972501234567","uniqueKey":"inbound.phone_numbers.items.[INDEX].number.oneOf.0","typeLabel":"string"},{"type":"null","example":"+972501234567","uniqueKey":"inbound.phone_numbers.items.[INDEX].number.oneOf.1","typeLabel":"null"}],"uniqueKey":"inbound.phone_numbers.items.[INDEX].number","typeLabel":"string | null"},"friendly_name":{"oneOf":[{"type":"string","uniqueKey":"inbound.phone_numbers.items.[INDEX].friendly_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"inbound.phone_numbers.items.[INDEX].friendly_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"inbound.phone_numbers.items.[INDEX].friendly_name","typeLabel":"string | null"}},"uniqueKey":"inbound.phone_numbers.items.[INDEX]","typeLabel":"object"},"uniqueKey":"inbound.phone_numbers","typeLabel":"object[]"},"sip_endpoints":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"inbound.sip_endpoints.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"name":{"oneOf":[{"type":"string","uniqueKey":"inbound.sip_endpoints.items.[INDEX].name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"inbound.sip_endpoints.items.[INDEX].name.oneOf.1","typeLabel":"null"}],"uniqueKey":"inbound.sip_endpoints.items.[INDEX].name","typeLabel":"string | null"}},"uniqueKey":"inbound.sip_endpoints.items.[INDEX]","typeLabel":"object"},"uniqueKey":"inbound.sip_endpoints","typeLabel":"object[]"}},"uniqueKey":"inbound","typeLabel":"object"},"type":{"type":"string","enum":["workflow","prompt","flow"],"description":"`workflow` on every agent with `execution_version: workflow_v1` — the only kind that can be created. Such an agent also **omits** `system_prompt`, `flow_config`, `webhook_url`, `webhook_events`, `webhook_headers` and `tools`: it has no such things, and returning them as nulls read as the retired kind. Its instructions, graph and tool bindings are its workflow document — `GET /agents/{id}/workflow`.\n`prompt` and `flow` appear only on agents created before the workflow engine, which keep their old response shape unchanged. `prompt` (legacy): a single `system_prompt` drives the call; the LLM decides when to call attached tools. `flow`: the call is driven by a `flow_config` graph. `type` is **immutable** post-create.\n","uniqueKey":"type","typeLabel":"enum\u003cstring>"},"flow_config":{"oneOf":[{"type":"object","description":"Legacy agents only, and absent from a `workflow` agent's response. The flow graph. Required when `type='flow'`, must be omitted/null when `type='prompt'`.\n","required":["nodes"],"properties":{"nodes":{"type":"array","minItems":1,"items":{"oneOf":[{"type":"object","description":"Discriminated by `type`.","required":["id","type"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.id","typeLabel":"string"},"type":{"type":"string","enum":["start"],"isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.name","typeLabel":"string"},"position":{"type":"object","description":"UI-only persisted x/y on the React Flow canvas. The runtime ignores this.","properties":{"x":{"type":"number","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.position.x","typeLabel":"number"},"y":{"type":"number","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.position.y","typeLabel":"number"}},"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.position","typeLabel":"object"},"agent_speaks_first":{"type":"boolean","default":true,"description":"Whether the bot speaks first on call connect. When false, the bot waits silently for the caller to speak first (silence_timeout_secs on the agent still applies). For flow agents this OVERRIDES the agent-level agent.agent_speaks_first / agent.greeting_message fields.\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.agent_speaks_first","typeLabel":"boolean"},"greeting":{"oneOf":[{"type":"string","description":"Spoken greeting (only used when agent_speaks_first is true). Random variations: {{Hi|Hello|Hey}} (two or more options separated by |) says one option, picked once per call; see [Random variations](/api-reference/agents/create#random-variations).","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.greeting.oneOf.0","typeLabel":"string"},{"type":"null","description":"Spoken greeting (only used when agent_speaks_first is true). Random variations: {{Hi|Hello|Hey}} (two or more options separated by |) says one option, picked once per call; see [Random variations](/api-reference/agents/create#random-variations).","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.greeting.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.greeting","typeLabel":"string | null"},"is_literal":{"type":"boolean","default":false,"description":"When true, speak `greeting` verbatim. When false, treat it as an LLM instruction.","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.is_literal","typeLabel":"boolean"},"next_step_id":{"oneOf":[{"type":"string","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.next_step_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.next_step_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.next_step_id","typeLabel":"string | null"},"auto_advance":{"type":"boolean","default":true,"description":"Whether to enter the first conversation node immediately on session start (default `true`). When `false`, the bot's greeting is delivered in start-node context only; the first conversation node is entered only after the user's first reply (via internal advancement).\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.auto_advance","typeLabel":"boolean"}},"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"Discriminated by `type`.","required":["id","type","instructions","transitions"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.id","typeLabel":"string"},"type":{"type":"string","enum":["conversation"],"isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"instructions":{"type":"string","description":"Layered on top of agent.system_prompt as a system message at step entry. Random variations: {{Hi|Hello|Hey}} (two or more options separated by |) says one option, picked once per call; see [Random variations](/api-reference/agents/create#random-variations).","isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.instructions","typeLabel":"string"},"transitions":{"type":"array","items":{"type":"object","required":["id","label","description","next_step_id"],"description":"A labeled outgoing branch from a conversation node. The voice agent picks one\n(or stays) at each user-turn boundary by calling the `pick_transition` tool.\n","properties":{"id":{"type":"string","description":"Stable transition id (used in the flow graph and traces)","isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.transitions.items.[INDEX].id","typeLabel":"string"},"label":{"type":"string","description":"Short human-readable label, also surfaced in the dashboard and call traces","isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.transitions.items.[INDEX].label","typeLabel":"string"},"description":{"type":"string","minLength":1,"description":"REQUIRED, non-empty. The natural-language trigger the voice agent reads at runtime\nto decide whether to take this path. Describe a user-side signal (what the caller\nsaid or implied), not an agent intent. Example: \"Caller confirmed they want a demo\nscheduled\" — not \"agent books the demo\". An empty description is rejected with\nerror code `transition_description_missing`.\n","isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.transitions.items.[INDEX].description","typeLabel":"string"},"next_step_id":{"type":"string","description":"Destination node id","isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.transitions.items.[INDEX].next_step_id","typeLabel":"string"}},"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.transitions.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.transitions","typeLabel":"object[]"},"is_global":{"type":"boolean","default":false,"description":"Mark this node as globally reachable. Only valid on conversation/end/transfer nodes.","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.is_global","typeLabel":"boolean"},"global_jump_description":{"oneOf":[{"type":"string","description":"REQUIRED when is_global=true. Natural-language condition the eval LLM uses to decide whether\nto jump here. Describe a clear user-side signal, not an agent intent.\nExample: \"User reveals they're actually an owner, not a tenant\".\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.global_jump_description.oneOf.0","typeLabel":"string"},{"type":"null","description":"REQUIRED when is_global=true. Natural-language condition the eval LLM uses to decide whether\nto jump here. Describe a clear user-side signal, not an agent intent.\nExample: \"User reveals they're actually an owner, not a tenant\".\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.global_jump_description.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.global_jump_description","typeLabel":"string | null"},"name":{"type":"string","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.name","typeLabel":"string"},"position":{"type":"object","description":"UI-only persisted x/y on the React Flow canvas. The runtime ignores this.","properties":{"x":{"type":"number","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.position.x","typeLabel":"number"},"y":{"type":"number","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.position.y","typeLabel":"number"}},"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.position","typeLabel":"object"}},"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"Discriminated by `type`.","required":["id","type","transitions"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.id","typeLabel":"string"},"type":{"type":"string","enum":["tool_call"],"isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"transitions":{"type":"object","description":"Routing for a tool_call node. Routing is deterministic, no LLM. error fires on hard failures\n(timeout, 4xx/5xx, integration disconnected). Otherwise custom[] is evaluated in declaration order\nand the first match wins; success fires only if no custom matched. Exactly one out-edge per fire.\n","properties":{"success_next_step_id":{"oneOf":[{"type":"string","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.success_next_step_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.success_next_step_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.success_next_step_id","typeLabel":"string | null"},"error_next_step_id":{"oneOf":[{"type":"string","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.error_next_step_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.error_next_step_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.error_next_step_id","typeLabel":"string | null"},"custom":{"type":"array","default":[],"items":{"type":"object","required":["id","label","jsonpath","equals","next_step_id"],"description":"Deterministic branch for a tool-call node, matched by JSONPath equality against the tool's parsed response body.\nCustom branches are evaluated top-to-bottom, first match wins; mutually exclusive with success/error (only one\nout-edge fires per tool fire). See /docs/api-reference/agents/flow-config-schema for the full runtime semantics.\n","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.custom.items.[INDEX].id","typeLabel":"string"},"label":{"type":"string","isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.custom.items.[INDEX].label","typeLabel":"string"},"jsonpath":{"type":"string","example":"$.status","description":"Dotted path into the tool's parsed response body (root `$`). Supported: `$.foo.bar`, `$.list[0].name`,\n`$.items[2]`. NOT supported: recursive descent (`$..`), wildcards (`$.*`), filter expressions.\n","isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.custom.items.[INDEX].jsonpath","typeLabel":"string"},"equals":{"type":"string","example":"no_availability","description":"Compared via string equality after JSON-style stringification of the extracted value:\nbooleans become \"true\"/\"false\" (lowercase), null becomes \"null\", numbers via str(). Match the\nstringified form exactly or the branch never fires.\n","isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.custom.items.[INDEX].equals","typeLabel":"string"},"next_step_id":{"type":"string","isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.custom.items.[INDEX].next_step_id","typeLabel":"string"}},"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.custom.items.[INDEX]","typeLabel":"object"},"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.custom","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions","typeLabel":"object"},"name":{"type":"string","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.name","typeLabel":"string"},"position":{"type":"object","description":"UI-only persisted x/y on the React Flow canvas. The runtime ignores this.","properties":{"x":{"type":"number","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.position.x","typeLabel":"number"},"y":{"type":"number","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.position.y","typeLabel":"number"}},"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.position","typeLabel":"object"},"tool_id":{"oneOf":[{"type":"string","format":"uuid","description":"References an existing row in the company's tools table","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.tool_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"References an existing row in the company's tools table","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.tool_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.tool_id","typeLabel":"string\u003cuuid> | null"},"config_override":{"oneOf":[{"type":"object","additionalProperties":true,"description":"Per-node override merged shallow over the referenced tool's config (array replacement). Open-shape — each tool type has its own valid keys. For a transfer tool it may set `transfer_method`, `pbx_feature_code` and `pbx_feature_code_hangup_after_secs` (see TransferNode); the merged result is checked when you save, with the same codes.","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.config_override.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"Per-node override merged shallow over the referenced tool's config (array replacement). Open-shape — each tool type has its own valid keys. For a transfer tool it may set `transfer_method`, `pbx_feature_code` and `pbx_feature_code_hangup_after_secs` (see TransferNode); the merged result is checked when you save, with the same codes.","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.config_override.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.config_override","typeLabel":"object | null"},"pre_fire_announcement":{"oneOf":[{"type":"boolean","description":"When true, the platform plays a short hold tone the moment this node fires so the caller\ndoesn't sit in silence while the action runs. The tone is platform-controlled (not\nconfigurable) and stops automatically when the action returns. Use it for actions you\nexpect to take more than ~500 ms (webhook to a slow CRM, complex DB lookup); skip it for\nfast actions to avoid making the call feel chatty.\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.pre_fire_announcement.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"When true, the platform plays a short hold tone the moment this node fires so the caller\ndoesn't sit in silence while the action runs. The tone is platform-controlled (not\nconfigurable) and stops automatically when the action returns. Use it for actions you\nexpect to take more than ~500 ms (webhook to a slow CRM, complex DB lookup); skip it for\nfast actions to avoid making the call feel chatty.\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.pre_fire_announcement.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.pre_fire_announcement","typeLabel":"boolean | null"},"timeout_secs":{"oneOf":[{"type":"number","minimum":1,"maximum":600,"description":"Per-node hard cap on execution time. When the action doesn't return in this many seconds,\nthe runtime cancels it and routes to `error_next_step_id` with a `tool_timeout_after_Ns`\nerror. When null/omitted on a webhook tool, the controller uses the effective tool\n`config.timeout_seconds` plus one second of dispatch overhead. Other tool nodes use the\nplatform default (30s). Set this only when the flow needs a different node-level limit.\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.timeout_secs.oneOf.0","typeLabel":"number"},{"type":"null","minimum":1,"maximum":600,"description":"Per-node hard cap on execution time. When the action doesn't return in this many seconds,\nthe runtime cancels it and routes to `error_next_step_id` with a `tool_timeout_after_Ns`\nerror. When null/omitted on a webhook tool, the controller uses the effective tool\n`config.timeout_seconds` plus one second of dispatch overhead. Other tool nodes use the\nplatform default (30s). Set this only when the flow needs a different node-level limit.\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.timeout_secs.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.timeout_secs","typeLabel":"number | null"}},"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","description":"Discriminated by `type`.","required":["id","type"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.id","typeLabel":"string"},"type":{"type":"string","enum":["transfer"],"isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"is_global":{"type":"boolean","default":false,"description":"Mark this node as globally reachable. Only valid on conversation/end/transfer nodes.","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.is_global","typeLabel":"boolean"},"global_jump_description":{"oneOf":[{"type":"string","description":"REQUIRED when is_global=true. Natural-language condition the eval LLM uses to decide whether\nto jump here. Describe a clear user-side signal, not an agent intent.\nExample: \"User reveals they're actually an owner, not a tenant\".\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.global_jump_description.oneOf.0","typeLabel":"string"},{"type":"null","description":"REQUIRED when is_global=true. Natural-language condition the eval LLM uses to decide whether\nto jump here. Describe a clear user-side signal, not an agent intent.\nExample: \"User reveals they're actually an owner, not a tenant\".\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.global_jump_description.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.global_jump_description","typeLabel":"string | null"},"name":{"type":"string","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.name","typeLabel":"string"},"position":{"type":"object","description":"UI-only persisted x/y on the React Flow canvas. The runtime ignores this.","properties":{"x":{"type":"number","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.position.x","typeLabel":"number"},"y":{"type":"number","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.position.y","typeLabel":"number"}},"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.position","typeLabel":"object"},"transfer_to":{"oneOf":[{"type":"string","example":"+972501234567","description":"Where to send the caller: either a phone number or a SIP address.\n\n- A **phone number** (for example `+972501234567`) is dialled as a second call. It\n can't be used on a call that arrived over a SIP trunk or an extension endpoint.\n- A **SIP address** (`sip:` or `sips:`, for example `sip:reception@pbx.example.com`)\n hands the caller back to your own phone system, which places the new call\n (a SIP REFER). It works on calls that arrived over a\n [username-and-password SIP trunk](/concepts/sip-trunks#transfers). On a call\n that arrived over an [extension endpoint](/concepts/sip-trunks#register-as-an-extension)\n it works differently: no REFER is sent, and Yappr places a new call through\n your extension to the extension or queue in the address (only the part before\n the `@` is used). On any other call the transfer is refused and the agent\n keeps helping the caller.\n On a trunk, your phone system has about nine seconds to have the new call\n answered, and if the transfer fails the call ends. On an extension call the\n new call has about 25 seconds to be answered, and if it fails or isn't\n answered the call also ends. The address must be\n `sip:user@host[:port]`, at most 256 characters, with a user part, and no\n password or `?headers`. A value that starts with `sip:` or `sips:` but is\n malformed is rejected when you save the flow.\n","examples":["+972501234567","sip:reception@pbx.example.com"],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.transfer_to.oneOf.0","typeLabel":"string"},{"type":"null","example":"+972501234567","description":"Where to send the caller: either a phone number or a SIP address.\n\n- A **phone number** (for example `+972501234567`) is dialled as a second call. It\n can't be used on a call that arrived over a SIP trunk or an extension endpoint.\n- A **SIP address** (`sip:` or `sips:`, for example `sip:reception@pbx.example.com`)\n hands the caller back to your own phone system, which places the new call\n (a SIP REFER). It works on calls that arrived over a\n [username-and-password SIP trunk](/concepts/sip-trunks#transfers). On a call\n that arrived over an [extension endpoint](/concepts/sip-trunks#register-as-an-extension)\n it works differently: no REFER is sent, and Yappr places a new call through\n your extension to the extension or queue in the address (only the part before\n the `@` is used). On any other call the transfer is refused and the agent\n keeps helping the caller.\n On a trunk, your phone system has about nine seconds to have the new call\n answered, and if the transfer fails the call ends. On an extension call the\n new call has about 25 seconds to be answered, and if it fails or isn't\n answered the call also ends. The address must be\n `sip:user@host[:port]`, at most 256 characters, with a user part, and no\n password or `?headers`. A value that starts with `sip:` or `sips:` but is\n malformed is rejected when you save the flow.\n","examples":["+972501234567","sip:reception@pbx.example.com"],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.transfer_to.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.transfer_to","typeLabel":"string | null"},"transfer_message":{"oneOf":[{"type":"string","description":"Spoken before transferring. Random variations: {{Hi|Hello|Hey}} (two or more options separated by |) says one option, picked once per call; see [Random variations](/api-reference/agents/create#random-variations).","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.transfer_message.oneOf.0","typeLabel":"string"},{"type":"null","description":"Spoken before transferring. Random variations: {{Hi|Hello|Hey}} (two or more options separated by |) says one option, picked once per call; see [Random variations](/api-reference/agents/create#random-variations).","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.transfer_message.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.transfer_message","typeLabel":"string | null"},"transfer_method":{"oneOf":[{"type":"string","enum":["auto","pbx_feature_code"],"default":"auto","description":"How a call that arrived through an\n[extension endpoint](/concepts/sip-trunks#hand-the-call-to-your-phone-system-with-its-transfer-code)\nis transferred. `auto` (or leaving it out) uses the transfer code set on the\nextension endpoint (`register.pbx_feature_code`), or the usual dial-back when it\nhas none. `pbx_feature_code` uses this node's own code and hang-up time instead,\nas a pair, with nothing taken from the endpoint: it first sends your phone system\nthe in-call transfer code (`pbx_feature_code`) followed by the extension, so the\nphone system moves the\ncaller itself and Yappr leaves the call; without a hang-up time\n(`pbx_feature_code_hangup_after_secs`), if it doesn't within about 12 seconds,\nYappr falls back to the dial-back. Ignored on every other call. With\n`pbx_feature_code`, `transfer_to` must name an extension a keypad can dial: up\nto 32 digits, `*` or `#`, as `sip:400@pbx.example.com` or `400`. Anything else\nis rejected when you save (`transfer_method_invalid`,\n`transfer_extension_not_dialable`).\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.transfer_method.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["auto","pbx_feature_code"],"default":"auto","description":"How a call that arrived through an\n[extension endpoint](/concepts/sip-trunks#hand-the-call-to-your-phone-system-with-its-transfer-code)\nis transferred. `auto` (or leaving it out) uses the transfer code set on the\nextension endpoint (`register.pbx_feature_code`), or the usual dial-back when it\nhas none. `pbx_feature_code` uses this node's own code and hang-up time instead,\nas a pair, with nothing taken from the endpoint: it first sends your phone system\nthe in-call transfer code (`pbx_feature_code`) followed by the extension, so the\nphone system moves the\ncaller itself and Yappr leaves the call; without a hang-up time\n(`pbx_feature_code_hangup_after_secs`), if it doesn't within about 12 seconds,\nYappr falls back to the dial-back. Ignored on every other call. With\n`pbx_feature_code`, `transfer_to` must name an extension a keypad can dial: up\nto 32 digits, `*` or `#`, as `sip:400@pbx.example.com` or `400`. Anything else\nis rejected when you save (`transfer_method_invalid`,\n`transfer_extension_not_dialable`).\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.transfer_method.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.transfer_method","typeLabel":"enum\u003cstring> | null"},"pbx_feature_code":{"oneOf":[{"type":"string","maxLength":32,"pattern":"^[0-9A-Da-d*#wW]*(\\{extension\\})?[0-9A-Da-d*#wW]*$","examples":["##","*2","#1","*2{extension}#"],"description":"Your phone system's own in-call transfer code (blind or attended), sent as key presses. Required\nwhen `transfer_method` is `pbx_feature_code` (`pbx_feature_code_missing`),\nignored otherwise. 1 to 32 characters: `0`-`9`, `*`, `#`, `A`-`D`, and the\npauses `w` (half a second) and `W` (one second), with at least one key.\n`{extension}` may appear once and is replaced by the extension; without it\nthe extension is sent right after the code (`##` + `400` sends `##400`).\nAnything else is rejected when you save (`pbx_feature_code_invalid`).\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.pbx_feature_code.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":32,"pattern":"^[0-9A-Da-d*#wW]*(\\{extension\\})?[0-9A-Da-d*#wW]*$","examples":["##","*2","#1","*2{extension}#"],"description":"Your phone system's own in-call transfer code (blind or attended), sent as key presses. Required\nwhen `transfer_method` is `pbx_feature_code` (`pbx_feature_code_missing`),\nignored otherwise. 1 to 32 characters: `0`-`9`, `*`, `#`, `A`-`D`, and the\npauses `w` (half a second) and `W` (one second), with at least one key.\n`{extension}` may appear once and is replaced by the extension; without it\nthe extension is sent right after the code (`##` + `400` sends `##400`).\nAnything else is rejected when you save (`pbx_feature_code_invalid`).\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.pbx_feature_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.pbx_feature_code","typeLabel":"string | null"},"pbx_feature_code_hangup_after_secs":{"oneOf":[{"type":"integer","minimum":1,"maximum":10,"examples":[4],"description":"Set it when your phone system's code starts an attended transfer that\ncompletes when the transferring extension hangs up. Yappr hangs up this many\nseconds after the code (counted once its key presses have played); until\nthen the agent is off the line, silent and not listening. Because that\nhang-up is the hand-off there is no fallback dial-back, so\ntest it once. 4 is a good start. Leave it out (or null) to wait for your\nphone system to end the call, with the dial-back as the fallback. A whole\nnumber from 1 to 10, only with `transfer_method` `pbx_feature_code`; anything\nelse is rejected when you save (`pbx_feature_code_hangup_after_secs_invalid`,\n`pbx_feature_code_hangup_after_secs_without_code`).\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.pbx_feature_code_hangup_after_secs.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"maximum":10,"examples":[4],"description":"Set it when your phone system's code starts an attended transfer that\ncompletes when the transferring extension hangs up. Yappr hangs up this many\nseconds after the code (counted once its key presses have played); until\nthen the agent is off the line, silent and not listening. Because that\nhang-up is the hand-off there is no fallback dial-back, so\ntest it once. 4 is a good start. Leave it out (or null) to wait for your\nphone system to end the call, with the dial-back as the fallback. A whole\nnumber from 1 to 10, only with `transfer_method` `pbx_feature_code`; anything\nelse is rejected when you save (`pbx_feature_code_hangup_after_secs_invalid`,\n`pbx_feature_code_hangup_after_secs_without_code`).\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.pbx_feature_code_hangup_after_secs.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.pbx_feature_code_hangup_after_secs","typeLabel":"integer | null"}},"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","description":"Discriminated by `type`.","required":["id","type"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.id","typeLabel":"string"},"type":{"type":"string","enum":["end"],"isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"is_global":{"type":"boolean","default":false,"description":"Mark this node as globally reachable. Only valid on conversation/end/transfer nodes.","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.is_global","typeLabel":"boolean"},"global_jump_description":{"oneOf":[{"type":"string","description":"REQUIRED when is_global=true. Natural-language condition the eval LLM uses to decide whether\nto jump here. Describe a clear user-side signal, not an agent intent.\nExample: \"User reveals they're actually an owner, not a tenant\".\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.global_jump_description.oneOf.0","typeLabel":"string"},{"type":"null","description":"REQUIRED when is_global=true. Natural-language condition the eval LLM uses to decide whether\nto jump here. Describe a clear user-side signal, not an agent intent.\nExample: \"User reveals they're actually an owner, not a tenant\".\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.global_jump_description.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.global_jump_description","typeLabel":"string | null"},"name":{"type":"string","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.name","typeLabel":"string"},"position":{"type":"object","description":"UI-only persisted x/y on the React Flow canvas. The runtime ignores this.","properties":{"x":{"type":"number","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.position.x","typeLabel":"number"},"y":{"type":"number","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.position.y","typeLabel":"number"}},"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.position","typeLabel":"object"},"farewell":{"oneOf":[{"type":"string","description":"Spoken before the call ends. Random variations: {{Hi|Hello|Hey}} (two or more options separated by |) says one option, picked once per call; see [Random variations](/api-reference/agents/create#random-variations).","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.farewell.oneOf.0","typeLabel":"string"},{"type":"null","description":"Spoken before the call ends. Random variations: {{Hi|Hello|Hey}} (two or more options separated by |) says one option, picked once per call; see [Random variations](/api-reference/agents/create#random-variations).","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.farewell.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.farewell","typeLabel":"string | null"},"is_literal":{"type":"boolean","default":false,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.is_literal","typeLabel":"boolean"}},"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes","typeLabel":"object[]"},"flow_config_version":{"type":"string","default":"1","uniqueKey":"flow_config.oneOf.0.flow_config_version","typeLabel":"string"},"metadata":{"type":"object","additionalProperties":true,"description":"Optional metadata surfaced to the eval LLM context (e.g. agent purpose, customer name conventions).","properties":{"custom_metadata_keys":{"type":"array","items":{"type":"string","uniqueKey":"flow_config.oneOf.0.metadata.custom_metadata_keys.items.[INDEX]","typeLabel":"string"},"description":"User-declared keys that this flow's `args_template` token interpolation expects to\nfind under the `{{metadata.\u003ckey>}}` namespace at dispatch time. Surfaced in the\ndashboard so callers know which keys to pass in `POST /calls body.metadata`.\nKeys not listed here still resolve at runtime if passed (and to empty string if\nnot) — this list is purely a hint for the UI / API consumers.\n","uniqueKey":"flow_config.oneOf.0.metadata.custom_metadata_keys","typeLabel":"string[]"}},"uniqueKey":"flow_config.oneOf.0.metadata","typeLabel":"object"}},"uniqueKey":"flow_config.oneOf.0","typeLabel":"object"},{"type":"null","description":"Legacy agents only, and absent from a `workflow` agent's response. The flow graph. Required when `type='flow'`, must be omitted/null when `type='prompt'`.\n","uniqueKey":"flow_config.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config","typeLabel":"object | null"},"system_prompt":{"oneOf":[{"type":"string","description":"Legacy agents only, and absent from a `workflow` agent's response — read its workflow document instead. {{VariableName}} is filled in from the call's variables. Random variations: {{Hi|Hello|Hey}} (two or more options separated by |) says one option, picked once per call; see [Random variations](/api-reference/agents/create#random-variations).","uniqueKey":"system_prompt.oneOf.0","typeLabel":"string"},{"type":"null","description":"Legacy agents only, and absent from a `workflow` agent's response — read its workflow document instead. {{VariableName}} is filled in from the call's variables. Random variations: {{Hi|Hello|Hey}} (two or more options separated by |) says one option, picked once per call; see [Random variations](/api-reference/agents/create#random-variations).","uniqueKey":"system_prompt.oneOf.1","typeLabel":"null"}],"uniqueKey":"system_prompt","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","uniqueKey":"description.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"description.oneOf.1","typeLabel":"null"}],"uniqueKey":"description","typeLabel":"string | null"},"voice":{"type":"string","enum":["Michal","Yonatan","David","Rachel","Gil","Noa","Maya","Adam","Shira","Avigail","Amir","Liat","Omer","Tamar","Tom","Benny","Nir","Natan","Yael","Dvora","Yosef","Shir","Anat","Ariel","Roi","Shlomo","Dana","Alon","Ruth","Yuval","Keren","Eitan","Hila","Ido","Boaz","Tali","Erez","Efrat"],"description":"The persona the agent speaks in. A voice belongs to one of Yappr's two voice families, so naming a voice on its own still chooses the family — and with it the model family (`model` below) — and no existing client has to change. There is no separate engine field, and `engine` / `engine_voice` are rejected if you send them.\n`Keren, Eitan, Hila, Ido, Boaz, Tali, Erez, Efrat` are the voices of `gpt-live`, available to every workspace. Agents on these voices handle their own turn-taking and expressiveness, so `temperature`, `vad_stop_secs`, `vad_start_secs` and `vad_confidence` are rejected on them, and they cannot be used on a `type='flow'` agent. The other thirty are the voices of both Gemini models. Any other name returns `400` listing every voice you may use.\nAlways the name the agent actually speaks in, whichever family it is on.\n","uniqueKey":"voice","typeLabel":"enum\u003cstring>"},"model":{"oneOf":[{"type":"string","enum":["gemini-3.1-flash-live","gemini-3.8-live","gpt-live"],"description":"The voice model the agent runs on, as you chose it; null means **automatic**, where Yappr picks by the agent's language (see `resolved_model`). See the models page for what each model is and how to choose.\nA `gpt-live` agent always reads `gpt-live`: GPT Live is chosen through its voices, never automatically.\n","uniqueKey":"model.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["gemini-3.1-flash-live","gemini-3.8-live","gpt-live"],"description":"The voice model the agent runs on, as you chose it; null means **automatic**, where Yappr picks by the agent's language (see `resolved_model`). See the models page for what each model is and how to choose.\nA `gpt-live` agent always reads `gpt-live`: GPT Live is chosen through its voices, never automatically.\n","uniqueKey":"model.oneOf.1","typeLabel":"null"}],"uniqueKey":"model","typeLabel":"enum\u003cstring> | null"},"resolved_model":{"type":"string","readOnly":true,"enum":["gemini-3.1-flash-live","gemini-3.8-live","gpt-live"],"description":"The model the agent's calls run on: `model` when it is set, and otherwise what automatic chooses today for the agent's language (Hebrew and multilingual run `gemini-3.1-flash-live`, every other language `gemini-3.8-live`). Read-only, and it can change for an automatic agent when Yappr moves a language to a better model; a pinned `model` never moves.\n","uniqueKey":"resolved_model","typeLabel":"enum\u003cstring>"},"background_sound":{"oneOf":[{"type":"string","enum":["call_center","open_office","cafe","outdoor"],"description":"Ambient background sound mixed under the agent's voice during calls. Null means silent (default).","uniqueKey":"background_sound.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["call_center","open_office","cafe","outdoor"],"description":"Ambient background sound mixed under the agent's voice during calls. Null means silent (default).","uniqueKey":"background_sound.oneOf.1","typeLabel":"null"}],"uniqueKey":"background_sound","typeLabel":"enum\u003cstring> | null"},"background_sound_volume":{"type":"number","minimum":0,"maximum":0.6,"default":0.3,"description":"Volume of the background sound, 0.0–0.6. Capped to protect turn-taking.","uniqueKey":"background_sound_volume","typeLabel":"number"},"language":{"type":"string","enum":["he","en","ar","ru","fr","es","de","it","pt","nl","tr","pl","uk","hi","ja","ko","zh","multi"],"description":"The language the agent speaks and listens for on calls, as its short code, or `multi` for a multilingual agent that answers in the caller's language and switches when they do. Each language gets its own speaking rules (politeness, gender, how numbers, dates and prices are said). See the Languages page.\n","uniqueKey":"language","typeLabel":"enum\u003cstring>"},"temperature":{"type":"number","minimum":0,"maximum":2,"description":"How varied the agent's wording is. On the Gemini voices a value below 0.3 is stored and returned as you sent it, and the agent speaks as if it were 0.3: lower values sometimes made a call open on a word or two and a pause. The expressive voices do not take it.","uniqueKey":"temperature","typeLabel":"number"},"greeting_message":{"oneOf":[{"type":"string","description":"The line the agent opens the call with when agent_speaks_first is true, said word for word in the agent's language (a second-family voice can still word it slightly differently). On the standard voices a caller's brief hello in the first few seconds of the line does not interrupt it; a caller who keeps talking over it does. {{FirstName}} is filled in from the call's variables or the lead's name, or left out with the space before it when there is none. Send null to clear it and let the agent open in its own words. Editable here and on PATCH /agents/{id}; on a flow agent the start node's own opening overrides it. Random variations: {{Hi|Hello|Hey}} (two or more options separated by |) says one option, picked once per call; see [Random variations](/api-reference/agents/create#random-variations). On a workflow agent it may read a Before-call step's result, {{before.\u003cstep_id>.\u003cfield>|\u003cfallback>}}, said word for word: the value, else the fallback, else the rest of the line; Check and Publish refuse a step the workflow does not have. See [Opening line from a Before step](/api-reference/workflows/greeting-from-before).","uniqueKey":"greeting_message.oneOf.0","typeLabel":"string"},{"type":"null","description":"The line the agent opens the call with when agent_speaks_first is true, said word for word in the agent's language (a second-family voice can still word it slightly differently). On the standard voices a caller's brief hello in the first few seconds of the line does not interrupt it; a caller who keeps talking over it does. {{FirstName}} is filled in from the call's variables or the lead's name, or left out with the space before it when there is none. Send null to clear it and let the agent open in its own words. Editable here and on PATCH /agents/{id}; on a flow agent the start node's own opening overrides it. Random variations: {{Hi|Hello|Hey}} (two or more options separated by |) says one option, picked once per call; see [Random variations](/api-reference/agents/create#random-variations). On a workflow agent it may read a Before-call step's result, {{before.\u003cstep_id>.\u003cfield>|\u003cfallback>}}, said word for word: the value, else the fallback, else the rest of the line; Check and Publish refuse a step the workflow does not have. See [Opening line from a Before step](/api-reference/workflows/greeting-from-before).","uniqueKey":"greeting_message.oneOf.1","typeLabel":"null"}],"uniqueKey":"greeting_message","typeLabel":"string | null"},"agent_speaks_first":{"type":"boolean","uniqueKey":"agent_speaks_first","typeLabel":"boolean"},"vad_stop_secs":{"type":"number","minimum":0.05,"maximum":5,"default":0.5,"description":"Seconds of silence that end the caller's turn. Lower answers sooner and cuts a caller who pauses mid-thought; higher waits longer before replying. Below 0.5 s the agent may start answering half a sentence.\n","uniqueKey":"vad_stop_secs","typeLabel":"number"},"vad_start_secs":{"type":"number","minimum":0.05,"maximum":2,"default":0.2,"description":"Seconds of speech that count as the caller starting to talk. It also sets how much of the moment before that is kept, so an interruption does not lose the caller's first word.\n","uniqueKey":"vad_start_secs","typeLabel":"number"},"vad_confidence":{"type":"number","minimum":0,"maximum":1,"default":0.7,"description":"How sure the agent must be that it is hearing speech. Below the 0.7 default the agent reacts more eagerly — useful for quiet callers, and more likely to react to background noise on a noisy line. Two things read it, and they read it differently. How readily the caller can cut the agent off mid-sentence follows the number continuously, so any change moves it. Where the caller's turn begins and ends is a two-position switch either side of the 0.7 default: at or above it the agent is deliberate about deciding the caller has started or stopped, below it eager. For that half, 0.05 and 0.69 behave identically, and so do 0.70 and 1.00 — tune it by moving across the default, not by nudging it.\n","uniqueKey":"vad_confidence","typeLabel":"number"},"silence_timeout_secs":{"type":"number","minimum":10,"maximum":900,"default":60,"description":"Seconds of caller silence before auto-hangup. Prevents idle calls wasting credits.","uniqueKey":"silence_timeout_secs","typeLabel":"number"},"idle_reminder_count":{"type":"integer","minimum":0,"maximum":3,"default":0,"description":"How many times the agent asks a silent caller whether they are still there before `silence_timeout_secs` hangs up. Each reminder is said when the silence timeout runs out, and the timer starts again after it; the caller speaking resets the count. 0 (the default) hangs up at the first timeout without asking. See [Idle reminders](/api-reference/agents/idle-reminders).\n","uniqueKey":"idle_reminder_count","typeLabel":"integer"},"idle_reminder_text":{"oneOf":[{"type":"string","maxLength":200,"description":"What the agent says as each reminder, word for word. Null (the default) is a short line in the call's language (\"Hello, are you still there?\" in English); for a language without a fixed line, the agent asks in its own words in the call's language. A blank string is stored as null.\n","uniqueKey":"idle_reminder_text.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":200,"description":"What the agent says as each reminder, word for word. Null (the default) is a short line in the call's language (\"Hello, are you still there?\" in English); for a language without a fixed line, the agent asks in its own words in the call's language. A blank string is stored as null.\n","uniqueKey":"idle_reminder_text.oneOf.1","typeLabel":"null"}],"uniqueKey":"idle_reminder_text","typeLabel":"string | null"},"max_continuous_speech_secs":{"type":"number","minimum":0,"maximum":300,"default":120,"description":"Max seconds one party can speak non-stop before auto-hangup. Catches answering machines. 0 = disabled.","uniqueKey":"max_continuous_speech_secs","typeLabel":"number"},"max_call_duration_secs":{"type":"number","minimum":0,"maximum":3600,"default":600,"description":"Hard cap on total call duration regardless of activity. 0 = no cap of the agent's own; the platform still ends the call after 65 minutes (3900 s), with the disconnect reason `Platform call limit reached`. A call is never billed for more than this plus 60 seconds; with 0, or once a call is transferred to a person, billing stops at 4 hours.","uniqueKey":"max_call_duration_secs","typeLabel":"number"},"lead_memory_enabled":{"type":"boolean","default":true,"description":"When true, the matched lead's long-term memory context is injected into the system prompt at call time.","uniqueKey":"lead_memory_enabled","typeLabel":"boolean"},"noise_cancellation_enabled":{"type":"boolean","uniqueKey":"noise_cancellation_enabled","typeLabel":"boolean"},"is_active":{"type":"boolean","uniqueKey":"is_active","typeLabel":"boolean"},"webhook_url":{"oneOf":[{"type":"string","format":"uri","description":"Legacy agents only. Read whole by a key with `tools:read` (or `tools:update`), the rule GET /deliveries/{id} applies to the same destination; for any other key, and in a campaign or eval-case embed, it is `scheme://host[:port]` and `webhook_url_path_withheld` is true. Send the whole URL to change it.\n","uniqueKey":"webhook_url.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","description":"Legacy agents only. Read whole by a key with `tools:read` (or `tools:update`), the rule GET /deliveries/{id} applies to the same destination; for any other key, and in a campaign or eval-case embed, it is `scheme://host[:port]` and `webhook_url_path_withheld` is true. Send the whole URL to change it.\n","uniqueKey":"webhook_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"webhook_url","typeLabel":"string\u003curi> | null"},"webhook_url_path_withheld":{"type":"boolean","readOnly":true,"description":"Legacy agents only. True when `webhook_url` is shortened to `scheme://host[:port]` because the reading key holds neither `tools:read` nor `tools:update`.\n","uniqueKey":"webhook_url_path_withheld","typeLabel":"boolean"},"webhook_events":{"type":"array","description":"Events posted to `webhook_url` as `{event, timestamp, agent_id, company_id, call_id, data}`.\n`data` on every call event carries `direction`, `status`, `from_number`, `to_number`,\n`duration_seconds`, `started_at` (when the call was placed), `answered_at` (when its audio\ncame up; absent until it did) and `recording_started_at` (when its recording began - a\ntranscript's `start` and `end` are milliseconds from here; null until the recording is saved,\non a browser call, and on older calls recorded before the field was added), all ISO 8601 with a `+00:00`\noffset as GET /calls/{id} writes them; plus `disposition`, `summary`, `transcript` and\n`extracted_data` once they exist. `transcript.ready` and `call.analyzed` are sent after the\nrecording is saved, so they carry `recording_started_at` on a phone call. No event carries the\nconversation while the call is still going.\n`call.failed` and `call.no_answer` carry `data.hangup_cause` when the cause is known. For a call\nfrom a number in [your own Telnyx account](/concepts/bring-your-own-carrier) that Telnyx\nrefused while it rang, `call.failed` has `data.hangup_cause`:\n\n- `carrier_rejected` — Telnyx refused the call (SIP 401, 403 or 407).\n- `carrier_number_invalid` — Telnyx could not route the number called (SIP 404, 484 or 604).\n\nThe SIP code is not in the webhook; the carrier account keeps the last one in `last_error.sip_code`.\nOne Telnyx refused before it rang sends no webhook when `POST /calls` was placing it (the\nrequest answers `422`); from the queue it sends `call.failed` with `data.error_reason` instead.\n","items":{"type":"string","enum":["call.started","call.answered","call.ended","call.failed","call.no_answer","call.dnc_blocked","transcript.ready","call.analyzed"],"uniqueKey":"webhook_events.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"webhook_events","typeLabel":"enum\u003cstring>[]"},"configured_webhook_header_names":{"type":"array","readOnly":true,"items":{"type":"string","uniqueKey":"configured_webhook_header_names.items.[INDEX]","typeLabel":"string"},"example":["Authorization","X-Source"],"description":"Legacy agents only, and absent from a `workflow` agent's response. The names of the stored `webhook_headers`, sorted; the values are never returned, to any key.\n","uniqueKey":"configured_webhook_header_names","typeLabel":"string[]"},"tools":{"type":"array","readOnly":true,"description":"Legacy agents only, and absent from a `workflow` agent's response. The agent's tools in execution order, each as GET /tools/{id} answers it plus `execution_order`, for a key that holds `tools:read`; without it each is `{id, name}` only.\n","items":{"type":"object","uniqueKey":"tools.items.[INDEX]","typeLabel":"object"},"uniqueKey":"tools","typeLabel":"object[]"},"extraction_parameters":{"type":"array","description":"AI extraction parameters — after each call, values are extracted from the transcript, stored on the call log and included in the call.analyzed webhook payload. Read them back on a call as `extracted_data` in GET /calls/{id}.\n","items":{"type":"object","required":["name","description"],"properties":{"name":{"type":"string","example":"customerName","description":"Parameter key in the extracted_data output","isRequired":true,"uniqueKey":"extraction_parameters.items.[INDEX].name","typeLabel":"string"},"description":{"type":"string","example":"The caller's full name as mentioned during the conversation","description":"Instructions for the AI on what to extract","isRequired":true,"uniqueKey":"extraction_parameters.items.[INDEX].description","typeLabel":"string"},"type":{"type":"string","enum":["text","number","yes_no","date"],"default":"text","example":"number","description":"The kind of value this parameter asks for, which decides what the stored value is: `text` a string, `number` a JSON number, `yes_no` a JSON boolean, `date` a `YYYY-MM-DD` string, read from the day the call started in the workspace's time zone - a day and month with no year is the next time it comes round, \"tomorrow\" and \"next Sunday\" are counted from the call day, something the caller says already happened (\"three months ago\", \"it ended in June\") is counted back from it, never forward, and a year the caller said is kept. Optional — a parameter saved without one behaves exactly as it always has, as `text`. A value the conversation never supplied is `null` whatever the kind, and a value that cannot be read as the declared kind is `null` rather than a string that only looks like one. Any other value is rejected: `422 WORKFLOW_SETTINGS_REQUEST_INVALID` for a workflow agent, `400 BAD_REQUEST` for a prompt or flow agent.\n","uniqueKey":"extraction_parameters.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"extraction_parameters.items.[INDEX]","typeLabel":"object"},"uniqueKey":"extraction_parameters","typeLabel":"object[]"},"created_at":{"type":"string","format":"date-time","uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"\u003cstring>","execution_version":"legacy","published_workflow_revision_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","live":true,"inbound":{"phone_numbers":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","number":"+972501234567","friendly_name":"\u003cstring>"}],"sip_endpoints":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"\u003cstring>"}]},"type":"workflow","flow_config":{"nodes":[{"id":"\u003cstring>","type":"start","name":"\u003cstring>","position":{"x":123,"y":123},"agent_speaks_first":true,"greeting":"\u003cstring>","is_literal":false,"next_step_id":"\u003cstring>","auto_advance":true}],"flow_config_version":"1","metadata":{"custom_metadata_keys":["\u003cstring>"]}},"system_prompt":"\u003cstring>","description":"\u003cstring>","voice":"Michal","model":"gemini-3.1-flash-live","resolved_model":"gemini-3.1-flash-live","background_sound":"call_center","background_sound_volume":0.3,"language":"he","temperature":1,"greeting_message":"\u003cstring>","agent_speaks_first":true,"vad_stop_secs":0.5,"vad_start_secs":0.2,"vad_confidence":0.7,"silence_timeout_secs":60,"idle_reminder_count":0,"idle_reminder_text":"\u003cstring>","max_continuous_speech_secs":120,"max_call_duration_secs":600,"lead_memory_enabled":true,"noise_cancellation_enabled":true,"is_active":true,"webhook_url":"\u003cstring>","webhook_url_path_withheld":true,"webhook_events":["call.started"],"configured_webhook_header_names":["Authorization","X-Source"],"tools":[{}],"extraction_parameters":[{"name":"customerName","description":"The caller's full name as mentioned during the conversation","type":"number"}],"created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"062ec1a1-224c-42f9-8584-3b2b994870c0":{"description":"Agent created as an unpublished draft.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","uniqueKey":"name","typeLabel":"string"},"execution_version":{"type":"string","enum":["legacy","workflow_v1"],"readOnly":true,"description":"Authoring ownership assigned by Yappr. workflow_v1 can be an unpublished draft; this field does not prove call readiness.","uniqueKey":"execution_version","typeLabel":"enum\u003cstring>"},"published_workflow_revision_id":{"oneOf":[{"type":"string","format":"uuid","readOnly":true,"description":"Null until explicit workflow publication. Cannot be set by agent create or PATCH.","uniqueKey":"published_workflow_revision_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","readOnly":true,"description":"Null until explicit workflow publication. Cannot be set by agent create or PATCH.","uniqueKey":"published_workflow_revision_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"published_workflow_revision_id","typeLabel":"string\u003cuuid> | null"},"live":{"type":"boolean","readOnly":true,"description":"On GET /agents and GET /agents/{id}: whether callers reach this agent right now. A workflow_v1 agent is live when it is active and a version of its workflow is published; a saved draft that was never published is not live. A legacy agent (type prompt or flow) has nothing to publish and is live whenever it is active, with published_workflow_revision_id null. A deactivated agent is never live. For a workflow_v1 agent the dashboard's \"Live · version N\" badge is the same fact; N is published.version on GET /agents/{id}/workflow.\n","uniqueKey":"live","typeLabel":"boolean"},"inbound":{"type":"object","readOnly":true,"description":"On GET /agents and GET /agents/{id}: what routes inbound calls to this agent - active phone numbers that answer with it (as the number's agent or the other half of its A/B split) and active SIP endpoints. Empty lists mean no inbound route reaches it; the member is absent when the routes could not be read. A key reads each route as its scopes allow: without `phone_numbers:search` a number's `number` and `friendly_name` are null, and without `sip_endpoints:read` an endpoint's `name` is null.\n","properties":{"phone_numbers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"inbound.phone_numbers.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"number":{"oneOf":[{"type":"string","example":"+972501234567","uniqueKey":"inbound.phone_numbers.items.[INDEX].number.oneOf.0","typeLabel":"string"},{"type":"null","example":"+972501234567","uniqueKey":"inbound.phone_numbers.items.[INDEX].number.oneOf.1","typeLabel":"null"}],"uniqueKey":"inbound.phone_numbers.items.[INDEX].number","typeLabel":"string | null"},"friendly_name":{"oneOf":[{"type":"string","uniqueKey":"inbound.phone_numbers.items.[INDEX].friendly_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"inbound.phone_numbers.items.[INDEX].friendly_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"inbound.phone_numbers.items.[INDEX].friendly_name","typeLabel":"string | null"}},"uniqueKey":"inbound.phone_numbers.items.[INDEX]","typeLabel":"object"},"uniqueKey":"inbound.phone_numbers","typeLabel":"object[]"},"sip_endpoints":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"inbound.sip_endpoints.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"name":{"oneOf":[{"type":"string","uniqueKey":"inbound.sip_endpoints.items.[INDEX].name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"inbound.sip_endpoints.items.[INDEX].name.oneOf.1","typeLabel":"null"}],"uniqueKey":"inbound.sip_endpoints.items.[INDEX].name","typeLabel":"string | null"}},"uniqueKey":"inbound.sip_endpoints.items.[INDEX]","typeLabel":"object"},"uniqueKey":"inbound.sip_endpoints","typeLabel":"object[]"}},"uniqueKey":"inbound","typeLabel":"object"},"type":{"type":"string","enum":["workflow","prompt","flow"],"description":"`workflow` on every agent with `execution_version: workflow_v1` — the only kind that can be created. Such an agent also **omits** `system_prompt`, `flow_config`, `webhook_url`, `webhook_events`, `webhook_headers` and `tools`: it has no such things, and returning them as nulls read as the retired kind. Its instructions, graph and tool bindings are its workflow document — `GET /agents/{id}/workflow`.\n`prompt` and `flow` appear only on agents created before the workflow engine, which keep their old response shape unchanged. `prompt` (legacy): a single `system_prompt` drives the call; the LLM decides when to call attached tools. `flow`: the call is driven by a `flow_config` graph. `type` is **immutable** post-create.\n","uniqueKey":"type","typeLabel":"enum\u003cstring>"},"flow_config":{"oneOf":[{"type":"object","description":"Legacy agents only, and absent from a `workflow` agent's response. The flow graph. Required when `type='flow'`, must be omitted/null when `type='prompt'`.\n","required":["nodes"],"properties":{"nodes":{"type":"array","minItems":1,"items":{"oneOf":[{"type":"object","description":"Discriminated by `type`.","required":["id","type"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.id","typeLabel":"string"},"type":{"type":"string","enum":["start"],"isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.name","typeLabel":"string"},"position":{"type":"object","description":"UI-only persisted x/y on the React Flow canvas. The runtime ignores this.","properties":{"x":{"type":"number","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.position.x","typeLabel":"number"},"y":{"type":"number","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.position.y","typeLabel":"number"}},"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.position","typeLabel":"object"},"agent_speaks_first":{"type":"boolean","default":true,"description":"Whether the bot speaks first on call connect. When false, the bot waits silently for the caller to speak first (silence_timeout_secs on the agent still applies). For flow agents this OVERRIDES the agent-level agent.agent_speaks_first / agent.greeting_message fields.\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.agent_speaks_first","typeLabel":"boolean"},"greeting":{"oneOf":[{"type":"string","description":"Spoken greeting (only used when agent_speaks_first is true). Random variations: {{Hi|Hello|Hey}} (two or more options separated by |) says one option, picked once per call; see [Random variations](/api-reference/agents/create#random-variations).","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.greeting.oneOf.0","typeLabel":"string"},{"type":"null","description":"Spoken greeting (only used when agent_speaks_first is true). Random variations: {{Hi|Hello|Hey}} (two or more options separated by |) says one option, picked once per call; see [Random variations](/api-reference/agents/create#random-variations).","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.greeting.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.greeting","typeLabel":"string | null"},"is_literal":{"type":"boolean","default":false,"description":"When true, speak `greeting` verbatim. When false, treat it as an LLM instruction.","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.is_literal","typeLabel":"boolean"},"next_step_id":{"oneOf":[{"type":"string","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.next_step_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.next_step_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.next_step_id","typeLabel":"string | null"},"auto_advance":{"type":"boolean","default":true,"description":"Whether to enter the first conversation node immediately on session start (default `true`). When `false`, the bot's greeting is delivered in start-node context only; the first conversation node is entered only after the user's first reply (via internal advancement).\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.auto_advance","typeLabel":"boolean"}},"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"Discriminated by `type`.","required":["id","type","instructions","transitions"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.id","typeLabel":"string"},"type":{"type":"string","enum":["conversation"],"isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"instructions":{"type":"string","description":"Layered on top of agent.system_prompt as a system message at step entry. Random variations: {{Hi|Hello|Hey}} (two or more options separated by |) says one option, picked once per call; see [Random variations](/api-reference/agents/create#random-variations).","isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.instructions","typeLabel":"string"},"transitions":{"type":"array","items":{"type":"object","required":["id","label","description","next_step_id"],"description":"A labeled outgoing branch from a conversation node. The voice agent picks one\n(or stays) at each user-turn boundary by calling the `pick_transition` tool.\n","properties":{"id":{"type":"string","description":"Stable transition id (used in the flow graph and traces)","isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.transitions.items.[INDEX].id","typeLabel":"string"},"label":{"type":"string","description":"Short human-readable label, also surfaced in the dashboard and call traces","isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.transitions.items.[INDEX].label","typeLabel":"string"},"description":{"type":"string","minLength":1,"description":"REQUIRED, non-empty. The natural-language trigger the voice agent reads at runtime\nto decide whether to take this path. Describe a user-side signal (what the caller\nsaid or implied), not an agent intent. Example: \"Caller confirmed they want a demo\nscheduled\" — not \"agent books the demo\". An empty description is rejected with\nerror code `transition_description_missing`.\n","isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.transitions.items.[INDEX].description","typeLabel":"string"},"next_step_id":{"type":"string","description":"Destination node id","isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.transitions.items.[INDEX].next_step_id","typeLabel":"string"}},"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.transitions.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.transitions","typeLabel":"object[]"},"is_global":{"type":"boolean","default":false,"description":"Mark this node as globally reachable. Only valid on conversation/end/transfer nodes.","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.is_global","typeLabel":"boolean"},"global_jump_description":{"oneOf":[{"type":"string","description":"REQUIRED when is_global=true. Natural-language condition the eval LLM uses to decide whether\nto jump here. Describe a clear user-side signal, not an agent intent.\nExample: \"User reveals they're actually an owner, not a tenant\".\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.global_jump_description.oneOf.0","typeLabel":"string"},{"type":"null","description":"REQUIRED when is_global=true. Natural-language condition the eval LLM uses to decide whether\nto jump here. Describe a clear user-side signal, not an agent intent.\nExample: \"User reveals they're actually an owner, not a tenant\".\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.global_jump_description.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.global_jump_description","typeLabel":"string | null"},"name":{"type":"string","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.name","typeLabel":"string"},"position":{"type":"object","description":"UI-only persisted x/y on the React Flow canvas. The runtime ignores this.","properties":{"x":{"type":"number","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.position.x","typeLabel":"number"},"y":{"type":"number","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.position.y","typeLabel":"number"}},"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.position","typeLabel":"object"}},"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"Discriminated by `type`.","required":["id","type","transitions"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.id","typeLabel":"string"},"type":{"type":"string","enum":["tool_call"],"isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"transitions":{"type":"object","description":"Routing for a tool_call node. Routing is deterministic, no LLM. error fires on hard failures\n(timeout, 4xx/5xx, integration disconnected). Otherwise custom[] is evaluated in declaration order\nand the first match wins; success fires only if no custom matched. Exactly one out-edge per fire.\n","properties":{"success_next_step_id":{"oneOf":[{"type":"string","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.success_next_step_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.success_next_step_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.success_next_step_id","typeLabel":"string | null"},"error_next_step_id":{"oneOf":[{"type":"string","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.error_next_step_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.error_next_step_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.error_next_step_id","typeLabel":"string | null"},"custom":{"type":"array","default":[],"items":{"type":"object","required":["id","label","jsonpath","equals","next_step_id"],"description":"Deterministic branch for a tool-call node, matched by JSONPath equality against the tool's parsed response body.\nCustom branches are evaluated top-to-bottom, first match wins; mutually exclusive with success/error (only one\nout-edge fires per tool fire). See /docs/api-reference/agents/flow-config-schema for the full runtime semantics.\n","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.custom.items.[INDEX].id","typeLabel":"string"},"label":{"type":"string","isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.custom.items.[INDEX].label","typeLabel":"string"},"jsonpath":{"type":"string","example":"$.status","description":"Dotted path into the tool's parsed response body (root `$`). Supported: `$.foo.bar`, `$.list[0].name`,\n`$.items[2]`. NOT supported: recursive descent (`$..`), wildcards (`$.*`), filter expressions.\n","isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.custom.items.[INDEX].jsonpath","typeLabel":"string"},"equals":{"type":"string","example":"no_availability","description":"Compared via string equality after JSON-style stringification of the extracted value:\nbooleans become \"true\"/\"false\" (lowercase), null becomes \"null\", numbers via str(). Match the\nstringified form exactly or the branch never fires.\n","isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.custom.items.[INDEX].equals","typeLabel":"string"},"next_step_id":{"type":"string","isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.custom.items.[INDEX].next_step_id","typeLabel":"string"}},"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.custom.items.[INDEX]","typeLabel":"object"},"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.custom","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions","typeLabel":"object"},"name":{"type":"string","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.name","typeLabel":"string"},"position":{"type":"object","description":"UI-only persisted x/y on the React Flow canvas. The runtime ignores this.","properties":{"x":{"type":"number","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.position.x","typeLabel":"number"},"y":{"type":"number","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.position.y","typeLabel":"number"}},"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.position","typeLabel":"object"},"tool_id":{"oneOf":[{"type":"string","format":"uuid","description":"References an existing row in the company's tools table","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.tool_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"References an existing row in the company's tools table","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.tool_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.tool_id","typeLabel":"string\u003cuuid> | null"},"config_override":{"oneOf":[{"type":"object","additionalProperties":true,"description":"Per-node override merged shallow over the referenced tool's config (array replacement). Open-shape — each tool type has its own valid keys. For a transfer tool it may set `transfer_method`, `pbx_feature_code` and `pbx_feature_code_hangup_after_secs` (see TransferNode); the merged result is checked when you save, with the same codes.","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.config_override.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"Per-node override merged shallow over the referenced tool's config (array replacement). Open-shape — each tool type has its own valid keys. For a transfer tool it may set `transfer_method`, `pbx_feature_code` and `pbx_feature_code_hangup_after_secs` (see TransferNode); the merged result is checked when you save, with the same codes.","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.config_override.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.config_override","typeLabel":"object | null"},"pre_fire_announcement":{"oneOf":[{"type":"boolean","description":"When true, the platform plays a short hold tone the moment this node fires so the caller\ndoesn't sit in silence while the action runs. The tone is platform-controlled (not\nconfigurable) and stops automatically when the action returns. Use it for actions you\nexpect to take more than ~500 ms (webhook to a slow CRM, complex DB lookup); skip it for\nfast actions to avoid making the call feel chatty.\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.pre_fire_announcement.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"When true, the platform plays a short hold tone the moment this node fires so the caller\ndoesn't sit in silence while the action runs. The tone is platform-controlled (not\nconfigurable) and stops automatically when the action returns. Use it for actions you\nexpect to take more than ~500 ms (webhook to a slow CRM, complex DB lookup); skip it for\nfast actions to avoid making the call feel chatty.\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.pre_fire_announcement.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.pre_fire_announcement","typeLabel":"boolean | null"},"timeout_secs":{"oneOf":[{"type":"number","minimum":1,"maximum":600,"description":"Per-node hard cap on execution time. When the action doesn't return in this many seconds,\nthe runtime cancels it and routes to `error_next_step_id` with a `tool_timeout_after_Ns`\nerror. When null/omitted on a webhook tool, the controller uses the effective tool\n`config.timeout_seconds` plus one second of dispatch overhead. Other tool nodes use the\nplatform default (30s). Set this only when the flow needs a different node-level limit.\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.timeout_secs.oneOf.0","typeLabel":"number"},{"type":"null","minimum":1,"maximum":600,"description":"Per-node hard cap on execution time. When the action doesn't return in this many seconds,\nthe runtime cancels it and routes to `error_next_step_id` with a `tool_timeout_after_Ns`\nerror. When null/omitted on a webhook tool, the controller uses the effective tool\n`config.timeout_seconds` plus one second of dispatch overhead. Other tool nodes use the\nplatform default (30s). Set this only when the flow needs a different node-level limit.\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.timeout_secs.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.timeout_secs","typeLabel":"number | null"}},"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","description":"Discriminated by `type`.","required":["id","type"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.id","typeLabel":"string"},"type":{"type":"string","enum":["transfer"],"isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"is_global":{"type":"boolean","default":false,"description":"Mark this node as globally reachable. Only valid on conversation/end/transfer nodes.","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.is_global","typeLabel":"boolean"},"global_jump_description":{"oneOf":[{"type":"string","description":"REQUIRED when is_global=true. Natural-language condition the eval LLM uses to decide whether\nto jump here. Describe a clear user-side signal, not an agent intent.\nExample: \"User reveals they're actually an owner, not a tenant\".\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.global_jump_description.oneOf.0","typeLabel":"string"},{"type":"null","description":"REQUIRED when is_global=true. Natural-language condition the eval LLM uses to decide whether\nto jump here. Describe a clear user-side signal, not an agent intent.\nExample: \"User reveals they're actually an owner, not a tenant\".\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.global_jump_description.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.global_jump_description","typeLabel":"string | null"},"name":{"type":"string","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.name","typeLabel":"string"},"position":{"type":"object","description":"UI-only persisted x/y on the React Flow canvas. The runtime ignores this.","properties":{"x":{"type":"number","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.position.x","typeLabel":"number"},"y":{"type":"number","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.position.y","typeLabel":"number"}},"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.position","typeLabel":"object"},"transfer_to":{"oneOf":[{"type":"string","example":"+972501234567","description":"Where to send the caller: either a phone number or a SIP address.\n\n- A **phone number** (for example `+972501234567`) is dialled as a second call. It\n can't be used on a call that arrived over a SIP trunk or an extension endpoint.\n- A **SIP address** (`sip:` or `sips:`, for example `sip:reception@pbx.example.com`)\n hands the caller back to your own phone system, which places the new call\n (a SIP REFER). It works on calls that arrived over a\n [username-and-password SIP trunk](/concepts/sip-trunks#transfers). On a call\n that arrived over an [extension endpoint](/concepts/sip-trunks#register-as-an-extension)\n it works differently: no REFER is sent, and Yappr places a new call through\n your extension to the extension or queue in the address (only the part before\n the `@` is used). On any other call the transfer is refused and the agent\n keeps helping the caller.\n On a trunk, your phone system has about nine seconds to have the new call\n answered, and if the transfer fails the call ends. On an extension call the\n new call has about 25 seconds to be answered, and if it fails or isn't\n answered the call also ends. The address must be\n `sip:user@host[:port]`, at most 256 characters, with a user part, and no\n password or `?headers`. A value that starts with `sip:` or `sips:` but is\n malformed is rejected when you save the flow.\n","examples":["+972501234567","sip:reception@pbx.example.com"],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.transfer_to.oneOf.0","typeLabel":"string"},{"type":"null","example":"+972501234567","description":"Where to send the caller: either a phone number or a SIP address.\n\n- A **phone number** (for example `+972501234567`) is dialled as a second call. It\n can't be used on a call that arrived over a SIP trunk or an extension endpoint.\n- A **SIP address** (`sip:` or `sips:`, for example `sip:reception@pbx.example.com`)\n hands the caller back to your own phone system, which places the new call\n (a SIP REFER). It works on calls that arrived over a\n [username-and-password SIP trunk](/concepts/sip-trunks#transfers). On a call\n that arrived over an [extension endpoint](/concepts/sip-trunks#register-as-an-extension)\n it works differently: no REFER is sent, and Yappr places a new call through\n your extension to the extension or queue in the address (only the part before\n the `@` is used). On any other call the transfer is refused and the agent\n keeps helping the caller.\n On a trunk, your phone system has about nine seconds to have the new call\n answered, and if the transfer fails the call ends. On an extension call the\n new call has about 25 seconds to be answered, and if it fails or isn't\n answered the call also ends. The address must be\n `sip:user@host[:port]`, at most 256 characters, with a user part, and no\n password or `?headers`. A value that starts with `sip:` or `sips:` but is\n malformed is rejected when you save the flow.\n","examples":["+972501234567","sip:reception@pbx.example.com"],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.transfer_to.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.transfer_to","typeLabel":"string | null"},"transfer_message":{"oneOf":[{"type":"string","description":"Spoken before transferring. Random variations: {{Hi|Hello|Hey}} (two or more options separated by |) says one option, picked once per call; see [Random variations](/api-reference/agents/create#random-variations).","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.transfer_message.oneOf.0","typeLabel":"string"},{"type":"null","description":"Spoken before transferring. Random variations: {{Hi|Hello|Hey}} (two or more options separated by |) says one option, picked once per call; see [Random variations](/api-reference/agents/create#random-variations).","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.transfer_message.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.transfer_message","typeLabel":"string | null"},"transfer_method":{"oneOf":[{"type":"string","enum":["auto","pbx_feature_code"],"default":"auto","description":"How a call that arrived through an\n[extension endpoint](/concepts/sip-trunks#hand-the-call-to-your-phone-system-with-its-transfer-code)\nis transferred. `auto` (or leaving it out) uses the transfer code set on the\nextension endpoint (`register.pbx_feature_code`), or the usual dial-back when it\nhas none. `pbx_feature_code` uses this node's own code and hang-up time instead,\nas a pair, with nothing taken from the endpoint: it first sends your phone system\nthe in-call transfer code (`pbx_feature_code`) followed by the extension, so the\nphone system moves the\ncaller itself and Yappr leaves the call; without a hang-up time\n(`pbx_feature_code_hangup_after_secs`), if it doesn't within about 12 seconds,\nYappr falls back to the dial-back. Ignored on every other call. With\n`pbx_feature_code`, `transfer_to` must name an extension a keypad can dial: up\nto 32 digits, `*` or `#`, as `sip:400@pbx.example.com` or `400`. Anything else\nis rejected when you save (`transfer_method_invalid`,\n`transfer_extension_not_dialable`).\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.transfer_method.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["auto","pbx_feature_code"],"default":"auto","description":"How a call that arrived through an\n[extension endpoint](/concepts/sip-trunks#hand-the-call-to-your-phone-system-with-its-transfer-code)\nis transferred. `auto` (or leaving it out) uses the transfer code set on the\nextension endpoint (`register.pbx_feature_code`), or the usual dial-back when it\nhas none. `pbx_feature_code` uses this node's own code and hang-up time instead,\nas a pair, with nothing taken from the endpoint: it first sends your phone system\nthe in-call transfer code (`pbx_feature_code`) followed by the extension, so the\nphone system moves the\ncaller itself and Yappr leaves the call; without a hang-up time\n(`pbx_feature_code_hangup_after_secs`), if it doesn't within about 12 seconds,\nYappr falls back to the dial-back. Ignored on every other call. With\n`pbx_feature_code`, `transfer_to` must name an extension a keypad can dial: up\nto 32 digits, `*` or `#`, as `sip:400@pbx.example.com` or `400`. Anything else\nis rejected when you save (`transfer_method_invalid`,\n`transfer_extension_not_dialable`).\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.transfer_method.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.transfer_method","typeLabel":"enum\u003cstring> | null"},"pbx_feature_code":{"oneOf":[{"type":"string","maxLength":32,"pattern":"^[0-9A-Da-d*#wW]*(\\{extension\\})?[0-9A-Da-d*#wW]*$","examples":["##","*2","#1","*2{extension}#"],"description":"Your phone system's own in-call transfer code (blind or attended), sent as key presses. Required\nwhen `transfer_method` is `pbx_feature_code` (`pbx_feature_code_missing`),\nignored otherwise. 1 to 32 characters: `0`-`9`, `*`, `#`, `A`-`D`, and the\npauses `w` (half a second) and `W` (one second), with at least one key.\n`{extension}` may appear once and is replaced by the extension; without it\nthe extension is sent right after the code (`##` + `400` sends `##400`).\nAnything else is rejected when you save (`pbx_feature_code_invalid`).\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.pbx_feature_code.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":32,"pattern":"^[0-9A-Da-d*#wW]*(\\{extension\\})?[0-9A-Da-d*#wW]*$","examples":["##","*2","#1","*2{extension}#"],"description":"Your phone system's own in-call transfer code (blind or attended), sent as key presses. Required\nwhen `transfer_method` is `pbx_feature_code` (`pbx_feature_code_missing`),\nignored otherwise. 1 to 32 characters: `0`-`9`, `*`, `#`, `A`-`D`, and the\npauses `w` (half a second) and `W` (one second), with at least one key.\n`{extension}` may appear once and is replaced by the extension; without it\nthe extension is sent right after the code (`##` + `400` sends `##400`).\nAnything else is rejected when you save (`pbx_feature_code_invalid`).\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.pbx_feature_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.pbx_feature_code","typeLabel":"string | null"},"pbx_feature_code_hangup_after_secs":{"oneOf":[{"type":"integer","minimum":1,"maximum":10,"examples":[4],"description":"Set it when your phone system's code starts an attended transfer that\ncompletes when the transferring extension hangs up. Yappr hangs up this many\nseconds after the code (counted once its key presses have played); until\nthen the agent is off the line, silent and not listening. Because that\nhang-up is the hand-off there is no fallback dial-back, so\ntest it once. 4 is a good start. Leave it out (or null) to wait for your\nphone system to end the call, with the dial-back as the fallback. A whole\nnumber from 1 to 10, only with `transfer_method` `pbx_feature_code`; anything\nelse is rejected when you save (`pbx_feature_code_hangup_after_secs_invalid`,\n`pbx_feature_code_hangup_after_secs_without_code`).\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.pbx_feature_code_hangup_after_secs.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"maximum":10,"examples":[4],"description":"Set it when your phone system's code starts an attended transfer that\ncompletes when the transferring extension hangs up. Yappr hangs up this many\nseconds after the code (counted once its key presses have played); until\nthen the agent is off the line, silent and not listening. Because that\nhang-up is the hand-off there is no fallback dial-back, so\ntest it once. 4 is a good start. Leave it out (or null) to wait for your\nphone system to end the call, with the dial-back as the fallback. A whole\nnumber from 1 to 10, only with `transfer_method` `pbx_feature_code`; anything\nelse is rejected when you save (`pbx_feature_code_hangup_after_secs_invalid`,\n`pbx_feature_code_hangup_after_secs_without_code`).\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.pbx_feature_code_hangup_after_secs.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.pbx_feature_code_hangup_after_secs","typeLabel":"integer | null"}},"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","description":"Discriminated by `type`.","required":["id","type"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.id","typeLabel":"string"},"type":{"type":"string","enum":["end"],"isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"is_global":{"type":"boolean","default":false,"description":"Mark this node as globally reachable. Only valid on conversation/end/transfer nodes.","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.is_global","typeLabel":"boolean"},"global_jump_description":{"oneOf":[{"type":"string","description":"REQUIRED when is_global=true. Natural-language condition the eval LLM uses to decide whether\nto jump here. Describe a clear user-side signal, not an agent intent.\nExample: \"User reveals they're actually an owner, not a tenant\".\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.global_jump_description.oneOf.0","typeLabel":"string"},{"type":"null","description":"REQUIRED when is_global=true. Natural-language condition the eval LLM uses to decide whether\nto jump here. Describe a clear user-side signal, not an agent intent.\nExample: \"User reveals they're actually an owner, not a tenant\".\n","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.global_jump_description.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.global_jump_description","typeLabel":"string | null"},"name":{"type":"string","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.name","typeLabel":"string"},"position":{"type":"object","description":"UI-only persisted x/y on the React Flow canvas. The runtime ignores this.","properties":{"x":{"type":"number","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.position.x","typeLabel":"number"},"y":{"type":"number","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.position.y","typeLabel":"number"}},"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.position","typeLabel":"object"},"farewell":{"oneOf":[{"type":"string","description":"Spoken before the call ends. Random variations: {{Hi|Hello|Hey}} (two or more options separated by |) says one option, picked once per call; see [Random variations](/api-reference/agents/create#random-variations).","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.farewell.oneOf.0","typeLabel":"string"},{"type":"null","description":"Spoken before the call ends. Random variations: {{Hi|Hello|Hey}} (two or more options separated by |) says one option, picked once per call; see [Random variations](/api-reference/agents/create#random-variations).","uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.farewell.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.farewell","typeLabel":"string | null"},"is_literal":{"type":"boolean","default":false,"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.is_literal","typeLabel":"boolean"}},"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"flow_config.oneOf.0.nodes.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"flow_config.oneOf.0.nodes","typeLabel":"object[]"},"flow_config_version":{"type":"string","default":"1","uniqueKey":"flow_config.oneOf.0.flow_config_version","typeLabel":"string"},"metadata":{"type":"object","additionalProperties":true,"description":"Optional metadata surfaced to the eval LLM context (e.g. agent purpose, customer name conventions).","properties":{"custom_metadata_keys":{"type":"array","items":{"type":"string","uniqueKey":"flow_config.oneOf.0.metadata.custom_metadata_keys.items.[INDEX]","typeLabel":"string"},"description":"User-declared keys that this flow's `args_template` token interpolation expects to\nfind under the `{{metadata.\u003ckey>}}` namespace at dispatch time. Surfaced in the\ndashboard so callers know which keys to pass in `POST /calls body.metadata`.\nKeys not listed here still resolve at runtime if passed (and to empty string if\nnot) — this list is purely a hint for the UI / API consumers.\n","uniqueKey":"flow_config.oneOf.0.metadata.custom_metadata_keys","typeLabel":"string[]"}},"uniqueKey":"flow_config.oneOf.0.metadata","typeLabel":"object"}},"uniqueKey":"flow_config.oneOf.0","typeLabel":"object"},{"type":"null","description":"Legacy agents only, and absent from a `workflow` agent's response. The flow graph. Required when `type='flow'`, must be omitted/null when `type='prompt'`.\n","uniqueKey":"flow_config.oneOf.1","typeLabel":"null"}],"uniqueKey":"flow_config","typeLabel":"object | null"},"system_prompt":{"oneOf":[{"type":"string","description":"Legacy agents only, and absent from a `workflow` agent's response — read its workflow document instead. {{VariableName}} is filled in from the call's variables. Random variations: {{Hi|Hello|Hey}} (two or more options separated by |) says one option, picked once per call; see [Random variations](/api-reference/agents/create#random-variations).","uniqueKey":"system_prompt.oneOf.0","typeLabel":"string"},{"type":"null","description":"Legacy agents only, and absent from a `workflow` agent's response — read its workflow document instead. {{VariableName}} is filled in from the call's variables. Random variations: {{Hi|Hello|Hey}} (two or more options separated by |) says one option, picked once per call; see [Random variations](/api-reference/agents/create#random-variations).","uniqueKey":"system_prompt.oneOf.1","typeLabel":"null"}],"uniqueKey":"system_prompt","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","uniqueKey":"description.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"description.oneOf.1","typeLabel":"null"}],"uniqueKey":"description","typeLabel":"string | null"},"voice":{"type":"string","enum":["Michal","Yonatan","David","Rachel","Gil","Noa","Maya","Adam","Shira","Avigail","Amir","Liat","Omer","Tamar","Tom","Benny","Nir","Natan","Yael","Dvora","Yosef","Shir","Anat","Ariel","Roi","Shlomo","Dana","Alon","Ruth","Yuval","Keren","Eitan","Hila","Ido","Boaz","Tali","Erez","Efrat"],"description":"The persona the agent speaks in. A voice belongs to one of Yappr's two voice families, so naming a voice on its own still chooses the family — and with it the model family (`model` below) — and no existing client has to change. There is no separate engine field, and `engine` / `engine_voice` are rejected if you send them.\n`Keren, Eitan, Hila, Ido, Boaz, Tali, Erez, Efrat` are the voices of `gpt-live`, available to every workspace. Agents on these voices handle their own turn-taking and expressiveness, so `temperature`, `vad_stop_secs`, `vad_start_secs` and `vad_confidence` are rejected on them, and they cannot be used on a `type='flow'` agent. The other thirty are the voices of both Gemini models. Any other name returns `400` listing every voice you may use.\nAlways the name the agent actually speaks in, whichever family it is on.\n","uniqueKey":"voice","typeLabel":"enum\u003cstring>"},"model":{"oneOf":[{"type":"string","enum":["gemini-3.1-flash-live","gemini-3.8-live","gpt-live"],"description":"The voice model the agent runs on, as you chose it; null means **automatic**, where Yappr picks by the agent's language (see `resolved_model`). See the models page for what each model is and how to choose.\nA `gpt-live` agent always reads `gpt-live`: GPT Live is chosen through its voices, never automatically.\n","uniqueKey":"model.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["gemini-3.1-flash-live","gemini-3.8-live","gpt-live"],"description":"The voice model the agent runs on, as you chose it; null means **automatic**, where Yappr picks by the agent's language (see `resolved_model`). See the models page for what each model is and how to choose.\nA `gpt-live` agent always reads `gpt-live`: GPT Live is chosen through its voices, never automatically.\n","uniqueKey":"model.oneOf.1","typeLabel":"null"}],"uniqueKey":"model","typeLabel":"enum\u003cstring> | null"},"resolved_model":{"type":"string","readOnly":true,"enum":["gemini-3.1-flash-live","gemini-3.8-live","gpt-live"],"description":"The model the agent's calls run on: `model` when it is set, and otherwise what automatic chooses today for the agent's language (Hebrew and multilingual run `gemini-3.1-flash-live`, every other language `gemini-3.8-live`). Read-only, and it can change for an automatic agent when Yappr moves a language to a better model; a pinned `model` never moves.\n","uniqueKey":"resolved_model","typeLabel":"enum\u003cstring>"},"background_sound":{"oneOf":[{"type":"string","enum":["call_center","open_office","cafe","outdoor"],"description":"Ambient background sound mixed under the agent's voice during calls. Null means silent (default).","uniqueKey":"background_sound.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["call_center","open_office","cafe","outdoor"],"description":"Ambient background sound mixed under the agent's voice during calls. Null means silent (default).","uniqueKey":"background_sound.oneOf.1","typeLabel":"null"}],"uniqueKey":"background_sound","typeLabel":"enum\u003cstring> | null"},"background_sound_volume":{"type":"number","minimum":0,"maximum":0.6,"default":0.3,"description":"Volume of the background sound, 0.0–0.6. Capped to protect turn-taking.","uniqueKey":"background_sound_volume","typeLabel":"number"},"language":{"type":"string","enum":["he","en","ar","ru","fr","es","de","it","pt","nl","tr","pl","uk","hi","ja","ko","zh","multi"],"description":"The language the agent speaks and listens for on calls, as its short code, or `multi` for a multilingual agent that answers in the caller's language and switches when they do. Each language gets its own speaking rules (politeness, gender, how numbers, dates and prices are said). See the Languages page.\n","uniqueKey":"language","typeLabel":"enum\u003cstring>"},"temperature":{"type":"number","minimum":0,"maximum":2,"description":"How varied the agent's wording is. On the Gemini voices a value below 0.3 is stored and returned as you sent it, and the agent speaks as if it were 0.3: lower values sometimes made a call open on a word or two and a pause. The expressive voices do not take it.","uniqueKey":"temperature","typeLabel":"number"},"greeting_message":{"oneOf":[{"type":"string","description":"The line the agent opens the call with when agent_speaks_first is true, said word for word in the agent's language (a second-family voice can still word it slightly differently). On the standard voices a caller's brief hello in the first few seconds of the line does not interrupt it; a caller who keeps talking over it does. {{FirstName}} is filled in from the call's variables or the lead's name, or left out with the space before it when there is none. Send null to clear it and let the agent open in its own words. Editable here and on PATCH /agents/{id}; on a flow agent the start node's own opening overrides it. Random variations: {{Hi|Hello|Hey}} (two or more options separated by |) says one option, picked once per call; see [Random variations](/api-reference/agents/create#random-variations). On a workflow agent it may read a Before-call step's result, {{before.\u003cstep_id>.\u003cfield>|\u003cfallback>}}, said word for word: the value, else the fallback, else the rest of the line; Check and Publish refuse a step the workflow does not have. See [Opening line from a Before step](/api-reference/workflows/greeting-from-before).","uniqueKey":"greeting_message.oneOf.0","typeLabel":"string"},{"type":"null","description":"The line the agent opens the call with when agent_speaks_first is true, said word for word in the agent's language (a second-family voice can still word it slightly differently). On the standard voices a caller's brief hello in the first few seconds of the line does not interrupt it; a caller who keeps talking over it does. {{FirstName}} is filled in from the call's variables or the lead's name, or left out with the space before it when there is none. Send null to clear it and let the agent open in its own words. Editable here and on PATCH /agents/{id}; on a flow agent the start node's own opening overrides it. Random variations: {{Hi|Hello|Hey}} (two or more options separated by |) says one option, picked once per call; see [Random variations](/api-reference/agents/create#random-variations). On a workflow agent it may read a Before-call step's result, {{before.\u003cstep_id>.\u003cfield>|\u003cfallback>}}, said word for word: the value, else the fallback, else the rest of the line; Check and Publish refuse a step the workflow does not have. See [Opening line from a Before step](/api-reference/workflows/greeting-from-before).","uniqueKey":"greeting_message.oneOf.1","typeLabel":"null"}],"uniqueKey":"greeting_message","typeLabel":"string | null"},"agent_speaks_first":{"type":"boolean","uniqueKey":"agent_speaks_first","typeLabel":"boolean"},"vad_stop_secs":{"type":"number","minimum":0.05,"maximum":5,"default":0.5,"description":"Seconds of silence that end the caller's turn. Lower answers sooner and cuts a caller who pauses mid-thought; higher waits longer before replying. Below 0.5 s the agent may start answering half a sentence.\n","uniqueKey":"vad_stop_secs","typeLabel":"number"},"vad_start_secs":{"type":"number","minimum":0.05,"maximum":2,"default":0.2,"description":"Seconds of speech that count as the caller starting to talk. It also sets how much of the moment before that is kept, so an interruption does not lose the caller's first word.\n","uniqueKey":"vad_start_secs","typeLabel":"number"},"vad_confidence":{"type":"number","minimum":0,"maximum":1,"default":0.7,"description":"How sure the agent must be that it is hearing speech. Below the 0.7 default the agent reacts more eagerly — useful for quiet callers, and more likely to react to background noise on a noisy line. Two things read it, and they read it differently. How readily the caller can cut the agent off mid-sentence follows the number continuously, so any change moves it. Where the caller's turn begins and ends is a two-position switch either side of the 0.7 default: at or above it the agent is deliberate about deciding the caller has started or stopped, below it eager. For that half, 0.05 and 0.69 behave identically, and so do 0.70 and 1.00 — tune it by moving across the default, not by nudging it.\n","uniqueKey":"vad_confidence","typeLabel":"number"},"silence_timeout_secs":{"type":"number","minimum":10,"maximum":900,"default":60,"description":"Seconds of caller silence before auto-hangup. Prevents idle calls wasting credits.","uniqueKey":"silence_timeout_secs","typeLabel":"number"},"idle_reminder_count":{"type":"integer","minimum":0,"maximum":3,"default":0,"description":"How many times the agent asks a silent caller whether they are still there before `silence_timeout_secs` hangs up. Each reminder is said when the silence timeout runs out, and the timer starts again after it; the caller speaking resets the count. 0 (the default) hangs up at the first timeout without asking. See [Idle reminders](/api-reference/agents/idle-reminders).\n","uniqueKey":"idle_reminder_count","typeLabel":"integer"},"idle_reminder_text":{"oneOf":[{"type":"string","maxLength":200,"description":"What the agent says as each reminder, word for word. Null (the default) is a short line in the call's language (\"Hello, are you still there?\" in English); for a language without a fixed line, the agent asks in its own words in the call's language. A blank string is stored as null.\n","uniqueKey":"idle_reminder_text.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":200,"description":"What the agent says as each reminder, word for word. Null (the default) is a short line in the call's language (\"Hello, are you still there?\" in English); for a language without a fixed line, the agent asks in its own words in the call's language. A blank string is stored as null.\n","uniqueKey":"idle_reminder_text.oneOf.1","typeLabel":"null"}],"uniqueKey":"idle_reminder_text","typeLabel":"string | null"},"max_continuous_speech_secs":{"type":"number","minimum":0,"maximum":300,"default":120,"description":"Max seconds one party can speak non-stop before auto-hangup. Catches answering machines. 0 = disabled.","uniqueKey":"max_continuous_speech_secs","typeLabel":"number"},"max_call_duration_secs":{"type":"number","minimum":0,"maximum":3600,"default":600,"description":"Hard cap on total call duration regardless of activity. 0 = no cap of the agent's own; the platform still ends the call after 65 minutes (3900 s), with the disconnect reason `Platform call limit reached`. A call is never billed for more than this plus 60 seconds; with 0, or once a call is transferred to a person, billing stops at 4 hours.","uniqueKey":"max_call_duration_secs","typeLabel":"number"},"lead_memory_enabled":{"type":"boolean","default":true,"description":"When true, the matched lead's long-term memory context is injected into the system prompt at call time.","uniqueKey":"lead_memory_enabled","typeLabel":"boolean"},"noise_cancellation_enabled":{"type":"boolean","uniqueKey":"noise_cancellation_enabled","typeLabel":"boolean"},"is_active":{"type":"boolean","uniqueKey":"is_active","typeLabel":"boolean"},"webhook_url":{"oneOf":[{"type":"string","format":"uri","description":"Legacy agents only. Read whole by a key with `tools:read` (or `tools:update`), the rule GET /deliveries/{id} applies to the same destination; for any other key, and in a campaign or eval-case embed, it is `scheme://host[:port]` and `webhook_url_path_withheld` is true. Send the whole URL to change it.\n","uniqueKey":"webhook_url.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","description":"Legacy agents only. Read whole by a key with `tools:read` (or `tools:update`), the rule GET /deliveries/{id} applies to the same destination; for any other key, and in a campaign or eval-case embed, it is `scheme://host[:port]` and `webhook_url_path_withheld` is true. Send the whole URL to change it.\n","uniqueKey":"webhook_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"webhook_url","typeLabel":"string\u003curi> | null"},"webhook_url_path_withheld":{"type":"boolean","readOnly":true,"description":"Legacy agents only. True when `webhook_url` is shortened to `scheme://host[:port]` because the reading key holds neither `tools:read` nor `tools:update`.\n","uniqueKey":"webhook_url_path_withheld","typeLabel":"boolean"},"webhook_events":{"type":"array","description":"Events posted to `webhook_url` as `{event, timestamp, agent_id, company_id, call_id, data}`.\n`data` on every call event carries `direction`, `status`, `from_number`, `to_number`,\n`duration_seconds`, `started_at` (when the call was placed), `answered_at` (when its audio\ncame up; absent until it did) and `recording_started_at` (when its recording began - a\ntranscript's `start` and `end` are milliseconds from here; null until the recording is saved,\non a browser call, and on older calls recorded before the field was added), all ISO 8601 with a `+00:00`\noffset as GET /calls/{id} writes them; plus `disposition`, `summary`, `transcript` and\n`extracted_data` once they exist. `transcript.ready` and `call.analyzed` are sent after the\nrecording is saved, so they carry `recording_started_at` on a phone call. No event carries the\nconversation while the call is still going.\n`call.failed` and `call.no_answer` carry `data.hangup_cause` when the cause is known. For a call\nfrom a number in [your own Telnyx account](/concepts/bring-your-own-carrier) that Telnyx\nrefused while it rang, `call.failed` has `data.hangup_cause`:\n\n- `carrier_rejected` — Telnyx refused the call (SIP 401, 403 or 407).\n- `carrier_number_invalid` — Telnyx could not route the number called (SIP 404, 484 or 604).\n\nThe SIP code is not in the webhook; the carrier account keeps the last one in `last_error.sip_code`.\nOne Telnyx refused before it rang sends no webhook when `POST /calls` was placing it (the\nrequest answers `422`); from the queue it sends `call.failed` with `data.error_reason` instead.\n","items":{"type":"string","enum":["call.started","call.answered","call.ended","call.failed","call.no_answer","call.dnc_blocked","transcript.ready","call.analyzed"],"uniqueKey":"webhook_events.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"webhook_events","typeLabel":"enum\u003cstring>[]"},"configured_webhook_header_names":{"type":"array","readOnly":true,"items":{"type":"string","uniqueKey":"configured_webhook_header_names.items.[INDEX]","typeLabel":"string"},"example":["Authorization","X-Source"],"description":"Legacy agents only, and absent from a `workflow` agent's response. The names of the stored `webhook_headers`, sorted; the values are never returned, to any key.\n","uniqueKey":"configured_webhook_header_names","typeLabel":"string[]"},"tools":{"type":"array","readOnly":true,"description":"Legacy agents only, and absent from a `workflow` agent's response. The agent's tools in execution order, each as GET /tools/{id} answers it plus `execution_order`, for a key that holds `tools:read`; without it each is `{id, name}` only.\n","items":{"type":"object","uniqueKey":"tools.items.[INDEX]","typeLabel":"object"},"uniqueKey":"tools","typeLabel":"object[]"},"extraction_parameters":{"type":"array","description":"AI extraction parameters — after each call, values are extracted from the transcript, stored on the call log and included in the call.analyzed webhook payload. Read them back on a call as `extracted_data` in GET /calls/{id}.\n","items":{"type":"object","required":["name","description"],"properties":{"name":{"type":"string","example":"customerName","description":"Parameter key in the extracted_data output","isRequired":true,"uniqueKey":"extraction_parameters.items.[INDEX].name","typeLabel":"string"},"description":{"type":"string","example":"The caller's full name as mentioned during the conversation","description":"Instructions for the AI on what to extract","isRequired":true,"uniqueKey":"extraction_parameters.items.[INDEX].description","typeLabel":"string"},"type":{"type":"string","enum":["text","number","yes_no","date"],"default":"text","example":"number","description":"The kind of value this parameter asks for, which decides what the stored value is: `text` a string, `number` a JSON number, `yes_no` a JSON boolean, `date` a `YYYY-MM-DD` string, read from the day the call started in the workspace's time zone - a day and month with no year is the next time it comes round, \"tomorrow\" and \"next Sunday\" are counted from the call day, something the caller says already happened (\"three months ago\", \"it ended in June\") is counted back from it, never forward, and a year the caller said is kept. Optional — a parameter saved without one behaves exactly as it always has, as `text`. A value the conversation never supplied is `null` whatever the kind, and a value that cannot be read as the declared kind is `null` rather than a string that only looks like one. Any other value is rejected: `422 WORKFLOW_SETTINGS_REQUEST_INVALID` for a workflow agent, `400 BAD_REQUEST` for a prompt or flow agent.\n","uniqueKey":"extraction_parameters.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"extraction_parameters.items.[INDEX]","typeLabel":"object"},"uniqueKey":"extraction_parameters","typeLabel":"object[]"},"created_at":{"type":"string","format":"date-time","uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"\u003cstring>","execution_version":"legacy","published_workflow_revision_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","live":true,"inbound":{"phone_numbers":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","number":"+972501234567","friendly_name":"\u003cstring>"}],"sip_endpoints":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"\u003cstring>"}]},"type":"workflow","flow_config":{"nodes":[{"id":"\u003cstring>","type":"start","name":"\u003cstring>","position":{"x":123,"y":123},"agent_speaks_first":true,"greeting":"\u003cstring>","is_literal":false,"next_step_id":"\u003cstring>","auto_advance":true}],"flow_config_version":"1","metadata":{"custom_metadata_keys":["\u003cstring>"]}},"system_prompt":"\u003cstring>","description":"\u003cstring>","voice":"Michal","model":"gemini-3.1-flash-live","resolved_model":"gemini-3.1-flash-live","background_sound":"call_center","background_sound_volume":0.3,"language":"he","temperature":1,"greeting_message":"\u003cstring>","agent_speaks_first":true,"vad_stop_secs":0.5,"vad_start_secs":0.2,"vad_confidence":0.7,"silence_timeout_secs":60,"idle_reminder_count":0,"idle_reminder_text":"\u003cstring>","max_continuous_speech_secs":120,"max_call_duration_secs":600,"lead_memory_enabled":true,"noise_cancellation_enabled":true,"is_active":true,"webhook_url":"\u003cstring>","webhook_url_path_withheld":true,"webhook_events":["call.started"],"configured_webhook_header_names":["Authorization","X-Source"],"tools":[{}],"extraction_parameters":[{"name":"customerName","description":"The caller's full name as mentioned during the conversation","type":"number"}],"created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"ba6eacb7-a418-4e85-9919-631927dc024f":{"description":"AGENT_IDEMPOTENCY_DUPLICATED — the Idempotency-Key header arrived more than once, so no one key makes the request repeatable; send exactly one. AGENT_IDEMPOTENCY_REQUIRED — the Idempotency-Key header is missing or outside 16–128 letters, digits, underscores or hyphens. WORKFLOW_AGENT_REQUEST_INVALID — a field outside name, description, language, authoring_locale, greeting_message, model, template and workflow.global_instructions, one of them out of range, neither workflow nor template, or a template beside non-empty instructions. Every problem in the body is named in the one answer: issues[] holds one entry per field at fault (code field_unknown, field_required or field_invalid, path such as /language or /workflow/global_instructions, message), and error repeats the first.\n","content":{"application/json":{"schema":{"type":"object","description":"Every error response - the secret-key API and the browser data plane alike - carries a\nhuman-readable `error` and a stable machine `code`, and a refusal that names what is\nwrong with the request carries `issues[]` too. Branch on `code`, never on the `error`\ntext. A refusal that names nothing more specific carries the code its status means:\n`BAD_REQUEST` (400), `UNAUTHORIZED` (401, the browser data plane; the secret-key API\nanswers `MISSING_KEY`, `INVALID_KEY` or `EXPIRED_KEY`), `BILLING_ERROR` (402),\n`FORBIDDEN` (403), `NOT_FOUND` (404), `METHOD_NOT_ALLOWED` (405), `CONFLICT` (409),\n`GONE` (410), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415),\n`UNPROCESSABLE_REQUEST` (422), `RATE_LIMIT` (429), `INTERNAL_ERROR` (500),\n`UPSTREAM_ERROR` (502), `SERVICE_UNAVAILABLE` (503), `UPSTREAM_TIMEOUT` (504). Some\nrefusals add members of their own beside these (a call request's `status`, a workflow's\n`current_version`); the operation says which.\n","required":["code","error"],"properties":{"error":{"type":"string","description":"The refusal, in one sentence for a person. Its wording may change.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"The stable code to branch on.","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"issues":{"type":"array","items":{"type":"object","required":["code","path","message"],"properties":{"code":{"type":"string","description":"query_param_unknown, query_param_repeated, query_param_blank, query_param_invalid, field_unknown, field_required, field_invalid, or the route's own word.","maxLength":100,"isRequired":true,"uniqueKey":"issues.items.[INDEX].code","typeLabel":"string"},"path":{"type":"string","maxLength":1000,"isRequired":true,"uniqueKey":"issues.items.[INDEX].path","typeLabel":"string"},"message":{"type":"string","maxLength":2000,"isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"},"node_id":{"type":"string","maxLength":64,"description":"The step the issue belongs to - a conversation step, a before-call step, a follow-up or a step inside a sequence, by its `id`. An issue about a binding names the first step that runs or offers it; absent only when no single step is concerned (a binding no step uses, a schema).","uniqueKey":"issues.items.[INDEX].node_id","typeLabel":"string"},"label":{"type":"string","maxLength":200,"description":"That step's label, as the workflow document spells it - on every code. Present only with `node_id`.","uniqueKey":"issues.items.[INDEX].label","typeLabel":"string"},"tool_name":{"type":"string","maxLength":200,"description":"On an issue about a binding, the name of the tool it runs. `label` is never the tool's name.","uniqueKey":"issues.items.[INDEX].tool_name","typeLabel":"string"},"field":{"type":"string","maxLength":200,"description":"On an issue about one input of a binding (`/bindings/{n}/inputs/{field}`), that input's name.","uniqueKey":"issues.items.[INDEX].field","typeLabel":"string"}},"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"description":"Each thing at fault, on a 400 or 422 that names them: every query parameter or body field, not just the first. `path` is the parameter's name or the field's location.\n","maxItems":100,"uniqueKey":"issues","typeLabel":"object[]"},"warnings":{"type":"array","description":"On WORKFLOW_VALIDATION_FAILED from Check or publish, the advisories beside the issues, in the shape of WorkflowValidation's warnings - strict_off_guidance when strict_mode is off, and every advisory about a binding or an input. The compiler's own graph advisories (during_output_advisory, sequence_branch_advisory, before_reference_missing_fallback, override_needs_strict, after_ending_coverage, after_any_end_waits, before_budget_inbound) arrive once the document compiles.\n","items":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"warnings.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"warnings.items.[INDEX].message","typeLabel":"string"},"path":{"type":"string","maxLength":1000,"uniqueKey":"warnings.items.[INDEX].path","typeLabel":"string"},"node_id":{"type":"string","maxLength":64,"uniqueKey":"warnings.items.[INDEX].node_id","typeLabel":"string"},"label":{"type":"string","maxLength":200,"description":"The step's label. Present only with node_id.","uniqueKey":"warnings.items.[INDEX].label","typeLabel":"string"},"tool_name":{"type":"string","maxLength":200,"uniqueKey":"warnings.items.[INDEX].tool_name","typeLabel":"string"},"field":{"type":"string","maxLength":200,"uniqueKey":"warnings.items.[INDEX].field","typeLabel":"string"}},"uniqueKey":"warnings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"warnings","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>","issues":[{"code":"\u003cstring>","path":"\u003cstring>","message":"\u003cstring>","node_id":"\u003cstring>","label":"\u003cstring>","tool_name":"\u003cstring>","field":"\u003cstring>"}],"warnings":[{"code":"\u003cstring>","message":"\u003cstring>","path":"\u003cstring>","node_id":"\u003cstring>","label":"\u003cstring>","tool_name":"\u003cstring>","field":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"24d4d8fb-793e-4934-8de3-8a0502f21a45":{"description":"INSUFFICIENT_SCOPE — the key lacks agents:create, or the body carries greeting_message and the key lacks agents:update, which saving the opening line needs. Nothing was created.","content":{"application/json":{"schema":{"type":"object","required":["error","code"],"description":"Every error response - the secret-key API and the browser data plane alike - carries a\nhuman-readable `error` and a stable machine `code`, and a refusal that names what is\nwrong with the request carries `issues[]` too. Branch on `code`, never on the `error`\ntext. A refusal that names nothing more specific carries the code its status means:\n`BAD_REQUEST` (400), `UNAUTHORIZED` (401, the browser data plane; the secret-key API\nanswers `MISSING_KEY`, `INVALID_KEY` or `EXPIRED_KEY`), `BILLING_ERROR` (402),\n`FORBIDDEN` (403), `NOT_FOUND` (404), `METHOD_NOT_ALLOWED` (405), `CONFLICT` (409),\n`GONE` (410), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415),\n`UNPROCESSABLE_REQUEST` (422), `RATE_LIMIT` (429), `INTERNAL_ERROR` (500),\n`UPSTREAM_ERROR` (502), `SERVICE_UNAVAILABLE` (503), `UPSTREAM_TIMEOUT` (504). Some\nrefusals add members of their own beside these (a call request's `status`, a workflow's\n`current_version`); the operation says which.\n","properties":{"error":{"type":"string","description":"The refusal, in one sentence for a person. Its wording may change.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"The stable code to branch on.","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"issues":{"type":"array","description":"Each thing at fault, on a 400 or 422 that names them: every query parameter or body field, not just the first. `path` is the parameter's name or the field's location.\n","items":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"query_param_unknown, query_param_repeated, query_param_blank, query_param_invalid, field_unknown, field_required, field_invalid, or the route's own word.","isRequired":true,"uniqueKey":"issues.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"},"path":{"type":"string","uniqueKey":"issues.items.[INDEX].path","typeLabel":"string"}},"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"uniqueKey":"issues","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>","issues":[{"code":"\u003cstring>","message":"\u003cstring>","path":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"aa8b45bd-2fa8-4113-968f-c5f28ca0696f":{"description":"WORKFLOW_NOT_FOUND — the workspace does not exist for this credential.","content":{"application/json":{"schema":{"type":"object","required":["error","code"],"description":"Every error response - the secret-key API and the browser data plane alike - carries a\nhuman-readable `error` and a stable machine `code`, and a refusal that names what is\nwrong with the request carries `issues[]` too. Branch on `code`, never on the `error`\ntext. A refusal that names nothing more specific carries the code its status means:\n`BAD_REQUEST` (400), `UNAUTHORIZED` (401, the browser data plane; the secret-key API\nanswers `MISSING_KEY`, `INVALID_KEY` or `EXPIRED_KEY`), `BILLING_ERROR` (402),\n`FORBIDDEN` (403), `NOT_FOUND` (404), `METHOD_NOT_ALLOWED` (405), `CONFLICT` (409),\n`GONE` (410), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415),\n`UNPROCESSABLE_REQUEST` (422), `RATE_LIMIT` (429), `INTERNAL_ERROR` (500),\n`UPSTREAM_ERROR` (502), `SERVICE_UNAVAILABLE` (503), `UPSTREAM_TIMEOUT` (504). Some\nrefusals add members of their own beside these (a call request's `status`, a workflow's\n`current_version`); the operation says which.\n","properties":{"error":{"type":"string","description":"The refusal, in one sentence for a person. Its wording may change.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"The stable code to branch on.","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"issues":{"type":"array","description":"Each thing at fault, on a 400 or 422 that names them: every query parameter or body field, not just the first. `path` is the parameter's name or the field's location.\n","items":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"query_param_unknown, query_param_repeated, query_param_blank, query_param_invalid, field_unknown, field_required, field_invalid, or the route's own word.","isRequired":true,"uniqueKey":"issues.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"},"path":{"type":"string","uniqueKey":"issues.items.[INDEX].path","typeLabel":"string"}},"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"uniqueKey":"issues","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>","issues":[{"code":"\u003cstring>","message":"\u003cstring>","path":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"93fbba9b-a2d3-42b1-9ae4-4b07db5769d3":{"description":"AGENT_IDEMPOTENCY_CONFLICT — the creation key was used with a different name, description, language, authoring_locale, model or instructions. greeting_message is not compared.","content":{"application/json":{"schema":{"type":"object","required":["error","code"],"description":"Every error response - the secret-key API and the browser data plane alike - carries a\nhuman-readable `error` and a stable machine `code`, and a refusal that names what is\nwrong with the request carries `issues[]` too. Branch on `code`, never on the `error`\ntext. A refusal that names nothing more specific carries the code its status means:\n`BAD_REQUEST` (400), `UNAUTHORIZED` (401, the browser data plane; the secret-key API\nanswers `MISSING_KEY`, `INVALID_KEY` or `EXPIRED_KEY`), `BILLING_ERROR` (402),\n`FORBIDDEN` (403), `NOT_FOUND` (404), `METHOD_NOT_ALLOWED` (405), `CONFLICT` (409),\n`GONE` (410), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415),\n`UNPROCESSABLE_REQUEST` (422), `RATE_LIMIT` (429), `INTERNAL_ERROR` (500),\n`UPSTREAM_ERROR` (502), `SERVICE_UNAVAILABLE` (503), `UPSTREAM_TIMEOUT` (504). Some\nrefusals add members of their own beside these (a call request's `status`, a workflow's\n`current_version`); the operation says which.\n","properties":{"error":{"type":"string","description":"The refusal, in one sentence for a person. Its wording may change.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"The stable code to branch on.","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"issues":{"type":"array","description":"Each thing at fault, on a 400 or 422 that names them: every query parameter or body field, not just the first. `path` is the parameter's name or the field's location.\n","items":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"query_param_unknown, query_param_repeated, query_param_blank, query_param_invalid, field_unknown, field_required, field_invalid, or the route's own word.","isRequired":true,"uniqueKey":"issues.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"},"path":{"type":"string","uniqueKey":"issues.items.[INDEX].path","typeLabel":"string"}},"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"uniqueKey":"issues","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>","issues":[{"code":"\u003cstring>","message":"\u003cstring>","path":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"4eb1ab9f-1b78-4a22-96e1-23a1865bdad3":{"description":"AGENT_LEGACY_CREATION_GONE — the body carries system_prompt, type, flow_config, tools, tool_ids, prompt, webhook_url, webhook_events or webhook_headers, which asks for the retired prompt or flow agent; send name plus workflow.global_instructions or a template instead. A body that merely left something out is the 400 above, not this. AGENT_CREATION_GONE — the agent this key created was archived or removed; the key cannot create another.\n","content":{"application/json":{"schema":{"type":"object","required":["error","code"],"description":"Every error response - the secret-key API and the browser data plane alike - carries a\nhuman-readable `error` and a stable machine `code`, and a refusal that names what is\nwrong with the request carries `issues[]` too. Branch on `code`, never on the `error`\ntext. A refusal that names nothing more specific carries the code its status means:\n`BAD_REQUEST` (400), `UNAUTHORIZED` (401, the browser data plane; the secret-key API\nanswers `MISSING_KEY`, `INVALID_KEY` or `EXPIRED_KEY`), `BILLING_ERROR` (402),\n`FORBIDDEN` (403), `NOT_FOUND` (404), `METHOD_NOT_ALLOWED` (405), `CONFLICT` (409),\n`GONE` (410), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415),\n`UNPROCESSABLE_REQUEST` (422), `RATE_LIMIT` (429), `INTERNAL_ERROR` (500),\n`UPSTREAM_ERROR` (502), `SERVICE_UNAVAILABLE` (503), `UPSTREAM_TIMEOUT` (504). Some\nrefusals add members of their own beside these (a call request's `status`, a workflow's\n`current_version`); the operation says which.\n","properties":{"error":{"type":"string","description":"The refusal, in one sentence for a person. Its wording may change.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"The stable code to branch on.","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"issues":{"type":"array","description":"Each thing at fault, on a 400 or 422 that names them: every query parameter or body field, not just the first. `path` is the parameter's name or the field's location.\n","items":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"query_param_unknown, query_param_repeated, query_param_blank, query_param_invalid, field_unknown, field_required, field_invalid, or the route's own word.","isRequired":true,"uniqueKey":"issues.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"},"path":{"type":"string","uniqueKey":"issues.items.[INDEX].path","typeLabel":"string"}},"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"uniqueKey":"issues","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>","issues":[{"code":"\u003cstring>","message":"\u003cstring>","path":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"1ca97ffc-0b11-4566-a80b-33e4c72cd3c5":{"description":"WORKFLOW_STORAGE_UNAVAILABLE — draft persistence is unavailable, or the agent was created and its greeting_message could not be saved. Retry the exact request with the same Idempotency-Key; the retry returns the agent, with the opening line saved.","content":{"application/json":{"schema":{"type":"object","required":["error","code"],"description":"Every error response - the secret-key API and the browser data plane alike - carries a\nhuman-readable `error` and a stable machine `code`, and a refusal that names what is\nwrong with the request carries `issues[]` too. Branch on `code`, never on the `error`\ntext. A refusal that names nothing more specific carries the code its status means:\n`BAD_REQUEST` (400), `UNAUTHORIZED` (401, the browser data plane; the secret-key API\nanswers `MISSING_KEY`, `INVALID_KEY` or `EXPIRED_KEY`), `BILLING_ERROR` (402),\n`FORBIDDEN` (403), `NOT_FOUND` (404), `METHOD_NOT_ALLOWED` (405), `CONFLICT` (409),\n`GONE` (410), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415),\n`UNPROCESSABLE_REQUEST` (422), `RATE_LIMIT` (429), `INTERNAL_ERROR` (500),\n`UPSTREAM_ERROR` (502), `SERVICE_UNAVAILABLE` (503), `UPSTREAM_TIMEOUT` (504). Some\nrefusals add members of their own beside these (a call request's `status`, a workflow's\n`current_version`); the operation says which.\n","properties":{"error":{"type":"string","description":"The refusal, in one sentence for a person. Its wording may change.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"The stable code to branch on.","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"issues":{"type":"array","description":"Each thing at fault, on a 400 or 422 that names them: every query parameter or body field, not just the first. `path` is the parameter's name or the field's location.\n","items":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"query_param_unknown, query_param_repeated, query_param_blank, query_param_invalid, field_unknown, field_required, field_invalid, or the route's own word.","isRequired":true,"uniqueKey":"issues.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"},"path":{"type":"string","uniqueKey":"issues.items.[INDEX].path","typeLabel":"string"}},"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"uniqueKey":"issues","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>","issues":[{"code":"\u003cstring>","message":"\u003cstring>","path":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"2767439e-f0c6-4cd4-a450-ba11a6ab8311":{"apiKey":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"Your Yappr API key (e.g. `ypr_live_...`). Generate one in the dashboard under **Settings → API Keys**. No key is `401 MISSING_KEY`; a key that is not one of ours, or is revoked, is `401 INVALID_KEY`; an expired one is `401 EXPIRED_KEY`. A valid key without the scope an operation needs is `403 INSUFFICIENT_SCOPE` on every operation, and the message names the scope. Every response, a 401 included, carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset: the budget is 60 requests a minute per API key. Every 429, whatever its code, carries Retry-After (whole seconds, never zero): the per-key budget's `RATE_LIMIT` asks for what is left of the minute, a route's daily cap (`RATE_LIMITED`) for the time until that cap resets. All four headers are listed in Access-Control-Expose-Headers, so a browser can read them. A path the API does not serve (an unknown sub-path, an id left empty) is `404 ROUTE_NOT_FOUND`, and a method a served path does not take is `405 METHOD_NOT_ALLOWED` with an `Allow` header; both are answered before any scope check, and nothing is read or changed. A trailing slash is ignored where it cannot be an id left empty (`POST /calls/` is `POST /calls`) and refused where it can (`GET /calls/`). A doubled slash inside a path is merged into one before the request reaches the API (`GET //calls` is `GET /calls`).","scopes":[],"schemeName":"apiKey"}}},"servers":{"dc0c5f7d-c0c3-40b9-9c53-ce2239f5b67d":{"url":"https://api.goyappr.com","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"Your Yappr API key (e.g. `ypr_live_...`). Generate one in the dashboard under **Settings → API Keys**. No key is `401 MISSING_KEY`; a key that is not one of ours, or is revoked, is `401 INVALID_KEY`; an expired one is `401 EXPIRED_KEY`. A valid key without the scope an operation needs is `403 INSUFFICIENT_SCOPE` on every operation, and the message names the scope. Every response, a 401 included, carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset: the budget is 60 requests a minute per API key. Every 429, whatever its code, carries Retry-After (whole seconds, never zero): the per-key budget's `RATE_LIMIT` asks for what is left of the minute, a route's daily cap (`RATE_LIMITED`) for the time until that cap resets. All four headers are listed in Access-Control-Expose-Headers, so a browser can read them. A path the API does not serve (an unknown sub-path, an id left empty) is `404 ROUTE_NOT_FOUND`, and a method a served path does not take is `405 METHOD_NOT_ALLOWED` with an `Allow` header; both are answered before any scope check, and nothing is read or changed. A trailing slash is ignored where it cannot be an id left empty (`POST /calls/` is `POST /calls`) and refused where it can (`GET /calls/`). A doubled slash inside a path is merged into one before the request reaches the API (`GET //calls` is `GET /calls`).","scopes":[],"schemeName":"apiKey"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Your Yappr API key (e.g. `ypr_live_...`). Generate one in the dashboard under **Settings → API Keys**. No key is `401 MISSING_KEY`; a key that is not one of ours, or is revoked, is `401 INVALID_KEY`; an expired one is `401 EXPIRED_KEY`. A valid key without the scope an operation needs is `403 INSUFFICIENT_SCOPE` on every operation, and the message names the scope. Every response, a 401 included, carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset: the budget is 60 requests a minute per API key. Every 429, whatever its code, carries Retry-After (whole seconds, never zero): the per-key budget's `RATE_LIMIT` asks for what is left of the minute, a route's daily cap (`RATE_LIMITED`) for the time until that cap resets. All four headers are listed in Access-Control-Expose-Headers, so a browser can read them. A path the API does not serve (an unknown sub-path, an id left empty) is `404 ROUTE_NOT_FOUND`, and a method a served path does not take is `405 METHOD_NOT_ALLOWED` with an `Allow` header; both are answered before any scope check, and nothing is read or changed. A trailing slash is ignored where it cannot be an id left empty (`POST /calls/` is `POST /calls`) and refused where it can (`GET /calls/`). A doubled slash inside a path is merged into one before the request reaches the API (`GET //calls` is `GET /calls`).","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"apiKey","name":"Authorization"}],"title":"apiKey"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"yappr","siteName":"Yappr","title":"Create Agent - Yappr","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-12T15:44:25.004Z","originalFileLocation":"api-reference/agents/create.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Requires agents:create. Creates one unpublished workflow agent and its canonical initial draft atomically: Strict Mode off, one conversation step and a closing route, empty Before and After phases. Only name, description, language, authoring_locale, greeting_message, model, template and workflow are accepted; identity and execution ownership are assigned by Yappr, and an agent created without a model is automatic (see model). An agent has no direction: a phone number\u0026#x27;s inbound_agent_id or a SIP address endpoint makes it answer calls (a username-and-password trunk too, once the workflow is published), and POST /calls (or a number\u0026#x27;s outbound_agent_id) makes it place them. Save and explicitly publish through the workflow endpoints — creation alone starts nothing. Creating a prompt or flow agent is gone: a body carrying system_prompt, type, flow_config, tools or another field only that agent had answers 410 AGENT_LEGACY_CREATION_GONE.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Yappr\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/yappr/-dhyiEDTEuUg9xPr/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/yappr/-dhyiEDTEuUg9xPr/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/yappr/-dhyiEDTEuUg9xPr/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/yappr/-dhyiEDTEuUg9xPr/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/yappr/-dhyiEDTEuUg9xPr/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/yappr/-dhyiEDTEuUg9xPr/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/yappr/-dhyiEDTEuUg9xPr/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/yappr/-dhyiEDTEuUg9xPr/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/yappr/-dhyiEDTEuUg9xPr/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Agent - Yappr\">\u003cmeta data-mint-head property=\"og:description\" content=\"Requires agents:create. Creates one unpublished workflow agent and its canonical initial draft atomically: Strict Mode off, one conversation step and a closing route, empty Before and After phases. Only name, description, language, authoring_locale, greeting_message, model, template and workflow are accepted; identity and execution ownership are assigned by Yappr, and an agent created without a model is automatic (see model). An agent has no direction: a phone number\u0026#x27;s inbound_agent_id or a SIP address endpoint makes it answer calls (a username-and-password trunk too, once the workflow is published), and POST /calls (or a number\u0026#x27;s outbound_agent_id) makes it place them. Save and explicitly publish through the workflow endpoints — creation alone starts nothing. Creating a prompt or flow agent is gone: a body carrying system_prompt, type, flow_config, tools or another field only that agent had answers 410 AGENT_LEGACY_CREATION_GONE.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Yappr\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.goyappr.com/api-reference/agents/create\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://yappr.mintlify.site/_mintlify/api/og/v2?division=Agents\u0026amp;title=Create+Agent\u0026amp;description=Requires+agents%3Acreate.+Creates+one+unpublished+workflow+agent+and+its+canonical+initial+draft+atomically%3A+Strict+Mode+off%2C+one+conversation+step+and+a+closing+\u0026amp;theme=1423bf5e3b005ceb227321bc\u0026amp;signature=4d79049b2c2d2ac186e1e99d2f5bcfa0d6c1b67dc8655a830724d382115aba91\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create Agent - Yappr\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Requires agents:create. Creates one unpublished workflow agent and its canonical initial draft atomically: Strict Mode off, one conversation step and a closing route, empty Before and After phases. Only name, description, language, authoring_locale, greeting_message, model, template and workflow are accepted; identity and execution ownership are assigned by Yappr, and an agent created without a model is automatic (see model). An agent has no direction: a phone number\u0026#x27;s inbound_agent_id or a SIP address endpoint makes it answer calls (a username-and-password trunk too, once the workflow is published), and POST /calls (or a number\u0026#x27;s outbound_agent_id) makes it place them. Save and explicitly publish through the workflow endpoints — creation alone starts nothing. Creating a prompt or flow agent is gone: a body carrying system_prompt, type, flow_config, tools or another field only that agent had answers 410 AGENT_LEGACY_CREATION_GONE.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://yappr.mintlify.site/_mintlify/api/og/v2?division=Agents\u0026amp;title=Create+Agent\u0026amp;description=Requires+agents%3Acreate.+Creates+one+unpublished+workflow+agent+and+its+canonical+initial+draft+atomically%3A+Strict+Mode+off%2C+one+conversation+step+and+a+closing+\u0026amp;theme=1423bf5e3b005ceb227321bc\u0026amp;signature=4d79049b2c2d2ac186e1e99d2f5bcfa0d6c1b67dc8655a830724d382115aba91\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/yappr/-dhyiEDTEuUg9xPr/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Yappr\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366f1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.goyappr.com/api-reference/agents/create\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/agents/create.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.goyappr.com/#organization\",\"name\":\"Yappr\",\"url\":\"https://docs.goyappr.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/yappr/E1AQ46GZ-5iPcyPp/logo/light.svg?fit=max\u0026auto=format\u0026n=E1AQ46GZ-5iPcyPp\u0026q=85\u0026s=a117ff3aa08c2017e8d58b0da5be882f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.goyappr.com#website\",\"name\":\"Yappr\",\"url\":\"https://docs.goyappr.com\",\"publisher\":{\"@id\":\"https://docs.goyappr.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.goyappr.com/api-reference/agents/create#webpage\",\"url\":\"https://docs.goyappr.com/api-reference/agents/create\",\"name\":\"Create Agent\",\"description\":\"Requires agents:create. Creates one unpublished workflow agent and its canonical initial draft atomically: Strict Mode off, one conversation step and a closing route, empty Before and After phases. Only name, description, language, authoring_locale, greeting_message, model, template and workflow are accepted; identity and execution ownership are assigned by Yappr, and an agent created without a model is automatic (see model). An agent has no direction: a phone number's inbound_agent_id or a SIP address endpoint makes it answer calls (a username-and-password trunk too, once the workflow is published), and POST /calls (or a number's outbound_agent_id) makes it place them. Save and explicitly publish through the workflow endpoints — creation alone starts nothing. Creating a prompt or flow agent is gone: a body carrying system_prompt, type, flow_config, tools or another field only that agent had answers 410 AGENT_LEGACY_CREATION_GONE.\",\"dateModified\":\"2026-11-12T15:44:25.004Z\",\"isPartOf\":{\"@id\":\"https://docs.goyappr.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.goyappr.com/api-reference/agents/create#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.goyappr.com/api-reference/agents/create#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Agents\",\"item\":\"https://docs.goyappr.com/api-reference/agents/list\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Agent\",\"item\":\"https://docs.goyappr.com/api-reference/agents/create\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.goyappr.com/api-reference/agents/create#apireference\",\"headline\":\"Create Agent\",\"name\":\"Create Agent\",\"description\":\"Requires agents:create. Creates one unpublished workflow agent and its canonical initial draft atomically: Strict Mode off, one conversation step and a closing route, empty Before and After phases. Only name, description, language, authoring_locale, greeting_message, model, template and workflow are accepted; identity and execution ownership are assigned by Yappr, and an agent created without a model is automatic (see model). An agent has no direction: a phone number's inbound_agent_id or a SIP address endpoint makes it answer calls (a username-and-password trunk too, once the workflow is published), and POST /calls (or a number's outbound_agent_id) makes it place them. Save and explicitly publish through the workflow endpoints — creation alone starts nothing. Creating a prompt or flow agent is gone: a body carrying system_prompt, type, flow_config, tools or another field only that agent had answers 410 AGENT_LEGACY_CREATION_GONE.\",\"url\":\"https://docs.goyappr.com/api-reference/agents/create\",\"mainEntityOfPage\":{\"@id\":\"https://docs.goyappr.com/api-reference/agents/create#webpage\"},\"dateModified\":\"2026-11-12T15:44:25.004Z\",\"publisher\":{\"@id\":\"https://docs.goyappr.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.goyappr.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Yappr\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Yappr\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/agents/create.md","siteName":"Yappr","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"},{"title":"Connect through MCP","href":"/api-reference/mcp/connect"},{"title":"Error Codes","href":"/api-reference/errors"},{"title":"Report an issue","openapi":"POST /report-issue","href":"/api-reference/report-issue"}]},{"group":"Billing","pages":[{"title":"Get Billing Status","openapi":"GET /billing","href":"/api-reference/billing/get-status"},{"title":"Get Billing Rates","openapi":"GET /billing/rates","href":"/api-reference/billing/rates"},{"title":"Set Spending Limit","openapi":"PATCH /billing","href":"/api-reference/billing/spending-limit"},{"title":"Setup Payment Method","openapi":"POST /billing/setup","href":"/api-reference/billing/setup-payment"},{"title":"Top Up Credits","openapi":"POST /billing/topup","href":"/api-reference/billing/topup"},{"title":"Billing Consumption","openapi":"GET /billing/consumption","href":"/api-reference/billing/consumption"},{"title":"Billing Transactions","openapi":"GET /billing/transactions","href":"/api-reference/billing/transactions"},{"title":"Get Billing Transaction","openapi":"GET /billing/transactions/{id}","href":"/api-reference/billing/transaction"},{"title":"Get Billing Details","openapi":"GET /billing/details","href":"/api-reference/billing/details"},{"title":"Update Billing Details","openapi":"PATCH /billing/details","href":"/api-reference/billing/update-details"},{"title":"List Invoices","openapi":"GET /billing/invoices","href":"/api-reference/billing/invoices"}]},{"group":"Agents","pages":[{"title":"List Agents","openapi":"GET /agents","description":"Requires agents:read. Newest first. name narrows the list to agents whose name contains that text; pagination.total counts the matches, not the whole workspace.","href":"/api-reference/agents/list"},{"title":"Create Agent","openapi":"POST /agents","href":"/api-reference/agents/create"},{"title":"Duplicate Agent","openapi":"POST /agents/{id}/duplicate","description":"Requires agents:create. Copies the source agent's ordinary settings (voice, model, VAD, timeouts, background sound, extraction parameters, and the rest) and its current draft workflow document — bindings, positions, everything — into one new agent, created switched off and unpublished. Editing the source afterwards never changes the copy and editing the copy never changes the source: the two agents are independent from the moment this call returns, though the tools behind them are shared (below). What is not copied is the phone side and everything that names the source specifically: no phone number or SIP endpoint is repointed, no shared web-call link is minted, and history (call logs, workflow revisions, eval suites, in-flight promotions) starts empty on the copy. By default the copy's workflow bindings keep the source's exact tool_revision_id pins, so it shares its source's tools rather than getting new ones. One live tool serves both agents: a later PATCH /tools/{id} — the natural first move for giving the second client its own webhook — changes it for the first agent too, and archiving a shared tool affects both. Send fork_tools true to give the copy tools of its own in the same call: every tool the copy would share becomes a new tool named \"\u003ctool> (copy)\", then \"(copy 2)\", \"(copy 3)\" for later forks of the same tool, and the copy's bindings (and the step labels that still carry the source tool's name) are repointed at them. The fork runs on the server to the end even if you disconnect. What it cannot carry: header values and the private part of a URL are never readable, so each forked HTTP tool keeps its header names with empty values and its address without the private query — tool_fork lists which ones need a value entered (PATCH /tools/{id}) before the copy takes calls. fork_tools also needs tools:create on the key. Publishing the copy, and pointing any number at it, are separate calls you make afterwards.\n","href":"/api-reference/agents/duplicate"},{"title":"Test an Agent by Phone","openapi":"POST /agents/{id}/test-call","href":"/api-reference/agents/test-call"},{"title":"Which Line Rings a Test Call","openapi":"GET /agents/{id}/test-call","href":"/api-reference/agents/test-call-caller"},{"title":"Get Agent","openapi":"GET /agents/{id}","href":"/api-reference/agents/get"},{"title":"Update Agent","openapi":"PATCH /agents/{id}","href":"/api-reference/agents/update"},{"title":"Read workflow agent settings","openapi":"GET /agents/{id}/settings","href":"/api-reference/agents/settings"},{"title":"Idle reminders","href":"/api-reference/agents/idle-reminders"},{"title":"List an agent's tools \u0026 integrations","openapi":"GET /agents/{id}/tools-and-integrations","href":"/api-reference/agents/tools-and-integrations"},{"title":"List an agent's integrations","openapi":"GET /agents/{id}/integrations","href":"/api-reference/agents/integrations-list"},{"title":"Give an agent a connected app","openapi":"POST /agents/{id}/integrations","href":"/api-reference/agents/integrations-add"},{"title":"Change an integration's actions","openapi":"PATCH /agents/{id}/integrations/{integration_id}","href":"/api-reference/agents/integrations-update"},{"title":"Stop an agent using an app","openapi":"DELETE /agents/{id}/integrations/{integration_id}","href":"/api-reference/agents/integrations-remove"},{"title":"Dry-run Extraction","openapi":"POST /agents/{id}/extraction/dry-run","href":"/api-reference/agents/extraction-dry-run"},{"title":"Remove Agent","openapi":"DELETE /agents/{id}","href":"/api-reference/agents/delete"},{"title":"Models","href":"/api-reference/agents/models"},{"title":"Languages","href":"/api-reference/agents/languages"},{"title":"Voices","href":"/api-reference/agents/voices"},{"title":"Flow Config Schema","href":"/api-reference/agents/flow-config-schema"}]},{"group":"Flow Agents","pages":[{"title":"List Flow Versions","openapi":"GET /agents/{id}/flow/versions","href":"/api-reference/flows/list-versions"},{"title":"Restore Flow Version","openapi":"POST /agents/{id}/flow/restore","href":"/api-reference/flows/restore-version"},{"title":"Test a Flow","openapi":"POST /agents/{id}/flow/test","href":"/api-reference/flows/test"}]},{"group":"Workflows","pages":[{"title":"Read workflow","openapi":"GET /agents/{id}/workflow","href":"/api-reference/workflows/get"},{"title":"Save workflow draft","openapi":"PUT /agents/{id}/workflow","href":"/api-reference/workflows/save"},{"title":"Point bindings at other tools","openapi":"POST /agents/{id}/workflow/rebind","href":"/api-reference/workflows/rebind"},{"title":"Check workflow","openapi":"POST /agents/{id}/workflow/validate","href":"/api-reference/workflows/validate"},{"title":"Publish workflow","openapi":"POST /agents/{id}/workflow/publish","href":"/api-reference/workflows/publish"},{"title":"List workflow versions","openapi":"GET /agents/{id}/workflow/versions","href":"/api-reference/workflows/versions"},{"title":"Get workflow version","openapi":"GET /agents/{id}/workflow/versions/{version_id}","href":"/api-reference/workflows/version"},{"title":"Restore workflow version","openapi":"POST /agents/{id}/workflow/restore","href":"/api-reference/workflows/restore"},{"title":"Teach an agent from a test call","openapi":"POST /agents/{id}/workflow/train","href":"/api-reference/workflows/train"},{"title":"Read workflow tool catalog","openapi":"GET /tools/workflow-catalog","href":"/api-reference/workflows/catalog"},{"title":"Trigger events","href":"/api-reference/workflows/events"},{"title":"Opening line from a Before step","href":"/api-reference/workflows/greeting-from-before"}]},{"group":"Webhooks","pages":[{"title":"Webhooks","href":"/api-reference/webhooks"},{"title":"List Deliveries","openapi":"GET /deliveries","href":"/api-reference/deliveries/list"},{"title":"Get Delivery","openapi":"GET /deliveries/{id}","href":"/api-reference/deliveries/get"},{"title":"Retry Delivery","openapi":"POST /deliveries/{id}/retry","href":"/api-reference/deliveries/retry"}]},{"group":"Tools \u0026 integrations","pages":[{"group":"Connected accounts","pages":[{"title":"List account connection options","openapi":"GET /tool-apps/connection-options","href":"/api-reference/tool-connections/apps"},{"title":"List connected accounts","openapi":"GET /tool-connections","href":"/api-reference/tool-connections/list"},{"title":"Get connection readiness","openapi":"GET /tool-connections/{id}","href":"/api-reference/tool-connections/get"},{"title":"Connect a workspace account","openapi":"POST /tool-connections","href":"/api-reference/tool-connections/connect"},{"title":"Read authorization status","openapi":"GET /tool-connection-auth-attempts/{id}","href":"/api-reference/tool-connections/auth-attempt"},{"title":"Cancel an authorization attempt","openapi":"POST /tool-connections/attempts/{id}/cancel","href":"/api-reference/tool-connections/cancel-attempt"},{"title":"Connect a replacement account","openapi":"POST /tool-connections/{id}/reconnect","href":"/api-reference/tool-connections/reconnect"},{"title":"Disconnect an account","openapi":"DELETE /tool-connections/{id}","href":"/api-reference/tool-connections/disconnect"},{"title":"Rename an account","openapi":"PATCH /tool-connections/{id}","href":"/api-reference/tool-connections/rename"},{"title":"What a connected app can do","openapi":"GET /tool-connections/{id}/actions","href":"/api-reference/tool-connections/actions"},{"title":"Make an app's actions ready","openapi":"POST /tool-connections/{id}/actions/prepare","href":"/api-reference/tool-connections/prepare-actions"},{"title":"List an account's choices for an input","openapi":"GET /tool-connections/{id}/options/{resource}","href":"/api-reference/tool-connections/options"},{"title":"Check that an account works","openapi":"POST /tool-connections/{id}/check","href":"/api-reference/tool-connections/check"},{"title":"The agents using an app","openapi":"GET /tool-connections/{id}/agents","href":"/api-reference/tool-connections/agents"},{"title":"Take an account off the list","openapi":"POST /tool-connections/{id}/remove","href":"/api-reference/tool-connections/remove"},{"title":"Clear the attempts nobody finished","openapi":"POST /tool-connections/cleanup","href":"/api-reference/tool-connections/cleanup"}]},{"group":"Tools","pages":[{"title":"List Tools","openapi":"GET /tools","href":"/api-reference/tools/list"},{"title":"Create Tool","openapi":"POST /tools","href":"/api-reference/tools/create"},{"title":"Discover Apps","openapi":"GET /tool-apps","href":"/api-reference/tools/apps"},{"title":"Get App Versions","openapi":"GET /tool-apps/{slug}","href":"/api-reference/tools/app"},{"title":"Discover Versioned Actions","openapi":"GET /tool-apps/{slug}/actions","href":"/api-reference/tools/actions"},{"title":"Get Full Action Schemas","openapi":"GET /tool-apps/{slug}/actions/{action}","href":"/api-reference/tools/action"},{"title":"Get Tool","openapi":"GET /tools/{id}","href":"/api-reference/tools/get"},{"title":"Get Current Tool Schemas","openapi":"GET /tools/{id}/schema","href":"/api-reference/tools/schema"},{"title":"List Tool Bindings","openapi":"GET /tools/{id}/bindings","href":"/api-reference/tools/bindings"},{"title":"List Tool Contract Revisions","openapi":"GET /tools/{id}/workflow-revisions","href":"/api-reference/tools/revisions"},{"title":"Add a Tool Contract Revision","openapi":"POST /tools/{id}/workflow-revisions","href":"/api-reference/tools/create-revision"},{"title":"Update Tool","openapi":"PATCH /tools/{id}","href":"/api-reference/tools/update"},{"title":"Archive Tool","openapi":"DELETE /tools/{id}","href":"/api-reference/tools/delete"},{"title":"Restore Tool","openapi":"POST /tools/{id}/restore","href":"/api-reference/tools/restore"},{"title":"Attach Tool to Agent","openapi":"POST /tools/attach","href":"/api-reference/tools/attach"},{"title":"Detach Tool from Agent","openapi":"POST /tools/detach","href":"/api-reference/tools/detach"},{"title":"Test Saved Tool","openapi":"POST /tools/{id}/test","href":"/api-reference/tools/test"},{"title":"Get Saved Tool Test","openapi":"GET /tools/{id}/tests/{test_id}","href":"/api-reference/tools/test-get"},{"title":"Cancel Tool Test","openapi":"POST /tools/{id}/tests/{test_id}/cancel","href":"/api-reference/tools/test-cancel"}]}]},{"group":"Phone Numbers","pages":[{"title":"List Owned Numbers","openapi":"GET /phone-numbers","href":"/api-reference/phone-numbers/list"},{"title":"Search Available Numbers","openapi":"POST /phone-numbers/search","href":"/api-reference/phone-numbers/search"},{"title":"Purchase Number","openapi":"POST /phone-numbers/purchase","href":"/api-reference/phone-numbers/purchase"},{"title":"Update Number","openapi":"PATCH /phone-numbers/{id}","href":"/api-reference/phone-numbers/update"},{"title":"Configure Number","openapi":"POST /phone-numbers/configure","href":"/api-reference/phone-numbers/configure"},{"title":"Release Number","openapi":"POST /phone-numbers/{id}/release","href":"/api-reference/phone-numbers/release"},{"title":"Keep Number","openapi":"POST /phone-numbers/{id}/keep","href":"/api-reference/phone-numbers/keep"}]},{"group":"SIP Endpoints","pages":[{"title":"SIP Endpoints Status","openapi":"GET /sip-endpoints/status","href":"/api-reference/sip-endpoints/status"},{"title":"List SIP Endpoints","openapi":"GET /sip-endpoints","href":"/api-reference/sip-endpoints/list"},{"title":"Create SIP Endpoint","openapi":"POST /sip-endpoints","href":"/api-reference/sip-endpoints/create"},{"title":"Get SIP Endpoint","openapi":"GET /sip-endpoints/{id}","href":"/api-reference/sip-endpoints/get"},{"title":"Update SIP Endpoint","openapi":"PATCH /sip-endpoints/{id}","href":"/api-reference/sip-endpoints/update"},{"title":"Delete SIP Endpoint","openapi":"DELETE /sip-endpoints/{id}","href":"/api-reference/sip-endpoints/delete"},{"title":"Rotate SIP Endpoint Password","openapi":"POST /sip-endpoints/{id}/rotate-password","href":"/api-reference/sip-endpoints/rotate-password"}]},{"group":"Carrier accounts","pages":[{"title":"Carrier Accounts Status","openapi":"GET /carrier-accounts/status","href":"/api-reference/carrier-accounts/status"},{"title":"List Carrier Accounts","openapi":"GET /carrier-accounts","href":"/api-reference/carrier-accounts/list"},{"title":"Connect a Telnyx Account","openapi":"POST /carrier-accounts","href":"/api-reference/carrier-accounts/create"},{"title":"Get Carrier Account","openapi":"GET /carrier-accounts/{id}","href":"/api-reference/carrier-accounts/get"},{"title":"Update Carrier Account","openapi":"PATCH /carrier-accounts/{id}","href":"/api-reference/carrier-accounts/update"},{"title":"Disconnect Carrier Account","openapi":"DELETE /carrier-accounts/{id}","href":"/api-reference/carrier-accounts/delete"},{"title":"Choose the Call Control App","openapi":"POST /carrier-accounts/{id}/connection","href":"/api-reference/carrier-accounts/connection"},{"title":"Test Carrier Account","openapi":"POST /carrier-accounts/{id}/test","href":"/api-reference/carrier-accounts/test"},{"title":"Turn a Paused Account Back On","openapi":"POST /carrier-accounts/{id}/reactivate","href":"/api-reference/carrier-accounts/reactivate"},{"title":"Sync Numbers","openapi":"POST /carrier-accounts/{id}/sync","href":"/api-reference/carrier-accounts/sync"},{"title":"Add Number to Carrier Account","openapi":"POST /carrier-accounts/{id}/numbers","href":"/api-reference/carrier-accounts/add-number"},{"title":"Answer a Number's Calls in Yappr","openapi":"POST /carrier-accounts/{id}/numbers/{phone_number_id}/configure","href":"/api-reference/carrier-accounts/configure-number"},{"title":"Stop Answering a Number's Calls in Yappr","openapi":"DELETE /carrier-accounts/{id}/numbers/{phone_number_id}/configure","href":"/api-reference/carrier-accounts/restore-number"},{"title":"Remove Number from This Workspace","openapi":"DELETE /carrier-accounts/{id}/numbers/{phone_number_id}","href":"/api-reference/carrier-accounts/remove-number"}]},{"group":"Calls","pages":[{"title":"Create Outbound Call","openapi":"POST /calls","href":"/api-reference/calls/create"},{"title":"List Calls","openapi":"GET /calls","href":"/api-reference/calls/list"},{"title":"Export Calls","openapi":"GET /calls/export","href":"/api-reference/calls/export"},{"title":"Get Call","openapi":"GET /calls/{id}","href":"/api-reference/calls/get"},{"title":"End an Unopened Browser Session","openapi":"POST /calls/{id}/end","href":"/api-reference/calls/end"},{"title":"Get Call Recording","openapi":"GET /calls/{id}/recording","href":"/api-reference/calls/recording"},{"title":"Revoke Recording Links","openapi":"POST /calls/{id}/recording/revoke","href":"/api-reference/calls/recording-revoke"},{"title":"Create Web Call Request","openapi":"POST /call-requests","href":"/api-reference/calls/request-create"},{"title":"Get Call Request","openapi":"GET /call-requests/{id}","href":"/api-reference/calls/request-get"},{"title":"Start Web Call Request","openapi":"POST /call-requests/{id}/start","href":"/api-reference/calls/request-start"},{"title":"Cancel Call Request","openapi":"POST /call-requests/{id}/cancel","href":"/api-reference/calls/request-cancel"}]},{"group":"Browser calls","pages":[{"title":"TURN Credentials","openapi":"POST /turn-credentials","href":"/api-reference/web-call/turn-credentials"},{"title":"Connect a Browser Call","openapi":"POST /web-call","href":"/api-reference/web-call/offer"},{"title":"Cancel a Browser Session","openapi":"POST /web-call/cancel","href":"/api-reference/web-call/cancel"},{"title":"Create Browser Call Request","openapi":"POST /web-call/call-requests","href":"/api-reference/web-call/request-create"},{"title":"Poll Browser Call Request","openapi":"GET /web-call/call-requests/{id}","href":"/api-reference/web-call/request-get"},{"title":"Start Browser Call Request","openapi":"POST /web-call/call-requests/{id}/start","href":"/api-reference/web-call/request-start"},{"title":"Cancel Browser Call Request","openapi":"POST /web-call/call-requests/{id}/cancel","href":"/api-reference/web-call/request-cancel"}]},{"group":"Do Not Call","pages":[{"title":"List DNC entries","openapi":"GET /do-not-call","href":"/api-reference/do-not-call/list"},{"title":"Add to DNC list","openapi":"POST /do-not-call","href":"/api-reference/do-not-call/add"},{"title":"Get DNC entry","openapi":"GET /do-not-call/{id}","href":"/api-reference/do-not-call/get"},{"title":"Update DNC entry","openapi":"PATCH /do-not-call/{id}","href":"/api-reference/do-not-call/update"},{"title":"Remove from DNC list","openapi":"DELETE /do-not-call/{id}","href":"/api-reference/do-not-call/delete"}]},{"group":"API Keys","pages":[{"title":"List API keys","openapi":"GET /api-keys","href":"/api-reference/api-keys/list"},{"title":"Issue an API key","openapi":"POST /api-keys","href":"/api-reference/api-keys/create"},{"title":"Get an API key","openapi":"GET /api-keys/{id}","href":"/api-reference/api-keys/get"},{"title":"Revoke an API key","openapi":"DELETE /api-keys/{id}","href":"/api-reference/api-keys/delete"}]},{"group":"Call Windows","pages":[{"title":"Get call time windows","openapi":"GET /call-windows","href":"/api-reference/call-windows/get"},{"title":"Update call time windows","openapi":"PUT /call-windows","href":"/api-reference/call-windows/update"}]},{"group":"Dispositions","pages":[{"title":"List Dispositions","openapi":"GET /dispositions","href":"/api-reference/dispositions/list"},{"title":"Create Disposition","openapi":"POST /dispositions","href":"/api-reference/dispositions/create"},{"title":"Get Disposition","openapi":"GET /dispositions/{id}","href":"/api-reference/dispositions/get"},{"title":"Update Disposition","openapi":"PATCH /dispositions/{id}","href":"/api-reference/dispositions/update"},{"title":"Delete Disposition","openapi":"DELETE /dispositions/{id}","href":"/api-reference/dispositions/delete"}]},{"group":"Leads","pages":[{"title":"List Leads","openapi":"GET /leads","href":"/api-reference/leads/list"},{"title":"Create Lead","openapi":"POST /leads","href":"/api-reference/leads/create"},{"title":"Get Lead","openapi":"GET /leads/{id}","href":"/api-reference/leads/get"},{"title":"Update Lead","openapi":"PATCH /leads/{id}","href":"/api-reference/leads/update"},{"title":"Delete Lead","openapi":"DELETE /leads/{id}","href":"/api-reference/leads/delete"}]},{"group":"Lead Tags","pages":[{"title":"List Lead Tags","openapi":"GET /lead-tags","href":"/api-reference/lead-tags/list"},{"title":"Create Lead Tag","openapi":"POST /lead-tags","href":"/api-reference/lead-tags/create"},{"title":"Get Lead Tag","openapi":"GET /lead-tags/{id}","href":"/api-reference/lead-tags/get"},{"title":"Update Lead Tag","openapi":"PATCH /lead-tags/{id}","href":"/api-reference/lead-tags/update"},{"title":"Delete Lead Tag","openapi":"DELETE /lead-tags/{id}","href":"/api-reference/lead-tags/delete"}]},{"group":"Campaigns","pages":[{"title":"List campaigns","openapi":"GET /campaigns","href":"/api-reference/campaigns/list"},{"title":"Suggested campaign settings","openapi":"GET /campaigns/defaults","href":"/api-reference/campaigns/defaults"},{"title":"Create a campaign","openapi":"POST /campaigns","href":"/api-reference/campaigns/create"},{"title":"Get a campaign","openapi":"GET /campaigns/{id}","href":"/api-reference/campaigns/get"},{"title":"Update a campaign","openapi":"PATCH /campaigns/{id}","href":"/api-reference/campaigns/update"},{"title":"Archive a campaign","openapi":"DELETE /campaigns/{id}","href":"/api-reference/campaigns/archive"},{"title":"Restore a campaign","openapi":"POST /campaigns/{id}/restore","href":"/api-reference/campaigns/restore"},{"title":"Launch a campaign","openapi":"POST /campaigns/{id}/launch","href":"/api-reference/campaigns/launch"},{"title":"Pause a campaign","openapi":"POST /campaigns/{id}/pause","href":"/api-reference/campaigns/pause"},{"title":"Resume a campaign","openapi":"POST /campaigns/{id}/resume","href":"/api-reference/campaigns/resume"},{"title":"Stop a campaign","openapi":"POST /campaigns/{id}/stop","href":"/api-reference/campaigns/stop"},{"title":"Campaign stats","openapi":"GET /campaigns/{id}/stats","href":"/api-reference/campaigns/stats"},{"group":"Contacts","pages":[{"title":"Enroll contacts","openapi":"POST /campaigns/{id}/leads","href":"/api-reference/campaigns/enroll"},{"title":"List enrolled contacts","openapi":"GET /campaigns/{id}/leads","href":"/api-reference/campaigns/list-leads"},{"title":"Exclude a contact","openapi":"DELETE /campaigns/{id}/leads/{lead_id}","href":"/api-reference/campaigns/exclude"}]}]},{"group":"Shared Links","pages":[{"title":"List Shared Links","openapi":"GET /shared-links","href":"/api-reference/shared-links/list"},{"title":"Create Shared Link","openapi":"POST /shared-links","href":"/api-reference/shared-links/create"},{"title":"Get Shared Link","openapi":"GET /shared-links/{id}","href":"/api-reference/shared-links/get"},{"title":"Revoke Shared Link","openapi":"PATCH /shared-links/{id}","href":"/api-reference/shared-links/update"}]},{"group":"Affiliates","pages":[{"title":"Affiliate stats","openapi":"GET /affiliates/stats","href":"/api-reference/affiliates/stats"},{"title":"List sub-affiliates","openapi":"GET /affiliates/downline","href":"/api-reference/affiliates/downline"}]},{"group":"Agent Eval","pages":[{"group":"Personas","pages":[{"title":"List Personas","openapi":"GET /agent-eval/personas","href":"/api-reference/agent-eval/personas/list"},{"title":"Create Persona","openapi":"POST /agent-eval/personas","href":"/api-reference/agent-eval/personas/create"},{"title":"Get Persona","openapi":"GET /agent-eval/personas/{id}","href":"/api-reference/agent-eval/personas/get"},{"title":"Update Persona","openapi":"PATCH /agent-eval/personas/{id}","href":"/api-reference/agent-eval/personas/update"},{"title":"Delete Persona","openapi":"DELETE /agent-eval/personas/{id}","href":"/api-reference/agent-eval/personas/delete"}]},{"group":"Cases","pages":[{"title":"List Cases","openapi":"GET /agent-eval/cases","href":"/api-reference/agent-eval/cases/list"},{"title":"Create Case","openapi":"POST /agent-eval/cases","href":"/api-reference/agent-eval/cases/create"},{"title":"Get Case","openapi":"GET /agent-eval/cases/{id}","href":"/api-reference/agent-eval/cases/get"},{"title":"Update Case","openapi":"PATCH /agent-eval/cases/{id}","href":"/api-reference/agent-eval/cases/update"},{"title":"Delete Case","openapi":"DELETE /agent-eval/cases/{id}","href":"/api-reference/agent-eval/cases/delete"},{"title":"Run a Case","openapi":"POST /agent-eval/cases/{case_id}/run","href":"/api-reference/agent-eval/cases/run"}]},{"group":"Suites","pages":[{"title":"List Suites","openapi":"GET /agent-eval/suites","href":"/api-reference/agent-eval/suites/list"},{"title":"Create Suite","openapi":"POST /agent-eval/suites","href":"/api-reference/agent-eval/suites/create"},{"title":"Get Suite","openapi":"GET /agent-eval/suites/{id}","href":"/api-reference/agent-eval/suites/get"},{"title":"Update Suite","openapi":"PATCH /agent-eval/suites/{id}","href":"/api-reference/agent-eval/suites/update"},{"title":"Delete Suite","openapi":"DELETE /agent-eval/suites/{id}","href":"/api-reference/agent-eval/suites/delete"},{"title":"Run a Suite","openapi":"POST /agent-eval/suites/{id}/run","href":"/api-reference/agent-eval/suites/run"},{"title":"List Suite Executions","openapi":"GET /agent-eval/suites/{id}/runs","href":"/api-reference/agent-eval/suites/runs/list"},{"title":"Get Suite Execution","openapi":"GET /agent-eval/suites/{id}/runs/{suite_run_id}","href":"/api-reference/agent-eval/suites/runs/get"}]},{"group":"Runs","pages":[{"title":"List Runs","openapi":"GET /agent-eval/runs","href":"/api-reference/agent-eval/runs/list"},{"title":"Get Run","openapi":"GET /agent-eval/runs/{id}","href":"/api-reference/agent-eval/runs/get"},{"title":"Get Run Turns","openapi":"GET /agent-eval/runs/{id}/turns","href":"/api-reference/agent-eval/runs/turns"},{"title":"Get Run Evaluation","openapi":"GET /agent-eval/runs/{id}/evaluation","href":"/api-reference/agent-eval/runs/evaluation"},{"title":"Cancel a Run","openapi":"POST /agent-eval/runs/{id}/cancel","href":"/api-reference/agent-eval/runs/cancel"}]}]}]}]},"basePath":"","title":"Create Agent - Yappr","deploymentId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","buildId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CWRF67qg.js","snippetPresets-BR8BoZAC.js","utils-D5WEoDBM.js","style-to-object-BY3JEAdk.js","utils-B79vXYXV.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-C59iNs-S.js","conditional-requirements-CFM0id0Q.js","cloneDeep-455jK_K_.js","_Uint8Array-BEecbuUl.js","isObject-FP1Yky1u.js","ApiExamples-CFRHL52q.js","usePlaygroundInputsStore-Caip2xMX.js","shallow-BS-qcxmX.js","isEqual-CEpbaqh9.js","CodeSnippets-B-R0FAqw.js","CodeSnippet-Bkkti1IB.js","use-playground-group-access-BLvLSz8w.js","Page-UFatEFaf.js","api-description-markdown-Cny85OC3.js","DynamicMarkdown-Czhs88Hc.js","SectionHeading-B08KBUKT.js","MethodPill-D8OvWg5y.js","getPastedJson-tB5m0_yh.js","Check2Icon-CeP__a4S.js","axios-CsQoIw0U.js","Markdown-LI7DSqeK.js","AssistantPageLink-bYxdsqKl.js","dist-DXTH2WLA.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}