Skip to main content
GET
Get agent
Check execution_version. For workflow_v1, use Get workflow for the canonical document and Agent settings for ordinary settings plus their original save timestamp. A workflow agent answers with type: "workflow" and omits system_prompt, flow_config, webhook_url, webhook_events, webhook_headers and tools — it has none of those things. They used to come back as nulls and an empty array, which read as the retired prompt agent and, in the case of tools, as “no tools bound” for an agent whose tools were bound all along. greeting_message is 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 put it in slightly different words), with {{FirstName}} filled in from the call’s variables or the lead’s name, or left out together with the space before it when there is none. 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. null means the agent opens in its own words. See Update Agent. model and resolved_model say which model the agent runs on. model is what was chosen (gemini-3.1-flash-live, gemini-3.8-live or gpt-live), and null means automatic; resolved_model is what the agent’s calls actually run on, which for an automatic agent depends on its language today. Both are Yappr’s own ids, on every kind of agent. language reads the short code on every agent: he, en, one of the other languages, or multi for a multilingual agent. An agent saved with a locale spelling before the API normalised it — he-IL on an agent from before the workflow engine, for one — reads the short form too; it is the same language. Its instructions, its graph and its tool bindings are all in its workflow document: Get workflow returns them, and the document’s bindings are the tools the agent can call. A null published_workflow_revision_id means draft-only, not call-ready. An agent created before the workflow engine keeps type: "prompt" or type: "flow" and the fields it has always returned, with one exception: its webhook header values are never read back. webhook_headers is write-only — you set it with Update Agent, and every read answers configured_webhook_header_names, the header names sorted, in its place. The values (a shared secret such as X-Yappr-Webhook-Secret among them) were readable by any key with agents:read. A PATCH that leaves webhook_headers out keeps them, so sending a read back changes nothing. Its webhook_url is read whole only by a key that holds tools:read (or tools:update) — the rule Get Delivery applies to the same destination. For any other key it is scheme://host[:port], without the path, query or credentials, and webhook_url_path_withheld is true: a path such as /webhook/<id> is often the endpoint’s only credential, and a reporting key that read it could post call events there. An agent embedded in a campaign or an eval case always reads it that way. The field is not the URL then — to change it, send the whole new URL; sending the shortened one back would store it. Such an agent’s tools are its tools’ own: each carries the tool’s config for a key that holds tools:read, the scope Get Tool needs. Without it each reads { "id", "name" } — which tools the agent uses, not how they call out.

Live, draft and inbound

The same three words on this response, in the dashboard and in the publish docs: A deactivated agent is live: false whatever it has published. inbound is left out, rather than answered empty, if the routes could not be read. agents:read says that a number or an endpoint reaches the agent. Which one is its own scope’s to show: without phone_numbers:search, each number’s number and friendly_name are null (its id stays); without sip_endpoints:read, each endpoint’s name is null. So a key that may not list your numbers does not read them off an agent either.

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).

Path Parameters

id
string<uuid>
required

Response

Agent with attached tools

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.

type
enum<string>

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. 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'.

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:
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}.

created_at
string<date-time>
updated_at
string<date-time>