Creates the campaign in draft. Nothing is dialed until you enroll contacts and
call POST /campaigns/{id}/launch. Required scope campaigns:manage.
Only the fields below may be sent. Any other key — including every engine-owned
field (status, spent_cents, daily_admitted_count, last_tick_result, …) and
every typo — is rejected with 400 listing the writable set.
No configuration field has a default but stop_disposition_ids, which takes the
suggested stop set when left out. The example values show what the dashboard
prefills, but any other field you omit stays null and launch refuses with
422 CAMPAIGN_NOT_READY naming it. This is deliberate: how many times to call
someone, and how often, are decisions the platform will not make on your behalf.
GET /campaigns/defaults returns the dashboard’s suggested settings, resolved for
this workspace, ready to send here. Send every field on create, or fill the gaps
with PATCH before launching.
A campaign is a paced list of outbound calls over enrolled contacts. You describe who to call, which agent calls them, when to stop calling a person, and how fast the list may be worked; the platform does the rest.A campaign is always created in draft, whatever you send. Nothing is dialed until you call POST /campaigns/{id}/launch, so a draft is a safe place to enroll contacts and tune pacing. There is no separate draft flag to set and no way to create a campaign already running — create, enroll, then launch.Drafts saved from the dashboard’s campaign wizard are these same rows. A draft you create here appears in the dashboard’s campaigns list and can be finished there, and a draft parked in the wizard can be read, patched and launched through this API.Required scope: campaigns:manage.
No configuration field has a default but stop_disposition_ids, which a new campaign
fills with the suggested stop set when you leave it out. The “Suggested” column below is
what the dashboard prefills for a human, not what the API substitutes for you. Any other
field you never send stays null, and POST /campaigns/{id}/launch returns 422 CAMPAIGN_NOT_READY
naming it.This is deliberate. How many times to call someone, and how often, are decisions the
platform will not quietly make on your behalf. Send every field on create, or fill the
gaps with PATCH before you launch.To start from what the dashboard offers, read
GET /campaigns/defaults: the suggested settings
resolved for your workspace — its own outcome IDs, its timezone and working week — in a
shape you can send here as-is.
The full journey
Create the draft — POST /campaigns with a name, the agent_id that will do the talking, optionally the from_phone_number_id to call from (left out, the campaign calls from the agent’s own number), a regulatory_basis, and at least one stop rule. from_phone_number_id can be your phone system’s number (provider: "phone_system"), and the campaign then calls out through your phone system; if its outbound calls pause, the campaign pauses with them (paused_config).
Enroll contacts — POST /campaigns/{id}/leads with lead_ids (leads you already have) and/or phone_numbers (numbers that become leads). Numbers on the do-not-call list are reported and skipped.
Tune it — PATCH /campaigns/{id} for pacing, attempt caps, stop rules, budget. Re-read with GET /campaigns/{id}.
Launch — POST /campaigns/{id}/launch. A preflight runs first and returns 422 CAMPAIGN_NOT_READY with a specific reason when the campaign cannot dial. On success the status becomes running.
Watch it — GET /campaigns/{id}/stats for progress counters and last_tick_result, the machine-readable answer to “why is nothing happening right now”. GET /campaigns/{id}/leads for per-contact state.
Control it — POST /campaigns/{id}/pause, /resume, /stop (terminal), or DELETE /campaigns/{id} to archive.
Testing two agents on one campaign
Give a campaign a second agent and it will run both against the same list.
percent is the share the second agent takes.agent_id keeps the rest,
so the example above gives 30% of contacts to the new agent and 70% to the
existing one. { "split": null } turns the test off.
What to expect
A contact keeps the agent it got. The assignment happens once, the first
time that contact is admitted, and every later attempt — every no-answer
redial — uses the same agent. A retry is the same conversation continued, not
a fresh coin toss, so the comparison stays honest.
Changing the share later only moves contacts that have not been dialed
yet. Raising percent mid-campaign does not re-assign anyone.
Changing an agent, or ending the test, does reach contacts already
dialed. An assignment belongs to the test as it is configured now. Send
"split": null and every contact goes back to the campaign’s own agent on its
next attempt; replace either agent and the contacts held by the one you
removed are assigned again across the pair you are running now. Only the two
agents a campaign is currently running ever place its calls.
Both agents have to be launchable. Both need a maximum call duration, and
the second one has to be able to take calls; otherwise POST /campaigns/{id}/launch refuses and says which agent is the problem.
Switching an agent off is not how you end the test. If an agent that
contacts are already pinned to can no longer take calls, those contacts are
dialed by the campaign’s own agent instead — the same fallback a phone number
makes — and those calls are recorded as version A, because that is who called.
The assignment itself is kept, so switching the agent back on returns its
contacts to it. To end the test, send "split": null.
Both agents are screened against your do-not-call list at enrolment. A
contact suppressed for either agent is reported as on_do_not_call and never
enrolled, so a contact can never be assigned an agent that is not allowed to
call it.
Read the results with GET /calls?ab_variant=a and ?ab_variant=b.
Refusals
Status
When
422 INVALID_SPLIT
split.percent outside 1–99, or split.agent_id is the same as agent_id.
422 INVALID_SPLIT
split sent as anything other than an object or null, or carrying a key that is not agent_id / percent
400 CAMPAIGN_REQUEST_INVALID
agent_id or split.agent_id is not an agent in this workspace — it does not exist, belongs to another workspace, or has been archived: issues[] names it (agent_not_found, at /agent_id or /split/agent_id) beside every other problem in the body. It used to be a separate 404 AGENT_NOT_FOUND, found only once the values were right.
A campaign call is an ordinary outbound call
A campaign hands calls to the same outbound queue that POST /calls uses, at the same weight. The pacing fields below control how fast a campaign offers calls to that queue — they never buy priority over anything else in the workspace and they cannot raise your concurrency. If the queue is busy, a campaign waits its turn like any other call.Dialing is also gated by your workspace calling hours (GET /call-windows) and by your credit balance, both re-checked continuously while the campaign runs.
Identity and targeting
Field
Type
Suggested
Notes
name
string
—
Required. Trimmed. Names do not have to be unique — “Follow-up” is a fine name for this month’s and last month’s, and a campaign is identified by its id everywhere that matters.
description
string
null
Free text for your own bookkeeping.
agent_id
uuid
null
The agent that places the calls. Required before launch. The agent must have a positive max_call_duration_secs so worst-case spend is bounded.
variables
object
{}
Values for the agent’s {{placeholders}} on every call this campaign places — the same value for every contact, except FirstName and FullName: each call fills those from its contact’s own name (the first word of it, and the whole of it), and the value here is what a contact with no name hears. Where the first word is not a name said alone — a household (משפחת כהן, Family Levi), a title (ד"ר, Dr.), or half of a given name (בת שבע, Abu Ali) — {{FirstName}} is the whole name too. There is no per-contact override: for a business use {{FullName}} in the opening line, or store the name the way it should be said. String values only. CallerPhone, CurrentDate, CurrentDateTime, CurrentTime, CallDirection and Timezone are filled automatically and refused.
from_phone_number_id
uuid
null
The number to call from: one you own (GET /phone-numbers) and that is active. Left out or null, the campaign calls from the agent’s own number — a number the agent calls from (its outbound agent, or either half of the number’s outbound split), else one it answers on; a Yappr number before one on your own Telnyx account. An A/B split calls from the first agent’s number for both halves. from_number in the answer is the number it will call from.
split
object | null
null
Optional two-agent A/B test — { "agent_id": "…", "percent": 30 }. percent is the share of contacts the second agent takes; agent_id above takes the rest. See Testing two agents on one campaign below.
regulatory_basis
string
null
Required before launch.lawful_basis_confirmed (a single attestation that you have consent or another lawful basis — what the dashboard records), or one of the specific bases consent, existing_customer, non_marketing, registry_screened. Recorded with the launch event as the record of why these people were called.
Stop rules — when to stop calling one person
Two independent per-contact stop conditions apply, whichever fires first:
max_attempts — the attempt cap.
The stop-disposition set — landing one of these outcomes retires that contact permanently. Anything else is retried until the cap.
Field
Type
Suggested
Notes
stop_disposition_ids
uuid[]
the outcomes that settle a contact
Disposition IDs (GET /dispositions), never labels — labels are renameable, IDs are stable. Every ID must belong to your workspace. The suggested set is your Interested, Appointment Set, Not Interested, Issue Resolved, Transferred to a Person, Wrong Number and Do Not Call outcomes and every outcome your workspace added itself — everything but Callback Requested and the four Yappr assigns; GET /campaigns/defaults returns their IDs. Leave stop_disposition_ids out and the campaign is created with that set; send [] for none. The set is copied when the campaign is created: an outcome added to the workspace afterwards does not join it. To re-apply the current suggested set to an existing campaign, send settings.stop_disposition_ids from GET /campaigns/defaults with PATCH /campaigns/{id}.
stop_on_no_answer
boolean
false
Retire a contact the first time nobody picks up.
stop_on_voicemail
boolean
false
Retire a contact when the call reaches voicemail.
stop_on_unclassified
boolean
false
What to do when the outcome that arrives is “no clear outcome” — the call happened but matched none of your outcomes. false retries, true retires. Not a timeout; see the note below.
At least one of stop_disposition_ids, stop_on_no_answer or stop_on_voicemail must be set before launch. A campaign with no stop rule would call every contact until the attempt cap, so the preflight refuses it.To stop calling people you have already spoken to, create a disposition for that outcome (POST /dispositions) and put its ID in stop_disposition_ids. There is no built-in “reached a human” rule: what counts as a real conversation differs per workspace, so it belongs in your own outcome list where you can see and change it.Interested is a stop like any outcome you name: its ID is accepted, and a new campaign stops on it unless you leave it out. A contact who ends on it is not called again — they show on the campaign’s leads (GET /campaigns/{id}/leads) as completed_success with that outcome, and a follow-up on the agent can notify you.No Answer, Failed, Voicemail and Unclassified are refused in stop_disposition_ids (400, naming the outcome and the switch to use). The platform assigns them by itself — No Answer on every unanswered ring, Failed on every dial that did not go through, and Voicemail or Unclassified even on a call someone answered — so listing one retires the contact the first time it lands, before any retry. Use the stop_on_no_answer / stop_on_voicemail / stop_on_unclassified booleans instead: they are evaluated on the call outcome rather than on the label.Categorization happens after a call ends, not during it, so a contact sits in awaiting_disposition until its outcome lands. It is never re-dialed while in that state, and there is no deadline after which the platform decides without one.
A call’s outcome is authoritative, and a contact is never advanced without one.
Outcomes are assigned asynchronously after a call ends, so a contact sits in
awaiting_disposition until its outcome arrives — however long that takes. Only that
contact waits; the pacer keeps admitting every other contact in the campaign. There is
no timeout that decides on your behalf, because “we never learned what happened” is
not a basis for calling someone again.
Attempts and retries
Field
Type
Suggested
Notes
max_attempts
integer
3
1–999. Dial attempts per contact before it becomes exhausted. Set it as high as your follow-up actually goes.
max_infra_retries
integer
3
0–20. The safeguard — a count of retries, not money; the money limits are budget_cents below and the workspace’s monthly spending limit. It covers failures where the call never went out — nobody’s phone rang. These never consume a dial attempt and are never terminal for the contact. When one contact’s call fails to go out more times than this, the whole campaign pauses as paused_infra (pause_reason: call_placement_failures): calls already under way finish normally, every contact keeps its place and next attempt time, and nothing new is dialed until you resume.
retry_no_answer_seconds
integer
3600
30–604800. Wait before re-offering a contact nobody picked up. Also used when the call reached voicemail or a busy line.
retry_completed_seconds
integer
86400
60–604800. Wait before re-offering a contact whose call connected but did not hit a stop rule.
randomize_retry_time
boolean
false
Which time of day the retry lands on. false keeps the wait exact — a one-week wait retries at the same hour a week later. true picks a different hour inside the calling window, so repeat attempts do not always arrive at the same moment. Either way the retry is never earlier than the configured wait.
double_dial_enabled
boolean
false
Ring a second time shortly after an unanswered first ring. The pair counts as one attempt.
double_dial_gap_seconds
integer
90
10–3600. Gap between the two rings. Required before launch even when double_dial_enabled is false.
Pacing
Field
Type
Suggested
Notes
max_calls_per_day
integer
200
1–100000. Resets at midnight in your workspace timezone.
min_seconds_between_calls
integer
30
0–86400. Minimum spacing between two calls from this campaign.
max_in_flight
integer
2
1–8. How many calls this campaign may have outstanding at once. Self-restraint, not a reservation — it stops one campaign monopolising shared outbound capacity.
calling_window
object
workspace timezone, 09:00–18:00, working week
Optional per-campaign narrowing, { tz, days: [0..6], start: "HH:MM", end: "HH:MM" }. tz is an IANA zone name and is required whenever days, start or end is present — "09:00-18:00" says nothing until it says whose nine in the morning. days lists each day once, 0 (Sunday) to 6 (Saturday), and is never empty — leave it out to call on every day the workspace hours allow. start and end come together, 00:00–23:59, and end is later than start: a window of zero minutes never opens, and one that passes midnight is not supported (the workspace calling hours work the same way). Leave it {} to follow the workspace calling hours, which gate dialing either way.
Money and schedule
Field
Type
Suggested
Notes
budget_cents
integer | null
null
Positive integer, or null for no cap. Before each call the campaign holds that call at its worst case — twice the agent’s max_call_duration_secs, in minutes, times the per-minute rate (the longer of the two agents in an A/B test, at the highest per-minute price of any voice model, as GET /billing/rates lists them) — and pauses as paused_budget when spend plus what is held for calls in flight plus that hold would pass the cap, so a campaign cannot overshoot by an entire live cohort. Counted in credits: a credit is one cent, so a 600 s agent at 30 credits a minute holds 600 and budget_cents: 600 covers exactly one call. A cap below one call’s hold is refused (400), since it would pause the campaign before its first call; with no agent on the campaign yet there is nothing to hold against, and launch checks it instead.
budget_cents is this campaign’s lifetime budget: one number, spent down
once, never reset. It is not the workspace’s monthly spending limit
(monthly_budget_cents, see
PATCH /billing), which covers every
outbound call in the workspace and lifts by itself at the start of each
calendar month. Both can stop this campaign, and both report the same
paused_budget status; pause_reason on the campaign says which —
campaign_budget or workspace_spend_limit.
Field
Type
Suggested
Notes
starts_at
timestamp
null
ISO-8601. No call is placed before this moment. It does not launch the campaign for you: launch it whenever you like — it reads running and waits — and the first call goes out at starts_at, inside the calling window.
ends_at
timestamp
null
ISO-8601. No new call is placed from this moment; the campaign then moves to completed, and calls already under way finish. Must be later than starts_at, not already passed, and leave the calling_window at least one moment to open in: a Sunday-only window between a Friday and a Saturday is refused.
Fields you cannot set
Unknown keys are rejected with 400 rather than ignored, so a typo like stop_dispositions can never leave you believing you configured a kill switch that is not there.retry_rules is rejected too. It was an earlier structured retry matrix that the dialer never evaluated; the scalar fields above are the whole retry configuration.These are engine-owned and rejected the same way: status, from_number, daily_admitted_count, daily_window_date, last_admitted_at, spent_cents, reserved_cents, estimate_cents, last_tick_at, last_tick_result, last_error, started_at, completed_at, total_leads, stats.
HTTP 201. agent, from_phone_number and stop_dispositions expand the IDs you supplied — each is the complete referenced object, abbreviated here for brevity.
Unknown or read-only field in the body. Each is in issues[] at its own path with code: "field_unknown" and the field it was likely meant to be (stop_dispositions → “Did you mean stop_disposition_ids?”); the message lists every writable field, and issues[] also names every other value the body gets wrong.
400
CAMPAIGN_REQUEST_INVALID
A numeric field is outside its allowed range, a boolean field is not a boolean, or budget_cents is not a positive integer — each a JSON number, never a string such as "15000".
400
CAMPAIGN_REQUEST_INVALID
regulatory_basis is not one of the five accepted values.
400
CAMPAIGN_REQUEST_INVALID
stop_disposition_ids is not an array of ID strings, holds something that is not an id — a label such as "Not Interested", which used to answer 500 — or contains an ID that does not belong to your workspace (deleted, or another workspace’s: outcome_not_found). Each is named at its place, /stop_disposition_ids/<n>; look the id up in GET /dispositions.
400
CAMPAIGN_REQUEST_INVALID
stop_disposition_ids holds one of the outcomes the platform assigns by itself — No Answer, Voicemail, Unclassified, Failed. Listed, one would retire the contact the first time it lands, before any retry (No Answer lands on every unanswered ring). The message names each and the switch to use instead: stop_on_no_answer, stop_on_voicemail, stop_on_unclassified (a failed dial is retried until max_attempts).
400
CAMPAIGN_REQUEST_INVALID
budget_cents is below one call’s hold — twice the longest max_call_duration_secs of the campaign’s agents, in minutes, times the per-minute rate — so the campaign would pause before its first call. The message names the hold. Checked when the request sends budget_cents, agent_id or split.
400
CAMPAIGN_REQUEST_INVALID
calling_window or variables is not an object, or a variables value is not a string.
400
CAMPAIGN_REQUEST_INVALID
calling_window sets days, start or end without a tz.
400
CAMPAIGN_REQUEST_INVALID
calling_window cannot be the window you meant, named in the message: a tz that is not a time zone (Mars/Olympus), days empty, repeated or outside 0–6, a start/end that is not HH:MM (25:00) or sent without the other, an end not later than start — a window of zero minutes, or one passing midnight (18:00–09:00) — or a key other than tz, days, start, end.
400
CAMPAIGN_REQUEST_INVALID
starts_at or ends_at is not an ISO-8601 timestamp, ends_at has already passed, or ends_at is not later than starts_at.
400
CAMPAIGN_REQUEST_INVALID
The calling_window never opens between starts_at (or now, if that is later) and ends_at, read on the window’s tz — for example a Sunday-only window with a Friday-to-Saturday range. Checked whenever the request sends calling_window, starts_at or ends_at, against the values stored for the ones it leaves out.
400
CAMPAIGN_REQUEST_INVALID
Request body is not valid JSON.
400
CAMPAIGN_REQUEST_INVALID
from_phone_number_id is not an id, or not a phone number in this workspace — made up, another workspace’s, or released: issues[] names it (invalid_from_number, at /from_phone_number_id). Nothing was written. Send the id of one of your numbers as GET /phone-numbers returns it. It used to be its own 400 INVALID_FROM_NUMBER.
400
CAMPAIGN_REQUEST_INVALID
No from_phone_number_id, and the agent has no number to call from: issues[] names it (invalid_from_number, at /from_phone_number_id) with The agent on this campaign has no phone number to call from. Make it the outbound agent of one of this workspace’s numbers (PATCH /phone-numbers/ with outbound_agent_id), or send from_phone_number_id with the id of the number to call from. GET /phone-numbers lists them. Nothing was written. A draft with no agent_id yet is not refused for this.
403
INSUFFICIENT_SCOPE
API key lacks campaigns:manage.
Every CAMPAIGN_REQUEST_INVALID above names all the problems in the body at once: issues[] carries one {code, path, message} per field at fault — /max_attempts, /calling_window/days, /calling_window/start, each platform outcome at /stop_disposition_ids/<n> (platform_stop_outcome), the number (invalid_from_number) and the agents (agent_not_found) — and error is the first of them with a count of the rest. ["No Answer", "Voicemail"] beside max_attempts: 0 is three issues in one answer.
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).
Body
application/json
name
string
required
Example:
"July reactivation"
description
string | null
agent_id
string<uuid>
Required before launch.
from_phone_number_id
string<uuid> | null
The number to call from. Leave it out to call from the agent's own number (from_number in the answer says which); 400 with invalid_from_number when the agent has no number and none is sent.
split
object | null
Optional two-agent A/B test. percent is the share of contacts the SECOND agent takes; agent_id above takes the rest. Send null to turn it off. 422 INVALID_SPLIT when the object has a key other than those two, the percent is outside 1–99, or the second agent is the same as agent_id. An agent that is not in this workspace is 404 AGENT_NOT_FOUND.
Show child attributes
variables
object
Values for the agent's {{placeholders}} on every call this campaign places. FirstName and FullName are filled on each call from its contact's own name; the value here is what a contact with no name hears. String values only; the automatically filled names (CallerPhone, CurrentDate, CurrentDateTime, CurrentTime, CallDirection, Timezone) are refused.
Show child attributes
calling_window
object
Optional narrowing of the workspace calling hours. Cannot widen them. tz (an IANA zone name) is required whenever days, start or end is present; {} inherits the workspace schedule. days 0–6, each once, never empty; start/end as HH:MM, together, end later than start.
stop_disposition_ids
string<uuid>[]
Disposition IDs (never labels) that retire a contact permanently. Interested is accepted like any outcome you name. Do not include No Answer, Failed, Voicemail or Unclassified (refused) — use stop_on_no_answer / stop_on_voicemail / stop_on_unclassified instead. Left out, the campaign stops on the set GET /campaigns/defaults returns (Interested and the workspace's own outcomes included); [] for none.
stop_on_no_answer
boolean
Example:
false
stop_on_voicemail
boolean
Example:
false
stop_on_unclassified
boolean
Example:
false
max_attempts
integer
Required range: 1 <= x <= 999
Example:
3
max_infra_retries
integer
Required range: 0 <= x <= 20
Example:
3
retry_no_answer_seconds
integer
Required range: 30 <= x <= 604800
Example:
3600
retry_completed_seconds
integer
Required range: 60 <= x <= 604800
Example:
86400
randomize_retry_time
boolean
false keeps a retry at the same time of day; true picks another hour inside the calling window.
Example:
false
double_dial_enabled
boolean
Example:
false
double_dial_gap_seconds
integer
Required range: 10 <= x <= 3600
Example:
90
max_calls_per_day
integer
Required range: 1 <= x <= 100000
Example:
200
min_seconds_between_calls
integer
Required range: 0 <= x <= 86400
Example:
30
max_in_flight
integer
Required range: 1 <= x <= 8
Example:
2
budget_cents
integer | null
Hard spend cap in credits (a credit is a cent). At least one call's hold once the campaign has an agent. Null for no cap.
Required range: x >= 1
regulatory_basis
enum<string>
Required before launch.
Available options:
lawful_basis_confirmed,
consent,
existing_customer,
non_marketing,
registry_screened
starts_at
string<date-time> | null
ends_at
string<date-time> | null
Response
Campaign created in draft
A paced bulk-outbound dialing job over enrolled contacts.
A campaign is an admission-only scheduler. It decides when each enrolled
contact becomes eligible, then performs one ordinary outbound call — the same
queue, the same priority, and the same concurrency limits as a call placed with
POST /calls. The pacing fields below only control how fast a campaign hands
calls to that queue; a campaign call never takes precedence over anything else.
Campaigns are always created as draft and are launched with
POST /campaigns/{id}/launch.
Two independent per-contact stop conditions apply, whichever fires first:
max_attempts, and the stop-disposition set (stop_disposition_ids plus the
stop_on_* booleans). Landing a stop disposition retires that contact
permanently; any other outcome retries until the attempt cap.
Fields marked Engine-owned are written by the campaign engine and are never
writable. Sending one on create or update returns 400, as does any field name
that isn't on the writable list — a misspelled stop_dispositions is rejected
rather than silently ignored, so you can never believe a kill switch is armed
when it is not.
id
string<uuid>
company_id
string<uuid>
name
string
Example:
"July reactivation"
description
string | null
status
enum<string>
Engine-owned. Move it with the transition endpoints
(launch / pause / resume / stop), never with PATCH.
draft — created, not dialing.
scheduled — not entered today. A campaign launched before its starts_at
reads running and places no call until that moment.
running — admitting contacts.
paused — paused by you. A manual pause is never lifted automatically; it
survives a top-up.
paused_insufficient_credit — balance is below the minimum needed to place a
call. Auto-resumes shortly after the balance is topped up.
paused_budget — budget_cents reached, or the workspace's own monthly
spending limit reached; pause_reason says which.
paused_infra — the safeguard: one contact's call could not be placed more
times than max_infra_retries allows (nobody's phone rang). Calls already
under way finish normally and every contact keeps its place; nothing new is
dialed until you resume. Not lifted automatically.
paused_config — a permanent configuration problem (from-number no longer
active, agent missing a call-duration cap, no reachable calling window).
completed — every enrolled contact reached a terminal state.
stopped — stopped by you. Terminal.
archived — soft-deleted by DELETE /campaigns/{id}. Terminal.
Available options:
draft,
scheduled,
running,
paused,
paused_insufficient_credit,
paused_budget,
paused_infra,
paused_config,
completed,
stopped,
archived
pause_reason
enum<string> | null
Why the campaign is paused, or null when it is not. Read-only.
manual (paused), insufficient_credit (paused_insufficient_credit),
campaign_budget or workspace_spend_limit (both paused_budget — this
campaign's budget_cents, or the workspace's monthly limit from
PATCH /billing), call_placement_failures (paused_infra),
configuration (paused_config).
Available options:
manual,
insufficient_credit,
campaign_budget,
workspace_spend_limit,
call_placement_failures,
configuration,
null
agent_id
string<uuid> | null
Agent that runs the calls. Required before launch.
agent
object | null
The Agent for agent_id. For a key holding agents:read it is the
same object, field for field, that GET /agents/{id} returns for it.
For a key without agents:read it is { id, name } only: the
campaign never shows a key more of an agent than GET /agents/{id}
would.
Show child attributes
split
object | null
The A/B test on this campaign's calls, or null when every contact is
called by agent_id.
percent is the share of contacts that go to the SECOND agent
(agent_id inside the object). agent_id on the campaign takes the rest.
A contact is assigned once, on its first admission, and keeps that agent
for every later attempt — a no-answer redial is the same conversation and
not a fresh coin toss. Changing percent afterwards therefore only affects
contacts that have not been dialed yet. Changing either agent, or sending
null, does reach contacts already dialed: an assignment to an agent the
campaign no longer runs is released, and that contact is assigned again on
its next attempt. Both agents must have a maximum call duration set and be
able to take calls, or launch refuses.
Both agents are screened against the do-not-call list at enrolment, so a
contact is never assigned an agent that is not allowed to call it.
Show child attributes
split_agent
object | null
The Agent for the second agent in split, read like agent: the object GET /agents/{id} returns for a key holding agents:read, { id, name } for a key without it.
Show child attributes
from_phone_number_id
string<uuid> | null
The number the campaign calls from, when it names one. null (the default) calls from the agent's own number: a number the agent calls from (its outbound agent, or either half of the number's outbound split), else one it answers on; a Yappr number before one on your own Telnyx account. An A/B split calls from the first agent's number for both halves. A create or edit that leaves it null on an agent with no number is 400 CAMPAIGN_REQUEST_INVALID (invalid_from_number at /from_phone_number_id); at launch the number must still be active. If this number is released, the campaign calls from its agent's own number from then on.
from_phone_number
object | null
The PhoneNumber for from_phone_number_id. For a key holding phone_numbers:search it is exactly the object GET /phone-numbers returns, and only that. For a key without it, it is { id, friendly_name, number: null }: which number, and what it costs, are that scope's to show (friendly_name is null too when it spells the number). The carrier account's own plumbing (provider and order ids, SIP trunk/credential identifiers, SIP usernames and secrets) is never part of it.
Show child attributes
from_number
string | null
Engine-owned. E.164 number the campaign calls from: from_phone_number's, or its agent's own number when from_phone_number_id is null. Written on create, edit and launch, and on every dialling round, so it follows the agent onto a new number; kept for audit even if the number is later released. null until the campaign has an agent or a number that can call, and for a key without phone_numbers:search, as from_phone_number.number is.
Example:
"+972551234567"
variables
object
Values for the agent's {{placeholders}} on every call this campaign places. FirstName and FullName are filled on each call from its contact's own name (the first word of it, and the whole of it; a household, a title or half of a given name keeps the whole name under FirstName: "משפחת כהן"); the value here is what a contact with no name hears. {} when none are set.
Show child attributes
calling_window
object
Optional campaign-level narrowing of the workspace calling hours. Omit to inherit the workspace schedule (GET /call-windows). A campaign can only ever dial inside the workspace window — this field cannot widen it. { tz, days: [0..6], start: "HH:MM", end: "HH:MM" }. tz is an IANA zone name and is required whenever days, start or end is present: hours without a zone are ambiguous, so they are refused rather than read against a zone you did not pick. days lists each day once and is never empty; start and end come together and end is later than start (no zero-minute window, none past midnight). Anything else is 400 CAMPAIGN_REQUEST_INVALID, naming the value.
stop_disposition_ids
string<uuid>[]
Disposition IDs that retire a contact permanently when assigned — the
campaign's kill switch. Always IDs, never labels: labels are renameable, and a
rename would silently disarm the rule.
No Answer, Failed, Voicemail and Unclassified are refused here with
400. The platform assigns them by itself (No Answer on every unanswered
ring), so listing one retires the contact the first time it lands, before any
retry, and Voicemail or Unclassified can land on a call someone answered.
Use stop_on_no_answer, stop_on_voicemail and stop_on_unclassified instead.
Must contain dispositions belonging to your company; anything else is rejected
with 400.
stop_dispositions
object[]
Full Disposition objects for stop_disposition_ids.
Show child attributes
stop_on_no_answer
boolean
Retire a contact the first time a call goes unanswered.
Example:
false
stop_on_voicemail
boolean
Retire a contact the first time a call reaches an answering machine.
Example:
false
stop_on_unclassified
boolean
What to do when the outcome that arrives is Unclassified — the call happened but could not be matched to any of your outcomes. false retries the contact, true retires it.
This is not a timeout. A call's outcome is authoritative and a contact is never advanced without one: if classification is slow, only that contact waits while the campaign keeps calling everyone else.
Example:
false
max_attempts
integer
Per-contact dial cap. One of the two independent stop conditions — the other is the stop-disposition set.
Required range: 1 <= x <= 999
Example:
3
max_infra_retries
integer
The safeguard: how many retries one contact gets after a platform-side failure — a call that never reached the person — before the whole campaign pauses as paused_infra. A count, not money: the money limits are budget_cents and the workspace's monthly spending limit. These retries do not consume max_attempts and are never terminal.
Required range: 0 <= x <= 20
Example:
3
retry_no_answer_seconds
integer
Delay before retrying a contact who did not answer.
Required range: 30 <= x <= 604800
Example:
3600
retry_completed_seconds
integer
Delay before retrying a contact whose call completed but landed on a non-stop disposition.
Required range: 60 <= x <= 604800
Example:
86400
randomize_retry_time
boolean
Which time of day a retry lands on. false keeps the wait exact, so a one-week wait retries at the same hour a week later. true picks a different hour inside the campaign's calling window, so repeat attempts do not always arrive at the same moment. The wait length itself is unchanged either way — a randomized retry is still never earlier than the configured wait.
Example:
false
double_dial_enabled
boolean
Ring a second time shortly after an unanswered first ring.
Example:
false
double_dial_gap_seconds
integer
Gap between the two rings when double_dial_enabled is true.
Required range: 10 <= x <= 3600
Example:
90
max_calls_per_day
integer
Daily admission cap, counted against the workspace timezone day.
Required range: 1 <= x <= 100000
Example:
200
min_seconds_between_calls
integer
Minimum spacing between two calls handed to the queue by this campaign.
Required range: 0 <= x <= 86400
Example:
30
max_in_flight
integer
Calls this campaign may have live at once. Platform concurrency limits still apply on top — raising this does not buy the campaign extra capacity.
Required range: 1 <= x <= 8
Example:
2
budget_cents
integer | null
This campaign's LIFETIME spend cap, enforced against spent_cents + reserved_cents (credits are debited when a call ends, so in-flight cost has to count) plus the next call's hold: twice the agent's max_call_duration_secs, in minutes, times the per-minute rate (the highest per-minute price of any voice model, as GET /billing/rates lists them). Counted in credits: a credit is one cent. A cap below one call's hold is refused with 400 (it would pause the campaign before its first call), and launch refuses one stored before that check. null means no cap. On hit the campaign moves to paused_budget. Distinct from the workspace's calendar-month limit (monthly_budget_cents, PATCH /billing), which covers every outbound call in the workspace and resets each month: either can pause this campaign and both report paused_budget.
Required range: x >= 1
regulatory_basis
enum<string> | null
Your lawful basis for calling this list. Required before launch — recorded on the campaign's launch audit record alongside the enrolled count.
lawful_basis_confirmed is what the dashboard records: a single attestation that the caller has consent or another lawful basis for everyone on the list. The four specific values are for callers that know which one applies.
Available options:
lawful_basis_confirmed,
consent,
existing_customer,
non_marketing,
registry_screened
starts_at
string<date-time> | null
No call is placed before this moment. It does not launch the campaign: a campaign launched earlier reads running and waits.
ends_at
string<date-time> | null
No new call is placed from this moment; the campaign then moves to completed. Later than starts_at, not already passed, and the calling_window must open at least once before it.
daily_admitted_count
integer
Engine-owned. Calls handed to the queue during the current day window.
daily_window_date
string<date> | null
Engine-owned. Day daily_admitted_count belongs to.
last_admitted_at
string<date-time> | null
Engine-owned. When this campaign last handed a call to the queue.
estimate_cents
integer | null
Engine-owned. Reserved for a projected campaign cost; nothing computes it yet, so it is null.
spent_cents
integer
Engine-owned. Settled spend so far.
reserved_cents
integer
Engine-owned. Worst-case cost of in-flight calls, held against budget_cents until they settle.
last_tick_at
string<date-time> | null
Engine-owned. Last time the engine evaluated this campaign.
last_tick_result
string | null
Engine-owned. Machine-readable answer to "why is nothing happening right now" — e.g. daily cap reached, outside the calling window, waiting on in-flight calls. blocked means another operation held this campaign during the last evaluation and it is retried on the next one. Full vocabulary on the campaign stats page.
last_error
string | null
Engine-owned. Last error the engine recorded for this campaign.
started_at
string<date-time> | null
Engine-owned. First launch time.
completed_at
string<date-time> | null
Engine-owned. When the last contact reached a terminal state.
total_leads
integer
Engine-owned. Contacts currently enrolled.
stats
object
Engine-owned counter roll-up. Prefer GET /campaigns/{id}/stats.
created_at
string<date-time>
updated_at
string<date-time>
created_by
string<uuid> | null
Null when the campaign was created via the API.
{"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/campaigns/create","slug":"/api-reference/campaigns/create","pageMetadata":{"title":"Create a campaign","openapi":"POST /campaigns","description":"Creates the campaign in `draft`. Nothing is dialed until you enroll contacts and\ncall `POST /campaigns/{id}/launch`. Required scope `campaigns:manage`.\n\nOnly the fields below may be sent. Any other key — including every engine-owned\nfield (`status`, `spent_cents`, `daily_admitted_count`, `last_tick_result`, …) and\nevery typo — is rejected with `400` listing the writable set.\n\n**No configuration field has a default but `stop_disposition_ids`**, which takes the\nsuggested stop set when left out. The `example` values show what the dashboard\nprefills, but any other field you omit stays `null` and `launch` refuses with\n`422 CAMPAIGN_NOT_READY` naming it. This is deliberate: how many times to call\nsomeone, and how often, are decisions the platform will not make on your behalf.\n`GET /campaigns/defaults` returns the dashboard's suggested settings, resolved for\nthis workspace, ready to send here. Send every field on create, or fill the gaps\nwith `PATCH` before launching.\n","href":"/api-reference/campaigns/create"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Creates the campaign in \", _jsx(_components.code, {\n children: \"draft\"\n }), \". Nothing is dialed until you enroll contacts and\\ncall \", _jsx(_components.code, {\n children: \"POST /campaigns/{id}/launch\"\n }), \". Required scope \", _jsx(_components.code, {\n children: \"campaigns:manage\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Only the fields below may be sent. Any other key — including every engine-owned\\nfield (\", _jsx(_components.code, {\n children: \"status\"\n }), \", \", _jsx(_components.code, {\n children: \"spent_cents\"\n }), \", \", _jsx(_components.code, {\n children: \"daily_admitted_count\"\n }), \", \", _jsx(_components.code, {\n children: \"last_tick_result\"\n }), \", …) and\\nevery typo — is rejected with \", _jsx(_components.code, {\n children: \"400\"\n }), \" listing the writable set.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsxs(_components.strong, {\n children: [\"No configuration field has a default but \", _jsx(_components.code, {\n children: \"stop_disposition_ids\"\n })]\n }), \", which takes the\\nsuggested stop set when left out. The \", _jsx(_components.code, {\n children: \"example\"\n }), \" values show what the dashboard\\nprefills, but any other field you omit stays \", _jsx(_components.code, {\n children: \"null\"\n }), \" and \", _jsx(_components.code, {\n children: \"launch\"\n }), \" refuses with\\n\", _jsx(_components.code, {\n children: \"422 CAMPAIGN_NOT_READY\"\n }), \" naming it. This is deliberate: how many times to call\\nsomeone, and how often, are decisions the platform will not make on your behalf.\\n\", _jsx(_components.code, {\n children: \"GET /campaigns/defaults\"\n }), \" returns the dashboard’s suggested settings, resolved for\\nthis workspace, ready to send here. Send every field on create, or fill the gaps\\nwith \", _jsx(_components.code, {\n children: \"PATCH\"\n }), \" before launching.\"]\n })]\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`,ol:`ol`,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,Note,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`A campaign is a paced list of outbound calls over enrolled contacts. You describe `,_jsx(_components.em,{children:`who`}),` to call, `,_jsx(_components.em,{children:`which agent`}),` calls them, `,_jsx(_components.em,{children:`when to stop`}),` calling a person, and `,_jsx(_components.em,{children:`how fast`}),` the list may be worked; the platform does the rest.`]}),`\n`,_jsxs(_components.p,{children:[`A campaign is `,_jsxs(_components.strong,{children:[`always created in `,_jsx(_components.code,{children:`draft`})]}),`, whatever you send. Nothing is dialed until you call `,_jsx(_components.code,{children:`POST /campaigns/{id}/launch`}),`, so a draft is a safe place to enroll contacts and tune pacing. There is no separate draft flag to set and no way to create a campaign already running — create, enroll, then launch.`]}),`\n`,_jsx(_components.p,{children:`Drafts saved from the dashboard’s campaign wizard are these same rows. A draft you create here appears in the dashboard’s campaigns list and can be finished there, and a draft parked in the wizard can be read, patched and launched through this API.`}),`\n`,_jsxs(_components.p,{children:[`Required scope: `,_jsx(_components.code,{children:`campaigns:manage`}),`.`]}),`\n`,_jsxs(Warning,{children:[_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`No configuration field has a default but `,_jsx(_components.code,{children:`stop_disposition_ids`})]}),`, which a new campaign\nfills with the suggested stop set when you leave it out. The “Suggested” column below is\nwhat the dashboard prefills for a human, not what the API substitutes for you. Any other\nfield you never send stays `,_jsx(_components.code,{children:`null`}),`, and `,_jsx(_components.code,{children:`POST /campaigns/{id}/launch`}),` returns `,_jsx(_components.code,{children:`422 CAMPAIGN_NOT_READY`}),`\nnaming it.`]}),_jsxs(_components.p,{children:[`This is deliberate. How many times to call someone, and how often, are decisions the\nplatform will not quietly make on your behalf. Send every field on create, or fill the\ngaps with `,_jsx(_components.code,{children:`PATCH`}),` before you launch.`]}),_jsxs(_components.p,{children:[`To start from what the dashboard offers, read\n`,_jsx(_components.a,{href:`/api-reference/campaigns/defaults`,children:_jsx(_components.code,{children:`GET /campaigns/defaults`})}),`: the suggested settings\nresolved for your workspace — its own outcome IDs, its timezone and working week — in a\nshape you can send here as-is.`]})]}),`\n`,_jsx(Heading,{level:`2`,id:`the-full-journey`,children:`The full journey`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Create the draft`}),` — `,_jsx(_components.code,{children:`POST /campaigns`}),` with a `,_jsx(_components.code,{children:`name`}),`, the `,_jsx(_components.code,{children:`agent_id`}),` that will do the talking, optionally the `,_jsx(_components.code,{children:`from_phone_number_id`}),` to call from (left out, the campaign calls from the agent’s own number), a `,_jsx(_components.code,{children:`regulatory_basis`}),`, and at least one stop rule. `,_jsx(_components.code,{children:`from_phone_number_id`}),` can be your phone system’s number (`,_jsx(_components.code,{children:`provider: \"phone_system\"`}),`), and the campaign then calls out `,_jsx(_components.a,{href:`/concepts/sip-trunks#outbound-calls-through-the-extension`,children:`through your phone system`}),`; if its outbound calls pause, the campaign pauses with them (`,_jsx(_components.code,{children:`paused_config`}),`).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Enroll contacts`}),` — `,_jsx(_components.code,{children:`POST /campaigns/{id}/leads`}),` with `,_jsx(_components.code,{children:`lead_ids`}),` (leads you already have) and/or `,_jsx(_components.code,{children:`phone_numbers`}),` (numbers that become leads). Numbers on the do-not-call list are reported and skipped.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Tune it`}),` — `,_jsx(_components.code,{children:`PATCH /campaigns/{id}`}),` for pacing, attempt caps, stop rules, budget. Re-read with `,_jsx(_components.code,{children:`GET /campaigns/{id}`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Launch`}),` — `,_jsx(_components.code,{children:`POST /campaigns/{id}/launch`}),`. A preflight runs first and returns `,_jsx(_components.code,{children:`422 CAMPAIGN_NOT_READY`}),` with a specific reason when the campaign cannot dial. On success the status becomes `,_jsx(_components.code,{children:`running`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Watch it`}),` — `,_jsx(_components.code,{children:`GET /campaigns/{id}/stats`}),` for progress counters and `,_jsx(_components.code,{children:`last_tick_result`}),`, the machine-readable answer to “why is nothing happening right now”. `,_jsx(_components.code,{children:`GET /campaigns/{id}/leads`}),` for per-contact state.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Control it`}),` — `,_jsx(_components.code,{children:`POST /campaigns/{id}/pause`}),`, `,_jsx(_components.code,{children:`/resume`}),`, `,_jsx(_components.code,{children:`/stop`}),` (terminal), or `,_jsx(_components.code,{children:`DELETE /campaigns/{id}`}),` to archive.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`testing-two-agents-on-one-campaign`,children:`Testing two agents on one campaign`}),`\n`,_jsx(_components.p,{children:`Give a campaign a second agent and it will run both against the same list.`}),`\n`,_jsx(CodeBlock,{filename:`Split the list 70/30`,numberOfLines:`5`,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:`5`,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:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"July reactivation\"`}),_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_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"6f1b2c3d-...\"`}),_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:` \"split\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"agent_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"9a4e7f10-...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"percent\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`30`}),_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:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`percent`}),` is the share the second agent takes.`]}),` `,_jsx(_components.code,{children:`agent_id`}),` keeps the rest,\nso the example above gives 30% of contacts to the new agent and 70% to the\nexisting one. `,_jsx(_components.code,{children:`{ \"split\": null }`}),` turns the test off.`]}),`\n`,_jsx(Heading,{level:`3`,id:`what-to-expect`,children:`What to expect`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`A contact keeps the agent it got.`}),` The assignment happens once, the first\ntime that contact is admitted, and every later attempt — every no-answer\nredial — uses the same agent. A retry is the same conversation continued, not\na fresh coin toss, so the comparison stays honest.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Changing the share later only moves contacts that have not been dialed\nyet.`}),` Raising `,_jsx(_components.code,{children:`percent`}),` mid-campaign does not re-assign anyone.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Changing an agent, or ending the test, does reach contacts already\ndialed.`}),` An assignment belongs to the test as it is configured now. Send\n`,_jsx(_components.code,{children:`\"split\": null`}),` and every contact goes back to the campaign’s own agent on its\nnext attempt; replace either agent and the contacts held by the one you\nremoved are assigned again across the pair you are running now. Only the two\nagents a campaign is currently running ever place its calls.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Both agents have to be launchable.`}),` Both need a maximum call duration, and\nthe second one has to be able to take calls; otherwise `,_jsx(_components.code,{children:`POST /campaigns/{id}/launch`}),` refuses and says which agent is the problem.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Switching an agent off is not how you end the test.`}),` If an agent that\ncontacts are already pinned to can no longer take calls, those contacts are\ndialed by the campaign’s own agent instead — the same fallback a phone number\nmakes — and those calls are recorded as version A, because that is who called.\nThe assignment itself is kept, so switching the agent back on returns its\ncontacts to it. To end the test, send `,_jsx(_components.code,{children:`\"split\": null`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Both agents are screened against your do-not-call list at enrolment.`}),` A\ncontact suppressed for either agent is reported as `,_jsx(_components.code,{children:`on_do_not_call`}),` and never\nenrolled, so a contact can never be assigned an agent that is not allowed to\ncall it.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Read the results`}),` with `,_jsx(_components.code,{children:`GET /calls?ab_variant=a`}),` and `,_jsx(_components.code,{children:`?ab_variant=b`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`refusals`,children:`Refusals`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`When`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`422 INVALID_SPLIT`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`split.percent`}),` outside 1–99, or `,_jsx(_components.code,{children:`split.agent_id`}),` is the same as `,_jsx(_components.code,{children:`agent_id`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`422 INVALID_SPLIT`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`split`}),` sent as anything other than an object or `,_jsx(_components.code,{children:`null`}),`, or carrying a key that is not `,_jsx(_components.code,{children:`agent_id`}),` / `,_jsx(_components.code,{children:`percent`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`400 CAMPAIGN_REQUEST_INVALID`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`agent_id`}),` or `,_jsx(_components.code,{children:`split.agent_id`}),` is not an agent in this workspace — it does not exist, belongs to another workspace, or has been archived: `,_jsx(_components.code,{children:`issues[]`}),` names it (`,_jsx(_components.code,{children:`agent_not_found`}),`, at `,_jsx(_components.code,{children:`/agent_id`}),` or `,_jsx(_components.code,{children:`/split/agent_id`}),`) beside every other problem in the body. It used to be a separate `,_jsx(_components.code,{children:`404 AGENT_NOT_FOUND`}),`, found only once the values were right.`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`a-campaign-call-is-an-ordinary-outbound-call`,children:`A campaign call is an ordinary outbound call`}),`\n`,_jsxs(_components.p,{children:[`A campaign hands calls to the same outbound queue that `,_jsx(_components.code,{children:`POST /calls`}),` uses, at the same weight. The pacing fields below control `,_jsx(_components.strong,{children:`how fast a campaign offers calls to that queue`}),` — they never buy priority over anything else in the workspace and they cannot raise your concurrency. If the queue is busy, a campaign waits its turn like any other call.`]}),`\n`,_jsxs(_components.p,{children:[`Dialing is also gated by your workspace calling hours (`,_jsx(_components.code,{children:`GET /call-windows`}),`) and by your credit balance, both re-checked continuously while the campaign runs.`]}),`\n`,_jsx(Heading,{level:`2`,id:`identity-and-targeting`,children:`Identity and targeting`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Suggested`}),_jsx(_components.th,{children:`Notes`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`—`}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`Required.`}),` Trimmed. Names do not have to be unique — “Follow-up” is a fine name for this month’s and last month’s, and a campaign is identified by its `,_jsx(_components.code,{children:`id`}),` everywhere that matters.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`description`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`null`})}),_jsx(_components.td,{children:`Free text for your own bookkeeping.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`agent_id`})}),_jsx(_components.td,{children:`uuid`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`null`})}),_jsxs(_components.td,{children:[`The agent that places the calls. Required before launch. The agent must have a positive `,_jsx(_components.code,{children:`max_call_duration_secs`}),` so worst-case spend is bounded.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`variables`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{}`})}),_jsxs(_components.td,{children:[`Values for the agent’s `,_jsx(_components.code,{children:`{{placeholders}}`}),` on every call this campaign places — the same value for every contact, except `,_jsx(_components.code,{children:`FirstName`}),` and `,_jsx(_components.code,{children:`FullName`}),`: each call fills those from its contact’s own name (the first word of it, and the whole of it), and the value here is what a contact with no name hears. Where the first word is not a name said alone — a household (`,_jsx(_components.code,{children:`משפחת כהן`}),`, `,_jsx(_components.code,{children:`Family Levi`}),`), a title (`,_jsx(_components.code,{children:`ד\"ר`}),`, `,_jsx(_components.code,{children:`Dr.`}),`), or half of a given name (`,_jsx(_components.code,{children:`בת שבע`}),`, `,_jsx(_components.code,{children:`Abu Ali`}),`) — `,_jsx(_components.code,{children:`{{FirstName}}`}),` is the whole name too. There is no per-contact override: for a business use `,_jsx(_components.code,{children:`{{FullName}}`}),` in the opening line, or store the name the way it should be said. String values only. `,_jsx(_components.code,{children:`CallerPhone`}),`, `,_jsx(_components.code,{children:`CurrentDate`}),`, `,_jsx(_components.code,{children:`CurrentDateTime`}),`, `,_jsx(_components.code,{children:`CurrentTime`}),`, `,_jsx(_components.code,{children:`CallDirection`}),` and `,_jsx(_components.code,{children:`Timezone`}),` are filled automatically and refused.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`from_phone_number_id`})}),_jsx(_components.td,{children:`uuid`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`null`})}),_jsxs(_components.td,{children:[`The number to call from: one you own (`,_jsx(_components.code,{children:`GET /phone-numbers`}),`) and that is active. Left out or `,_jsx(_components.code,{children:`null`}),`, the campaign calls from the agent’s own number — a number the agent calls from (its outbound agent, or either half of the number’s outbound split), else one it answers on; a Yappr number before one on your own Telnyx account. An A/B split calls from the first agent’s number for both halves. `,_jsx(_components.code,{children:`from_number`}),` in the answer is the number it will call from.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`split`})}),_jsx(_components.td,{children:`object | null`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`null`})}),_jsxs(_components.td,{children:[`Optional two-agent A/B test — `,_jsx(_components.code,{children:`{ \"agent_id\": \"…\", \"percent\": 30 }`}),`. `,_jsx(_components.code,{children:`percent`}),` is the share of contacts the `,_jsx(_components.strong,{children:`second`}),` agent takes; `,_jsx(_components.code,{children:`agent_id`}),` above takes the rest. See `,_jsx(_components.em,{children:`Testing two agents on one campaign`}),` below.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`regulatory_basis`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`null`})}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`Required before launch.`}),` `,_jsx(_components.code,{children:`lawful_basis_confirmed`}),` (a single attestation that you have consent or another lawful basis — what the dashboard records), or one of the specific bases `,_jsx(_components.code,{children:`consent`}),`, `,_jsx(_components.code,{children:`existing_customer`}),`, `,_jsx(_components.code,{children:`non_marketing`}),`, `,_jsx(_components.code,{children:`registry_screened`}),`. Recorded with the launch event as the record of why these people were called.`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`stop-rules-—-when-to-stop-calling-one-person`,children:`Stop rules — when to stop calling one person`}),`\n`,_jsx(_components.p,{children:`Two independent per-contact stop conditions apply, whichever fires first:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`max_attempts`})}),` — the attempt cap.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`The stop-disposition set`}),` — landing one of these outcomes retires that contact permanently. Anything else is retried until the cap.`]}),`\n`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Suggested`}),_jsx(_components.th,{children:`Notes`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`stop_disposition_ids`})}),_jsx(_components.td,{children:`uuid[]`}),_jsx(_components.td,{children:`the outcomes that settle a contact`}),_jsxs(_components.td,{children:[`Disposition `,_jsx(_components.strong,{children:`IDs`}),` (`,_jsx(_components.code,{children:`GET /dispositions`}),`), never labels — labels are renameable, IDs are stable. Every ID must belong to your workspace. The suggested set is your `,_jsx(_components.strong,{children:`Interested`}),`, `,_jsx(_components.strong,{children:`Appointment Set`}),`, `,_jsx(_components.strong,{children:`Not Interested`}),`, `,_jsx(_components.strong,{children:`Issue Resolved`}),`, `,_jsx(_components.strong,{children:`Transferred to a Person`}),`, `,_jsx(_components.strong,{children:`Wrong Number`}),` and `,_jsx(_components.strong,{children:`Do Not Call`}),` outcomes and every outcome your workspace added itself — everything but `,_jsx(_components.em,{children:`Callback Requested`}),` and the four Yappr assigns; `,_jsx(_components.code,{children:`GET /campaigns/defaults`}),` returns their IDs. Leave `,_jsx(_components.code,{children:`stop_disposition_ids`}),` out and the campaign is created with that set; send `,_jsx(_components.code,{children:`[]`}),` for none. The set is `,_jsx(_components.strong,{children:`copied when the campaign is created`}),`: an outcome added to the workspace afterwards does not join it. To re-apply the current suggested set to an existing campaign, send `,_jsx(_components.code,{children:`settings.stop_disposition_ids`}),` from `,_jsx(_components.code,{children:`GET /campaigns/defaults`}),` with `,_jsx(_components.a,{href:`/api-reference/campaigns/update`,children:_jsx(_components.code,{children:`PATCH /campaigns/{id}`})}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`stop_on_no_answer`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsx(_components.td,{children:`Retire a contact the first time nobody picks up.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`stop_on_voicemail`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsx(_components.td,{children:`Retire a contact when the call reaches voicemail.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`stop_on_unclassified`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsxs(_components.td,{children:[`What to do when the outcome that arrives is “no clear outcome” — the call happened but matched none of your outcomes. `,_jsx(_components.code,{children:`false`}),` retries, `,_jsx(_components.code,{children:`true`}),` retires. Not a timeout; see the note below.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`At least one of `,_jsx(_components.code,{children:`stop_disposition_ids`}),`, `,_jsx(_components.code,{children:`stop_on_no_answer`}),` or `,_jsx(_components.code,{children:`stop_on_voicemail`}),` must be set before launch. A campaign with no stop rule would call every contact until the attempt cap, so the preflight refuses it.`]}),`\n`,_jsxs(_components.p,{children:[`To stop calling people you have already spoken to, create a disposition for that outcome (`,_jsx(_components.code,{children:`POST /dispositions`}),`) and put its ID in `,_jsx(_components.code,{children:`stop_disposition_ids`}),`. There is no built-in “reached a human” rule: what counts as a real conversation differs per workspace, so it belongs in your own outcome list where you can see and change it.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Interested`}),` is a stop like any outcome you name: its ID is accepted, and a new campaign stops on it unless you leave it out. A contact who ends on it is not called again — they show on the campaign’s leads (`,_jsx(_components.code,{children:`GET /campaigns/{id}/leads`}),`) as `,_jsx(_components.code,{children:`completed_success`}),` with that outcome, and a follow-up on the agent can notify you.`]}),`\n`,_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`No Answer`}),`, `,_jsx(_components.code,{children:`Failed`}),`, `,_jsx(_components.code,{children:`Voicemail`}),` and `,_jsx(_components.code,{children:`Unclassified`}),` are refused in `,_jsx(_components.code,{children:`stop_disposition_ids`})]}),` (`,_jsx(_components.code,{children:`400`}),`, naming the outcome and the switch to use). The platform assigns them by itself — `,_jsx(_components.code,{children:`No Answer`}),` on every unanswered ring, `,_jsx(_components.code,{children:`Failed`}),` on every dial that did not go through, and `,_jsx(_components.code,{children:`Voicemail`}),` or `,_jsx(_components.code,{children:`Unclassified`}),` even on a call someone answered — so listing one retires the contact the first time it lands, before any retry. Use the `,_jsx(_components.code,{children:`stop_on_no_answer`}),` / `,_jsx(_components.code,{children:`stop_on_voicemail`}),` / `,_jsx(_components.code,{children:`stop_on_unclassified`}),` booleans instead: they are evaluated on the call outcome rather than on the label.`]}),`\n`,_jsxs(_components.p,{children:[`Categorization happens `,_jsx(_components.strong,{children:`after`}),` a call ends, not during it, so a contact sits in `,_jsx(_components.code,{children:`awaiting_disposition`}),` until its outcome lands. It is never re-dialed while in that state, and there is no deadline after which the platform decides without one.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`A call’s outcome is authoritative, and a contact is never advanced without one.`}),`\nOutcomes are assigned asynchronously after a call ends, so a contact sits in\n`,_jsx(_components.code,{children:`awaiting_disposition`}),` until its outcome arrives — however long that takes. Only that\ncontact waits; the pacer keeps admitting every other contact in the campaign. There is\nno timeout that decides on your behalf, because “we never learned what happened” is\nnot a basis for calling someone again.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`attempts-and-retries`,children:`Attempts and retries`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Suggested`}),_jsx(_components.th,{children:`Notes`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`max_attempts`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`3`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`1`}),`–`,_jsx(_components.code,{children:`999`}),`. Dial attempts per contact before it becomes `,_jsx(_components.code,{children:`exhausted`}),`. Set it as high as your follow-up actually goes.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`max_infra_retries`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`3`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`0`}),`–`,_jsx(_components.code,{children:`20`}),`. The safeguard — a count of retries, not money; the money limits are `,_jsx(_components.code,{children:`budget_cents`}),` below and the workspace’s monthly spending limit. It covers failures where the call never went out — nobody’s phone rang. These never consume a dial attempt and are never terminal for the contact. When `,_jsx(_components.strong,{children:`one contact’s`}),` call fails to go out more times than this, the `,_jsx(_components.strong,{children:`whole campaign`}),` pauses as `,_jsx(_components.code,{children:`paused_infra`}),` (`,_jsx(_components.code,{children:`pause_reason: call_placement_failures`}),`): calls already under way finish normally, every contact keeps its place and next attempt time, and nothing new is dialed until you resume.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`retry_no_answer_seconds`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`3600`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`30`}),`–`,_jsx(_components.code,{children:`604800`}),`. Wait before re-offering a contact nobody picked up. Also used when the call reached voicemail or a busy line.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`retry_completed_seconds`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`86400`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`60`}),`–`,_jsx(_components.code,{children:`604800`}),`. Wait before re-offering a contact whose call connected but did not hit a stop rule.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`randomize_retry_time`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsxs(_components.td,{children:[`Which time of day the retry lands on. `,_jsx(_components.code,{children:`false`}),` keeps the wait exact — a one-week wait retries at the same hour a week later. `,_jsx(_components.code,{children:`true`}),` picks a different hour inside the calling window, so repeat attempts do not always arrive at the same moment. Either way the retry is never earlier than the configured wait.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`double_dial_enabled`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsx(_components.td,{children:`Ring a second time shortly after an unanswered first ring. The pair counts as one attempt.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`double_dial_gap_seconds`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`90`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`10`}),`–`,_jsx(_components.code,{children:`3600`}),`. Gap between the two rings. Required before launch even when `,_jsx(_components.code,{children:`double_dial_enabled`}),` is `,_jsx(_components.code,{children:`false`}),`.`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`pacing`,children:`Pacing`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Suggested`}),_jsx(_components.th,{children:`Notes`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`max_calls_per_day`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`200`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`1`}),`–`,_jsx(_components.code,{children:`100000`}),`. Resets at midnight in your workspace timezone.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`min_seconds_between_calls`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`30`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`0`}),`–`,_jsx(_components.code,{children:`86400`}),`. Minimum spacing between two calls from this campaign.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`max_in_flight`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`2`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`1`}),`–`,_jsx(_components.code,{children:`8`}),`. How many calls this campaign may have outstanding at once. Self-restraint, not a reservation — it stops one campaign monopolising shared outbound capacity.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`calling_window`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{children:`workspace timezone, 09:00–18:00, working week`}),_jsxs(_components.td,{children:[`Optional per-campaign narrowing, `,_jsx(_components.code,{children:`{ tz, days: [0..6], start: \"HH:MM\", end: \"HH:MM\" }`}),`. `,_jsx(_components.code,{children:`tz`}),` is an IANA zone name and is `,_jsx(_components.strong,{children:`required`}),` whenever `,_jsx(_components.code,{children:`days`}),`, `,_jsx(_components.code,{children:`start`}),` or `,_jsx(_components.code,{children:`end`}),` is present — `,_jsx(_components.code,{children:`\"09:00-18:00\"`}),` says nothing until it says whose nine in the morning. `,_jsx(_components.code,{children:`days`}),` lists each day once, `,_jsx(_components.code,{children:`0`}),` (Sunday) to `,_jsx(_components.code,{children:`6`}),` (Saturday), and is never empty — leave it out to call on every day the workspace hours allow. `,_jsx(_components.code,{children:`start`}),` and `,_jsx(_components.code,{children:`end`}),` come together, `,_jsx(_components.code,{children:`00:00`}),`–`,_jsx(_components.code,{children:`23:59`}),`, and `,_jsx(_components.code,{children:`end`}),` is later than `,_jsx(_components.code,{children:`start`}),`: a window of zero minutes never opens, and one that passes midnight is not supported (the workspace calling hours work the same way). Leave it `,_jsx(_components.code,{children:`{}`}),` to follow the workspace calling hours, which gate dialing either way.`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`money-and-schedule`,children:`Money and schedule`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Suggested`}),_jsx(_components.th,{children:`Notes`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`budget_cents`})}),_jsx(_components.td,{children:`integer | null`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`null`})}),_jsxs(_components.td,{children:[`Positive integer, or `,_jsx(_components.code,{children:`null`}),` for no cap. Before each call the campaign holds that call at its worst case — twice the agent’s `,_jsx(_components.code,{children:`max_call_duration_secs`}),`, in minutes, times the per-minute rate (the longer of the two agents in an A/B test, at the highest per-minute price of any voice model, as `,_jsx(_components.a,{href:`/api-reference/billing/rates`,children:_jsx(_components.code,{children:`GET /billing/rates`})}),` lists them) — and pauses as `,_jsx(_components.code,{children:`paused_budget`}),` when spend `,_jsx(_components.strong,{children:`plus`}),` what is held for calls in flight `,_jsx(_components.strong,{children:`plus`}),` that hold would pass the cap, so a campaign cannot overshoot by an entire live cohort. Counted in credits: a credit is one cent, so a 600 s agent at 30 credits a minute holds `,_jsx(_components.code,{children:`600`}),` and `,_jsx(_components.code,{children:`budget_cents: 600`}),` covers exactly one call. A cap below one call’s hold is refused (`,_jsx(_components.code,{children:`400`}),`), since it would pause the campaign before its first call; with no agent on the campaign yet there is nothing to hold against, and launch checks it instead.`]})]})})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`budget_cents`}),` is `,_jsx(_components.strong,{children:`this campaign’s lifetime budget`}),`: one number, spent down\nonce, never reset. It is not the workspace’s monthly spending limit\n(`,_jsx(_components.code,{children:`monthly_budget_cents`}),`, see\n`,_jsx(_components.a,{href:`/api-reference/billing/spending-limit`,children:_jsx(_components.code,{children:`PATCH /billing`})}),`), which covers every\noutbound call in the workspace and lifts by itself at the start of each\ncalendar month. Both can stop this campaign, and both report the same\n`,_jsx(_components.code,{children:`paused_budget`}),` status; `,_jsx(_components.code,{children:`pause_reason`}),` on the campaign says which —\n`,_jsx(_components.code,{children:`campaign_budget`}),` or `,_jsx(_components.code,{children:`workspace_spend_limit`}),`.`]})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Suggested`}),_jsx(_components.th,{children:`Notes`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`starts_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`null`})}),_jsxs(_components.td,{children:[`ISO-8601. No call is placed before this moment. It does `,_jsx(_components.strong,{children:`not`}),` launch the campaign for you: launch it whenever you like — it reads `,_jsx(_components.code,{children:`running`}),` and waits — and the first call goes out at `,_jsx(_components.code,{children:`starts_at`}),`, inside the calling window.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ends_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`null`})}),_jsxs(_components.td,{children:[`ISO-8601. No new call is placed from this moment; the campaign then moves to `,_jsx(_components.code,{children:`completed`}),`, and calls already under way finish. Must be later than `,_jsx(_components.code,{children:`starts_at`}),`, not already passed, and leave the `,_jsx(_components.code,{children:`calling_window`}),` at least one moment to open in: a Sunday-only window between a Friday and a Saturday is refused.`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`fields-you-cannot-set`,children:`Fields you cannot set`}),`\n`,_jsxs(_components.p,{children:[`Unknown keys are `,_jsx(_components.strong,{children:`rejected with 400`}),` rather than ignored, so a typo like `,_jsx(_components.code,{children:`stop_dispositions`}),` can never leave you believing you configured a kill switch that is not there.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`retry_rules`}),` is rejected too. It was an earlier structured retry matrix that the dialer never evaluated; the scalar fields above are the whole retry configuration.`]}),`\n`,_jsxs(_components.p,{children:[`These are engine-owned and rejected the same way: `,_jsx(_components.code,{children:`status`}),`, `,_jsx(_components.code,{children:`from_number`}),`, `,_jsx(_components.code,{children:`daily_admitted_count`}),`, `,_jsx(_components.code,{children:`daily_window_date`}),`, `,_jsx(_components.code,{children:`last_admitted_at`}),`, `,_jsx(_components.code,{children:`spent_cents`}),`, `,_jsx(_components.code,{children:`reserved_cents`}),`, `,_jsx(_components.code,{children:`estimate_cents`}),`, `,_jsx(_components.code,{children:`last_tick_at`}),`, `,_jsx(_components.code,{children:`last_tick_result`}),`, `,_jsx(_components.code,{children:`last_error`}),`, `,_jsx(_components.code,{children:`started_at`}),`, `,_jsx(_components.code,{children:`completed_at`}),`, `,_jsx(_components.code,{children:`total_leads`}),`, `,_jsx(_components.code,{children:`stats`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`example-request`,children:`Example request`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`28`,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:`28`,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:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.goyappr.com/campaigns\"`}),_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:` -H`}),_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:` -H`}),_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:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\": \"July renewals\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"description\": \"One call per renewal lead, up to three tries.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"agent_id\": \"7e8a91c1-0000-4c11-9a00-000000000001\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"from_phone_number_id\": \"2d9f4b6a-0000-4a3c-8b21-000000000002\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"regulatory_basis\": \"existing_customer\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"stop_disposition_ids\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"5c1d9a2e-0000-4b10-9f31-000000000010\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"5c1d9a2e-0000-4b10-9f31-000000000011\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"stop_on_no_answer\": false,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"stop_on_voicemail\": true,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"stop_on_unclassified\": false,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"max_attempts\": 3,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"max_infra_retries\": 3,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"retry_no_answer_seconds\": 3600,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"retry_completed_seconds\": 86400,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"randomize_retry_time\": true,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"double_dial_enabled\": false,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"double_dial_gap_seconds\": 90,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"max_calls_per_day\": 150,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"min_seconds_between_calls\": 45,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"max_in_flight\": 2,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"budget_cents\": 50000`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`example-response`,children:`Example response`}),`\n`,_jsxs(_components.p,{children:[`HTTP 201. `,_jsx(_components.code,{children:`agent`}),`, `,_jsx(_components.code,{children:`from_phone_number`}),` and `,_jsx(_components.code,{children:`stop_dispositions`}),` expand the IDs you supplied — each is the complete referenced object, abbreviated here for brevity.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`63`,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:`63`,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:`\"b3f1c0d2-5a44-4f0e-9c11-7a2e8d3f0001\"`}),_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:` \"company_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"00000000-0000-4000-8000-0000000000c1\"`}),_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:`\"July renewals\"`}),_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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"One call per renewal lead, up to three tries.\"`}),_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:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"draft\"`}),_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_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"7e8a91c1-0000-4c11-9a00-000000000001\"`}),_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:` \"from_phone_number_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2d9f4b6a-0000-4a3c-8b21-000000000002\"`}),_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:` \"from_number\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"+97233824127\"`}),_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:` \"calling_window\"`}),_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:` \"stop_disposition_ids\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"5c1d9a2e-0000-4b10-9f31-000000000010\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"5c1d9a2e-0000-4b10-9f31-000000000011\"`})}),`\n`,_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:` \"stop_on_no_answer\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_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:` \"stop_on_voicemail\"`}),_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:` \"stop_on_unclassified\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_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_attempts\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`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:` \"max_infra_retries\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`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:` \"retry_no_answer_seconds\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3600`}),_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:` \"retry_completed_seconds\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`86400`}),_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:` \"randomize_retry_time\"`}),_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:` \"double_dial_enabled\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_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:` \"double_dial_gap_seconds\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`90`}),_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_calls_per_day\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`150`}),_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:` \"min_seconds_between_calls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`45`}),_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_in_flight\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`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:` \"daily_admitted_count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_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:` \"daily_window_date\"`}),_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:` \"last_admitted_at\"`}),_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:` \"budget_cents\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`50000`}),_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:` \"estimate_cents\"`}),_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:` \"spent_cents\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_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:` \"reserved_cents\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_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:` \"regulatory_basis\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"existing_customer\"`}),_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:` \"last_tick_at\"`}),_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:` \"last_tick_result\"`}),_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:` \"last_error\"`}),_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:` \"starts_at\"`}),_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:` \"ends_at\"`}),_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:` \"started_at\"`}),_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:` \"completed_at\"`}),_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:` \"total_leads\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_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:` \"stats\"`}),_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-07-28T09:14:22.123Z\"`}),_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-07-28T09:14:22.123Z\"`}),_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_by\"`}),_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\"`}),_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:`\"7e8a91c1-0000-4c11-9a00-000000000001\"`}),_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:`\"Renewals agent\"`}),_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:`300`})]}),`\n`,_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:` \"from_phone_number\"`}),_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:`\"2d9f4b6a-0000-4a3c-8b21-000000000002\"`}),_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:` \"number\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"+972737000000\"`}),_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:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"active\"`})]}),`\n`,_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:` \"stop_dispositions\"`}),_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:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"5c1d9a2e-0000-4b10-9f31-000000000010\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"label\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Do Not Call\"`}),_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:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"5c1d9a2e-0000-4b10-9f31-000000000011\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"label\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Not Interested\"`}),_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`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`HTTP`}),_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`When`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CAMPAIGN_REQUEST_INVALID`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`name`}),` missing, empty, or not a string.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CAMPAIGN_REQUEST_INVALID`})}),_jsxs(_components.td,{children:[`Unknown or read-only field in the body. Each is in `,_jsx(_components.code,{children:`issues[]`}),` at its own `,_jsx(_components.code,{children:`path`}),` with `,_jsx(_components.code,{children:`code: \"field_unknown\"`}),` and the field it was likely meant to be (`,_jsx(_components.code,{children:`stop_dispositions`}),` → “Did you mean stop_disposition_ids?”); the message lists every writable field, and `,_jsx(_components.code,{children:`issues[]`}),` also names every other value the body gets wrong.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CAMPAIGN_REQUEST_INVALID`})}),_jsxs(_components.td,{children:[`A numeric field is outside its allowed range, a boolean field is not a boolean, or `,_jsx(_components.code,{children:`budget_cents`}),` is not a positive integer — each a JSON number, never a string such as `,_jsx(_components.code,{children:`\"15000\"`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CAMPAIGN_REQUEST_INVALID`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`regulatory_basis`}),` is not one of the five accepted values.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CAMPAIGN_REQUEST_INVALID`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`stop_disposition_ids`}),` is not an array of ID strings, holds something that is not an id — a label such as `,_jsx(_components.code,{children:`\"Not Interested\"`}),`, which used to answer `,_jsx(_components.code,{children:`500`}),` — or contains an ID that does not belong to your workspace (deleted, or another workspace’s: `,_jsx(_components.code,{children:`outcome_not_found`}),`). Each is named at its place, `,_jsx(_components.code,{children:`/stop_disposition_ids/\u003cn>`}),`; look the id up in `,_jsx(_components.code,{children:`GET /dispositions`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CAMPAIGN_REQUEST_INVALID`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`stop_disposition_ids`}),` holds one of the outcomes the platform assigns by itself — `,_jsx(_components.code,{children:`No Answer`}),`, `,_jsx(_components.code,{children:`Voicemail`}),`, `,_jsx(_components.code,{children:`Unclassified`}),`, `,_jsx(_components.code,{children:`Failed`}),`. Listed, one would retire the contact the first time it lands, before any retry (`,_jsx(_components.code,{children:`No Answer`}),` lands on every unanswered ring). The message names each and the switch to use instead: `,_jsx(_components.code,{children:`stop_on_no_answer`}),`, `,_jsx(_components.code,{children:`stop_on_voicemail`}),`, `,_jsx(_components.code,{children:`stop_on_unclassified`}),` (a failed dial is retried until `,_jsx(_components.code,{children:`max_attempts`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CAMPAIGN_REQUEST_INVALID`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`budget_cents`}),` is below one call’s hold — twice the longest `,_jsx(_components.code,{children:`max_call_duration_secs`}),` of the campaign’s agents, in minutes, times the per-minute rate — so the campaign would pause before its first call. The message names the hold. Checked when the request sends `,_jsx(_components.code,{children:`budget_cents`}),`, `,_jsx(_components.code,{children:`agent_id`}),` or `,_jsx(_components.code,{children:`split`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CAMPAIGN_REQUEST_INVALID`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`calling_window`}),` or `,_jsx(_components.code,{children:`variables`}),` is not an object, or a `,_jsx(_components.code,{children:`variables`}),` value is not a string.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CAMPAIGN_REQUEST_INVALID`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`calling_window`}),` sets `,_jsx(_components.code,{children:`days`}),`, `,_jsx(_components.code,{children:`start`}),` or `,_jsx(_components.code,{children:`end`}),` without a `,_jsx(_components.code,{children:`tz`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CAMPAIGN_REQUEST_INVALID`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`calling_window`}),` cannot be the window you meant, named in the message: a `,_jsx(_components.code,{children:`tz`}),` that is not a time zone (`,_jsx(_components.code,{children:`Mars/Olympus`}),`), `,_jsx(_components.code,{children:`days`}),` empty, repeated or outside `,_jsx(_components.code,{children:`0`}),`–`,_jsx(_components.code,{children:`6`}),`, a `,_jsx(_components.code,{children:`start`}),`/`,_jsx(_components.code,{children:`end`}),` that is not `,_jsx(_components.code,{children:`HH:MM`}),` (`,_jsx(_components.code,{children:`25:00`}),`) or sent without the other, an `,_jsx(_components.code,{children:`end`}),` not later than `,_jsx(_components.code,{children:`start`}),` — a window of zero minutes, or one passing midnight (`,_jsx(_components.code,{children:`18:00`}),`–`,_jsx(_components.code,{children:`09:00`}),`) — or a key other than `,_jsx(_components.code,{children:`tz`}),`, `,_jsx(_components.code,{children:`days`}),`, `,_jsx(_components.code,{children:`start`}),`, `,_jsx(_components.code,{children:`end`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CAMPAIGN_REQUEST_INVALID`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`starts_at`}),` or `,_jsx(_components.code,{children:`ends_at`}),` is not an ISO-8601 timestamp, `,_jsx(_components.code,{children:`ends_at`}),` has already passed, or `,_jsx(_components.code,{children:`ends_at`}),` is not later than `,_jsx(_components.code,{children:`starts_at`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CAMPAIGN_REQUEST_INVALID`})}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`calling_window`}),` never opens between `,_jsx(_components.code,{children:`starts_at`}),` (or now, if that is later) and `,_jsx(_components.code,{children:`ends_at`}),`, read on the window’s `,_jsx(_components.code,{children:`tz`}),` — for example a Sunday-only window with a Friday-to-Saturday range. Checked whenever the request sends `,_jsx(_components.code,{children:`calling_window`}),`, `,_jsx(_components.code,{children:`starts_at`}),` or `,_jsx(_components.code,{children:`ends_at`}),`, against the values stored for the ones it leaves out.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CAMPAIGN_REQUEST_INVALID`})}),_jsx(_components.td,{children:`Request body is not valid JSON.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CAMPAIGN_REQUEST_INVALID`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`from_phone_number_id`}),` is not an id, or not a phone number in this workspace — made up, another workspace’s, or released: `,_jsx(_components.code,{children:`issues[]`}),` names it (`,_jsx(_components.code,{children:`invalid_from_number`}),`, at `,_jsx(_components.code,{children:`/from_phone_number_id`}),`). Nothing was written. Send the `,_jsx(_components.code,{children:`id`}),` of one of your numbers as `,_jsx(_components.a,{href:`/api-reference/phone-numbers/list`,children:_jsx(_components.code,{children:`GET /phone-numbers`})}),` returns it. It used to be its own `,_jsx(_components.code,{children:`400 INVALID_FROM_NUMBER`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CAMPAIGN_REQUEST_INVALID`})}),_jsxs(_components.td,{children:[`No `,_jsx(_components.code,{children:`from_phone_number_id`}),`, and the agent has no number to call from: `,_jsx(_components.code,{children:`issues[]`}),` names it (`,_jsx(_components.code,{children:`invalid_from_number`}),`, at `,_jsx(_components.code,{children:`/from_phone_number_id`}),`) with `,_jsxs(_components.em,{children:[`The agent on this campaign has no phone number to call from. Make it the outbound agent of one of this workspace’s numbers (PATCH /phone-numbers/`,` with outbound_agent_id), or send from_phone_number_id with the id of the number to call from. GET /phone-numbers lists them.`]}),` Nothing was written. A draft with no `,_jsx(_components.code,{children:`agent_id`}),` yet is not refused for this.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`INSUFFICIENT_SCOPE`})}),_jsxs(_components.td,{children:[`API key lacks `,_jsx(_components.code,{children:`campaigns:manage`}),`.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Every `,_jsx(_components.code,{children:`CAMPAIGN_REQUEST_INVALID`}),` above names all the problems in the body at once: `,_jsx(_components.code,{children:`issues[]`}),` carries one `,_jsx(_components.code,{children:`{code, path, message}`}),` per field at fault — `,_jsx(_components.code,{children:`/max_attempts`}),`, `,_jsx(_components.code,{children:`/calling_window/days`}),`, `,_jsx(_components.code,{children:`/calling_window/start`}),`, each platform outcome at `,_jsx(_components.code,{children:`/stop_disposition_ids/\u003cn>`}),` (`,_jsx(_components.code,{children:`platform_stop_outcome`}),`), the number (`,_jsx(_components.code,{children:`invalid_from_number`}),`) and the agents (`,_jsx(_components.code,{children:`agent_not_found`}),`) — and `,_jsx(_components.code,{children:`error`}),` is the first of them with a count of the rest. `,_jsx(_components.code,{children:`[\"No Answer\", \"Voicemail\"]`}),` beside `,_jsx(_components.code,{children:`max_attempts: 0`}),` is three issues in one answer.`]})]})}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 a campaign","openapi":"POST /campaigns","description":"Creates the campaign in `draft`. Nothing is dialed until you enroll contacts and\ncall `POST /campaigns/{id}/launch`. Required scope `campaigns:manage`.\n\nOnly the fields below may be sent. Any other key — including every engine-owned\nfield (`status`, `spent_cents`, `daily_admitted_count`, `last_tick_result`, …) and\nevery typo — is rejected with `400` listing the writable set.\n\n**No configuration field has a default but `stop_disposition_ids`**, which takes the\nsuggested stop set when left out. The `example` values show what the dashboard\nprefills, but any other field you omit stays `null` and `launch` refuses with\n`422 CAMPAIGN_NOT_READY` naming it. This is deliberate: how many times to call\nsomeone, and how often, are decisions the platform will not make on your behalf.\n`GET /campaigns/defaults` returns the dashboard's suggested settings, resolved for\nthis workspace, ready to send here. Send every field on create, or fill the gaps\nwith `PATCH` before launching.\n","href":"/api-reference/campaigns/create"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"The full journey","slug":"the-full-journey","depth":2,"children":[]},{"title":"Testing two agents on one campaign","slug":"testing-two-agents-on-one-campaign","depth":2,"children":[{"title":"What to expect","slug":"what-to-expect","depth":3,"children":[]},{"title":"Refusals","slug":"refusals","depth":3,"children":[]}]},{"title":"A campaign call is an ordinary outbound call","slug":"a-campaign-call-is-an-ordinary-outbound-call","depth":2,"children":[]},{"title":"Identity and targeting","slug":"identity-and-targeting","depth":2,"children":[]},{"title":"Stop rules — when to stop calling one person","slug":"stop-rules-—-when-to-stop-calling-one-person","depth":2,"children":[]},{"title":"Attempts and retries","slug":"attempts-and-retries","depth":2,"children":[]},{"title":"Pacing","slug":"pacing","depth":2,"children":[]},{"title":"Money and schedule","slug":"money-and-schedule","depth":2,"children":[]},{"title":"Fields you cannot set","slug":"fields-you-cannot-set","depth":2,"children":[]},{"title":"Example request","slug":"example-request","depth":2,"children":[]},{"title":"Example response","slug":"example-response","depth":2,"children":[]},{"title":"Errors","slug":"errors","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Create campaign","description":"Creates the campaign in `draft`. Nothing is dialed until you enroll contacts and\ncall `POST /campaigns/{id}/launch`. Required scope `campaigns:manage`.\n\nOnly the fields below may be sent. Any other key — including every engine-owned\nfield (`status`, `spent_cents`, `daily_admitted_count`, `last_tick_result`, …) and\nevery typo — is rejected with `400` listing the writable set.\n\n**No configuration field has a default but `stop_disposition_ids`**, which takes the\nsuggested stop set when left out. The `example` values show what the dashboard\nprefills, but any other field you omit stays `null` and `launch` refuses with\n`422 CAMPAIGN_NOT_READY` naming it. This is deliberate: how many times to call\nsomeone, and how often, are decisions the platform will not make on your behalf.\n`GET /campaigns/defaults` returns the dashboard's suggested settings, resolved for\nthis workspace, ready to send here. Send every field on create, or fill the gaps\nwith `PATCH` before launching.\n","operationId":"createCampaign","tags":["Campaigns"],"requestBody":"5c392cc9-5ae6-4299-bb40-75460d674cf3","responses":{"201":"e2a85e80-b4cd-4518-8e9c-2be5d3b7d781","400":"6fdb1f8b-bbb6-4601-a3a0-a5342721d060","401":"2bc3a858-0924-4e22-8eb0-ada93113e831","403":"a0d1e9af-446e-4b29-9e53-bcde7d6ff360","422":"95ccabd8-0506-48a5-b620-2d687551f2c3"},"method":"post","type":"path","servers":["dc0c5f7d-c0c3-40b9-9c53-ce2239f5b67d"],"security":["2767439e-f0c6-4cd4-a450-ba11a6ab8311"],"path":"/campaigns","baseUrlOptions":["https://api.goyappr.com"],"title":"Create campaign","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","example":"July reactivation","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"description":{"oneOf":[{"type":"string","uniqueKey":"description.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"description.oneOf.1","typeLabel":"null"}],"uniqueKey":"description","typeLabel":"string | null"},"agent_id":{"type":"string","format":"uuid","description":"Required before launch.","uniqueKey":"agent_id","typeLabel":"string\u003cuuid>"},"from_phone_number_id":{"oneOf":[{"type":"string","format":"uuid","description":"The number to call from. Leave it out to call from the agent's own number (`from_number` in the answer says which); `400` with `invalid_from_number` when the agent has no number and none is sent.\n","uniqueKey":"from_phone_number_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"The number to call from. Leave it out to call from the agent's own number (`from_number` in the answer says which); `400` with `invalid_from_number` when the agent has no number and none is sent.\n","uniqueKey":"from_phone_number_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"from_phone_number_id","typeLabel":"string\u003cuuid> | null"},"split":{"oneOf":[{"type":"object","description":"Optional two-agent A/B test. `percent` is the share of contacts the SECOND agent takes; `agent_id` above takes the rest. Send `null` to turn it off. `422 INVALID_SPLIT` when the object has a key other than those two, the percent is outside 1–99, or the second agent is the same as `agent_id`. An agent that is not in this workspace is 404 AGENT_NOT_FOUND.\n","required":["agent_id","percent"],"properties":{"agent_id":{"type":"string","format":"uuid","description":"The second agent — the one being tested against the existing one.","isRequired":true,"uniqueKey":"split.oneOf.0.agent_id","typeLabel":"string\u003cuuid>"},"percent":{"type":"integer","minimum":1,"maximum":99,"description":"Share of calls routed to `agent_id`, 1–99.","isRequired":true,"uniqueKey":"split.oneOf.0.percent","typeLabel":"integer"}},"uniqueKey":"split.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"split.oneOf.1","typeLabel":"null"}],"uniqueKey":"split","typeLabel":"object | null"},"variables":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"variables.additionalProperties","typeLabel":"string"},"description":"Values for the agent's `{{placeholders}}` on every call this campaign places. `FirstName` and `FullName` are filled on each call from its contact's own name; the value here is what a contact with no name hears. String values only; the automatically filled names (`CallerPhone`, `CurrentDate`, `CurrentDateTime`, `CurrentTime`, `CallDirection`, `Timezone`) are refused.\n","uniqueKey":"variables","typeLabel":"object"},"calling_window":{"type":"object","additionalProperties":true,"description":"Optional narrowing of the workspace calling hours. Cannot widen them. `tz` (an IANA zone name) is required whenever `days`, `start` or `end` is present; `{}` inherits the workspace schedule. `days` 0–6, each once, never empty; `start`/`end` as HH:MM, together, `end` later than `start`.\n","uniqueKey":"calling_window","typeLabel":"object"},"stop_disposition_ids":{"type":"array","items":{"type":"string","format":"uuid","uniqueKey":"stop_disposition_ids.items.[INDEX]","typeLabel":"string\u003cuuid>"},"description":"Disposition IDs (never labels) that retire a contact permanently. Interested is accepted like any outcome you name. Do not include `No Answer`, `Failed`, `Voicemail` or `Unclassified` (refused) — use `stop_on_no_answer` / `stop_on_voicemail` / `stop_on_unclassified` instead. Left out, the campaign stops on the set `GET /campaigns/defaults` returns (Interested and the workspace's own outcomes included); `[]` for none.\n","uniqueKey":"stop_disposition_ids","typeLabel":"string\u003cuuid>[]"},"stop_on_no_answer":{"type":"boolean","example":false,"uniqueKey":"stop_on_no_answer","typeLabel":"boolean"},"stop_on_voicemail":{"type":"boolean","example":false,"uniqueKey":"stop_on_voicemail","typeLabel":"boolean"},"stop_on_unclassified":{"type":"boolean","example":false,"uniqueKey":"stop_on_unclassified","typeLabel":"boolean"},"max_attempts":{"type":"integer","minimum":1,"maximum":999,"example":3,"uniqueKey":"max_attempts","typeLabel":"integer"},"max_infra_retries":{"type":"integer","minimum":0,"maximum":20,"example":3,"uniqueKey":"max_infra_retries","typeLabel":"integer"},"retry_no_answer_seconds":{"type":"integer","minimum":30,"maximum":604800,"example":3600,"uniqueKey":"retry_no_answer_seconds","typeLabel":"integer"},"retry_completed_seconds":{"type":"integer","minimum":60,"maximum":604800,"example":86400,"uniqueKey":"retry_completed_seconds","typeLabel":"integer"},"randomize_retry_time":{"type":"boolean","example":false,"description":"false keeps a retry at the same time of day; true picks another hour inside the calling window.","uniqueKey":"randomize_retry_time","typeLabel":"boolean"},"double_dial_enabled":{"type":"boolean","example":false,"uniqueKey":"double_dial_enabled","typeLabel":"boolean"},"double_dial_gap_seconds":{"type":"integer","minimum":10,"maximum":3600,"example":90,"uniqueKey":"double_dial_gap_seconds","typeLabel":"integer"},"max_calls_per_day":{"type":"integer","minimum":1,"maximum":100000,"example":200,"uniqueKey":"max_calls_per_day","typeLabel":"integer"},"min_seconds_between_calls":{"type":"integer","minimum":0,"maximum":86400,"example":30,"uniqueKey":"min_seconds_between_calls","typeLabel":"integer"},"max_in_flight":{"type":"integer","minimum":1,"maximum":8,"example":2,"uniqueKey":"max_in_flight","typeLabel":"integer"},"budget_cents":{"oneOf":[{"type":"integer","minimum":1,"description":"Hard spend cap in credits (a credit is a cent). At least one call's hold once the campaign has an agent. Null for no cap.","uniqueKey":"budget_cents.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"Hard spend cap in credits (a credit is a cent). At least one call's hold once the campaign has an agent. Null for no cap.","uniqueKey":"budget_cents.oneOf.1","typeLabel":"null"}],"uniqueKey":"budget_cents","typeLabel":"integer | null"},"regulatory_basis":{"type":"string","enum":["lawful_basis_confirmed","consent","existing_customer","non_marketing","registry_screened"],"description":"Required before launch.","uniqueKey":"regulatory_basis","typeLabel":"enum\u003cstring>"},"starts_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"starts_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"starts_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"starts_at","typeLabel":"string\u003cdate-time> | null"},"ends_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"ends_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"ends_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"ends_at","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"name":"July reactivation","description":"\u003cstring>","agent_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","from_phone_number_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","split":{"agent_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","percent":50},"variables":{},"calling_window":{},"stop_disposition_ids":["3c90c3cc-0d44-4b50-8888-8dd25736052a"],"stop_on_no_answer":false,"stop_on_voicemail":false,"stop_on_unclassified":false,"max_attempts":3,"max_infra_retries":3,"retry_no_answer_seconds":3600,"retry_completed_seconds":86400,"randomize_retry_time":false,"double_dial_enabled":false,"double_dial_gap_seconds":90,"max_calls_per_day":200,"min_seconds_between_calls":30,"max_in_flight":2,"budget_cents":2,"starts_at":"2023-11-07T05:31:56Z","ends_at":"2023-11-07T05:31:56Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"e2a85e80-b4cd-4518-8e9c-2be5d3b7d781":{"description":"Campaign created in `draft`","content":{"application/json":{"schema":{"type":"object","description":"A paced bulk-outbound dialing job over enrolled contacts.\n\nA campaign is an **admission-only scheduler**. It decides *when* each enrolled\ncontact becomes eligible, then performs one ordinary outbound call — the same\nqueue, the same priority, and the same concurrency limits as a call placed with\n`POST /calls`. The pacing fields below only control how fast a campaign hands\ncalls to that queue; a campaign call never takes precedence over anything else.\n\nCampaigns are always created as `draft` and are launched with\n`POST /campaigns/{id}/launch`.\n\n**Two independent per-contact stop conditions** apply, whichever fires first:\n`max_attempts`, and the stop-disposition set (`stop_disposition_ids` plus the\n`stop_on_*` booleans). Landing a stop disposition retires that contact\npermanently; any other outcome retries until the attempt cap.\n\nFields marked *Engine-owned* are written by the campaign engine and are never\nwritable. Sending one on create or update returns `400`, as does any field name\nthat isn't on the writable list — a misspelled `stop_dispositions` is rejected\nrather than silently ignored, so you can never believe a kill switch is armed\nwhen it is not.\n","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"id","typeLabel":"string\u003cuuid>"},"company_id":{"type":"string","format":"uuid","uniqueKey":"company_id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","example":"July reactivation","uniqueKey":"name","typeLabel":"string"},"description":{"oneOf":[{"type":"string","uniqueKey":"description.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"description.oneOf.1","typeLabel":"null"}],"uniqueKey":"description","typeLabel":"string | null"},"status":{"type":"string","enum":["draft","scheduled","running","paused","paused_insufficient_credit","paused_budget","paused_infra","paused_config","completed","stopped","archived"],"description":"Engine-owned. Move it with the transition endpoints\n(`launch` / `pause` / `resume` / `stop`), never with `PATCH`.\n\n`draft` — created, not dialing.\n`scheduled` — not entered today. A campaign launched before its `starts_at`\nreads `running` and places no call until that moment.\n`running` — admitting contacts.\n`paused` — paused by you. A manual pause is **never** lifted automatically; it\nsurvives a top-up.\n`paused_insufficient_credit` — balance is below the minimum needed to place a\ncall. **Auto-resumes** shortly after the balance is topped up.\n`paused_budget` — `budget_cents` reached, or the workspace's own monthly\nspending limit reached; `pause_reason` says which.\n`paused_infra` — the safeguard: one contact's call could not be placed more\ntimes than `max_infra_retries` allows (nobody's phone rang). Calls already\nunder way finish normally and every contact keeps its place; nothing new is\ndialed until you resume. Not lifted automatically.\n`paused_config` — a permanent configuration problem (from-number no longer\nactive, agent missing a call-duration cap, no reachable calling window).\n`completed` — every enrolled contact reached a terminal state.\n`stopped` — stopped by you. Terminal.\n`archived` — soft-deleted by `DELETE /campaigns/{id}`. Terminal.\n","uniqueKey":"status","typeLabel":"enum\u003cstring>"},"pause_reason":{"oneOf":[{"type":"string","enum":["manual","insufficient_credit","campaign_budget","workspace_spend_limit","call_placement_failures","configuration",null],"description":"Why the campaign is paused, or `null` when it is not. Read-only.\n`manual` (`paused`), `insufficient_credit` (`paused_insufficient_credit`),\n`campaign_budget` or `workspace_spend_limit` (both `paused_budget` — this\ncampaign's `budget_cents`, or the workspace's monthly limit from\n`PATCH /billing`), `call_placement_failures` (`paused_infra`),\n`configuration` (`paused_config`).\n","uniqueKey":"pause_reason.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["manual","insufficient_credit","campaign_budget","workspace_spend_limit","call_placement_failures","configuration",null],"description":"Why the campaign is paused, or `null` when it is not. Read-only.\n`manual` (`paused`), `insufficient_credit` (`paused_insufficient_credit`),\n`campaign_budget` or `workspace_spend_limit` (both `paused_budget` — this\ncampaign's `budget_cents`, or the workspace's monthly limit from\n`PATCH /billing`), `call_placement_failures` (`paused_infra`),\n`configuration` (`paused_config`).\n","uniqueKey":"pause_reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"pause_reason","typeLabel":"enum\u003cstring> | null"},"agent_id":{"oneOf":[{"type":"string","format":"uuid","description":"Agent that runs the calls. Required before launch.","uniqueKey":"agent_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"Agent that runs the calls. Required before launch.","uniqueKey":"agent_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent_id","typeLabel":"string\u003cuuid> | null"},"agent":{"oneOf":[{"type":"object","description":"The Agent for `agent_id`. For a key holding `agents:read` it is the\nsame object, field for field, that `GET /agents/{id}` returns for it.\nFor a key without `agents:read` it is `{ id, name }` only: the\ncampaign never shows a key more of an agent than `GET /agents/{id}`\nwould.\n","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"agent.oneOf.0.id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.published_workflow_revision_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.inbound.phone_numbers.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"number":{"oneOf":[{"type":"string","example":"+972501234567","uniqueKey":"agent.oneOf.0.inbound.phone_numbers.items.[INDEX].number.oneOf.0","typeLabel":"string"},{"type":"null","example":"+972501234567","uniqueKey":"agent.oneOf.0.inbound.phone_numbers.items.[INDEX].number.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent.oneOf.0.inbound.phone_numbers.items.[INDEX].number","typeLabel":"string | null"},"friendly_name":{"oneOf":[{"type":"string","uniqueKey":"agent.oneOf.0.inbound.phone_numbers.items.[INDEX].friendly_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"agent.oneOf.0.inbound.phone_numbers.items.[INDEX].friendly_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent.oneOf.0.inbound.phone_numbers.items.[INDEX].friendly_name","typeLabel":"string | null"}},"uniqueKey":"agent.oneOf.0.inbound.phone_numbers.items.[INDEX]","typeLabel":"object"},"uniqueKey":"agent.oneOf.0.inbound.phone_numbers","typeLabel":"object[]"},"sip_endpoints":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"agent.oneOf.0.inbound.sip_endpoints.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"name":{"oneOf":[{"type":"string","uniqueKey":"agent.oneOf.0.inbound.sip_endpoints.items.[INDEX].name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"agent.oneOf.0.inbound.sip_endpoints.items.[INDEX].name.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent.oneOf.0.inbound.sip_endpoints.items.[INDEX].name","typeLabel":"string | null"}},"uniqueKey":"agent.oneOf.0.inbound.sip_endpoints.items.[INDEX]","typeLabel":"object"},"uniqueKey":"agent.oneOf.0.inbound.sip_endpoints","typeLabel":"object[]"}},"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.id","typeLabel":"string"},"type":{"type":"string","enum":["start"],"isRequired":true,"uniqueKey":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.position.x","typeLabel":"number"},"y":{"type":"number","uniqueKey":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.position.y","typeLabel":"number"}},"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.greeting.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.is_literal","typeLabel":"boolean"},"next_step_id":{"oneOf":[{"type":"string","uniqueKey":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.next_step_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.next_step_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.auto_advance","typeLabel":"boolean"}},"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.id","typeLabel":"string"},"type":{"type":"string","enum":["conversation"],"isRequired":true,"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.transitions.items.[INDEX].next_step_id","typeLabel":"string"}},"uniqueKey":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.transitions.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.global_jump_description.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.global_jump_description","typeLabel":"string | null"},"name":{"type":"string","uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.position.x","typeLabel":"number"},"y":{"type":"number","uniqueKey":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.position.y","typeLabel":"number"}},"uniqueKey":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.position","typeLabel":"object"}},"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.id","typeLabel":"string"},"type":{"type":"string","enum":["tool_call"],"isRequired":true,"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.success_next_step_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.success_next_step_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.error_next_step_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.error_next_step_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.custom.items.[INDEX].id","typeLabel":"string"},"label":{"type":"string","isRequired":true,"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.custom.items.[INDEX].equals","typeLabel":"string"},"next_step_id":{"type":"string","isRequired":true,"uniqueKey":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.custom.items.[INDEX].next_step_id","typeLabel":"string"}},"uniqueKey":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.custom.items.[INDEX]","typeLabel":"object"},"uniqueKey":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.custom","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions","typeLabel":"object"},"name":{"type":"string","uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.position.x","typeLabel":"number"},"y":{"type":"number","uniqueKey":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.position.y","typeLabel":"number"}},"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.tool_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.config_override.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.pre_fire_announcement.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.timeout_secs.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.timeout_secs","typeLabel":"number | null"}},"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.id","typeLabel":"string"},"type":{"type":"string","enum":["transfer"],"isRequired":true,"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.global_jump_description.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.global_jump_description","typeLabel":"string | null"},"name":{"type":"string","uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.position.x","typeLabel":"number"},"y":{"type":"number","uniqueKey":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.position.y","typeLabel":"number"}},"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.transfer_to.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.transfer_message.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.transfer_method.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.pbx_feature_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.pbx_feature_code_hangup_after_secs.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.pbx_feature_code_hangup_after_secs","typeLabel":"integer | null"}},"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.id","typeLabel":"string"},"type":{"type":"string","enum":["end"],"isRequired":true,"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.global_jump_description.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.global_jump_description","typeLabel":"string | null"},"name":{"type":"string","uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.position.x","typeLabel":"number"},"y":{"type":"number","uniqueKey":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.position.y","typeLabel":"number"}},"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.farewell.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.farewell","typeLabel":"string | null"},"is_literal":{"type":"boolean","default":false,"uniqueKey":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.is_literal","typeLabel":"boolean"}},"uniqueKey":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"agent.oneOf.0.flow_config.oneOf.0.nodes","typeLabel":"object[]"},"flow_config_version":{"type":"string","default":"1","uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.flow_config.oneOf.0.metadata.custom_metadata_keys","typeLabel":"string[]"}},"uniqueKey":"agent.oneOf.0.flow_config.oneOf.0.metadata","typeLabel":"object"}},"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.flow_config.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.system_prompt.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent.oneOf.0.system_prompt","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","uniqueKey":"agent.oneOf.0.description.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"agent.oneOf.0.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.model.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.background_sound.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.greeting_message.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent.oneOf.0.greeting_message","typeLabel":"string | null"},"agent_speaks_first":{"type":"boolean","uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.idle_reminder_text.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.lead_memory_enabled","typeLabel":"boolean"},"noise_cancellation_enabled":{"type":"boolean","uniqueKey":"agent.oneOf.0.noise_cancellation_enabled","typeLabel":"boolean"},"is_active":{"type":"boolean","uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.webhook_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.webhook_events.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"agent.oneOf.0.webhook_events","typeLabel":"enum\u003cstring>[]"},"configured_webhook_header_names":{"type":"array","readOnly":true,"items":{"type":"string","uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.tools.items.[INDEX]","typeLabel":"object"},"uniqueKey":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.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":"agent.oneOf.0.extraction_parameters.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"agent.oneOf.0.extraction_parameters.items.[INDEX]","typeLabel":"object"},"uniqueKey":"agent.oneOf.0.extraction_parameters","typeLabel":"object[]"},"created_at":{"type":"string","format":"date-time","uniqueKey":"agent.oneOf.0.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","uniqueKey":"agent.oneOf.0.updated_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"agent.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"agent.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent","typeLabel":"object | null"},"split":{"oneOf":[{"type":"object","description":"The A/B test on this campaign's calls, or `null` when every contact is\ncalled by `agent_id`.\n\n**`percent` is the share of contacts that go to the SECOND agent**\n(`agent_id` inside the object). `agent_id` on the campaign takes the rest.\n\nA contact is assigned once, on its first admission, and keeps that agent\nfor every later attempt — a no-answer redial is the same conversation and\nnot a fresh coin toss. Changing `percent` afterwards therefore only affects\ncontacts that have not been dialed yet. Changing either agent, or sending\n`null`, does reach contacts already dialed: an assignment to an agent the\ncampaign no longer runs is released, and that contact is assigned again on\nits next attempt. Both agents must have a maximum call duration set and be\nable to take calls, or `launch` refuses.\n\nBoth agents are screened against the do-not-call list at enrolment, so a\ncontact is never assigned an agent that is not allowed to call it.\n","required":["agent_id","percent"],"properties":{"agent_id":{"type":"string","format":"uuid","description":"The second agent — the one being tested against the existing one.","isRequired":true,"uniqueKey":"split.oneOf.0.agent_id","typeLabel":"string\u003cuuid>"},"percent":{"type":"integer","minimum":1,"maximum":99,"description":"Share of calls routed to `agent_id`, 1–99.","isRequired":true,"uniqueKey":"split.oneOf.0.percent","typeLabel":"integer"}},"uniqueKey":"split.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"split.oneOf.1","typeLabel":"null"}],"uniqueKey":"split","typeLabel":"object | null"},"split_agent":{"oneOf":[{"type":"object","description":"The Agent for the second agent in `split`, read like `agent`: the object `GET /agents/{id}` returns for a key holding `agents:read`, `{ id, name }` for a key without it.","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"split_agent.oneOf.0.id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.published_workflow_revision_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.inbound.phone_numbers.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"number":{"oneOf":[{"type":"string","example":"+972501234567","uniqueKey":"split_agent.oneOf.0.inbound.phone_numbers.items.[INDEX].number.oneOf.0","typeLabel":"string"},{"type":"null","example":"+972501234567","uniqueKey":"split_agent.oneOf.0.inbound.phone_numbers.items.[INDEX].number.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_agent.oneOf.0.inbound.phone_numbers.items.[INDEX].number","typeLabel":"string | null"},"friendly_name":{"oneOf":[{"type":"string","uniqueKey":"split_agent.oneOf.0.inbound.phone_numbers.items.[INDEX].friendly_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"split_agent.oneOf.0.inbound.phone_numbers.items.[INDEX].friendly_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_agent.oneOf.0.inbound.phone_numbers.items.[INDEX].friendly_name","typeLabel":"string | null"}},"uniqueKey":"split_agent.oneOf.0.inbound.phone_numbers.items.[INDEX]","typeLabel":"object"},"uniqueKey":"split_agent.oneOf.0.inbound.phone_numbers","typeLabel":"object[]"},"sip_endpoints":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"split_agent.oneOf.0.inbound.sip_endpoints.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"name":{"oneOf":[{"type":"string","uniqueKey":"split_agent.oneOf.0.inbound.sip_endpoints.items.[INDEX].name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"split_agent.oneOf.0.inbound.sip_endpoints.items.[INDEX].name.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_agent.oneOf.0.inbound.sip_endpoints.items.[INDEX].name","typeLabel":"string | null"}},"uniqueKey":"split_agent.oneOf.0.inbound.sip_endpoints.items.[INDEX]","typeLabel":"object"},"uniqueKey":"split_agent.oneOf.0.inbound.sip_endpoints","typeLabel":"object[]"}},"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.id","typeLabel":"string"},"type":{"type":"string","enum":["start"],"isRequired":true,"uniqueKey":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.position.x","typeLabel":"number"},"y":{"type":"number","uniqueKey":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.position.y","typeLabel":"number"}},"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.greeting.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.is_literal","typeLabel":"boolean"},"next_step_id":{"oneOf":[{"type":"string","uniqueKey":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.next_step_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.next_step_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.0.auto_advance","typeLabel":"boolean"}},"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.id","typeLabel":"string"},"type":{"type":"string","enum":["conversation"],"isRequired":true,"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.transitions.items.[INDEX].next_step_id","typeLabel":"string"}},"uniqueKey":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.transitions.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.global_jump_description.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.global_jump_description","typeLabel":"string | null"},"name":{"type":"string","uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.position.x","typeLabel":"number"},"y":{"type":"number","uniqueKey":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.position.y","typeLabel":"number"}},"uniqueKey":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.1.position","typeLabel":"object"}},"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.id","typeLabel":"string"},"type":{"type":"string","enum":["tool_call"],"isRequired":true,"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.success_next_step_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.success_next_step_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.error_next_step_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.error_next_step_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.custom.items.[INDEX].id","typeLabel":"string"},"label":{"type":"string","isRequired":true,"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.custom.items.[INDEX].equals","typeLabel":"string"},"next_step_id":{"type":"string","isRequired":true,"uniqueKey":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.custom.items.[INDEX].next_step_id","typeLabel":"string"}},"uniqueKey":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.custom.items.[INDEX]","typeLabel":"object"},"uniqueKey":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions.custom","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.transitions","typeLabel":"object"},"name":{"type":"string","uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.position.x","typeLabel":"number"},"y":{"type":"number","uniqueKey":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.position.y","typeLabel":"number"}},"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.tool_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.config_override.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.pre_fire_announcement.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.timeout_secs.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.2.timeout_secs","typeLabel":"number | null"}},"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.id","typeLabel":"string"},"type":{"type":"string","enum":["transfer"],"isRequired":true,"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.global_jump_description.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.global_jump_description","typeLabel":"string | null"},"name":{"type":"string","uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.position.x","typeLabel":"number"},"y":{"type":"number","uniqueKey":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.position.y","typeLabel":"number"}},"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.transfer_to.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.transfer_message.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.transfer_method.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.pbx_feature_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.pbx_feature_code_hangup_after_secs.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.3.pbx_feature_code_hangup_after_secs","typeLabel":"integer | null"}},"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.id","typeLabel":"string"},"type":{"type":"string","enum":["end"],"isRequired":true,"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.global_jump_description.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.global_jump_description","typeLabel":"string | null"},"name":{"type":"string","uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.position.x","typeLabel":"number"},"y":{"type":"number","uniqueKey":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.position.y","typeLabel":"number"}},"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.farewell.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.farewell","typeLabel":"string | null"},"is_literal":{"type":"boolean","default":false,"uniqueKey":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4.is_literal","typeLabel":"boolean"}},"uniqueKey":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"split_agent.oneOf.0.flow_config.oneOf.0.nodes.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"split_agent.oneOf.0.flow_config.oneOf.0.nodes","typeLabel":"object[]"},"flow_config_version":{"type":"string","default":"1","uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.flow_config.oneOf.0.metadata.custom_metadata_keys","typeLabel":"string[]"}},"uniqueKey":"split_agent.oneOf.0.flow_config.oneOf.0.metadata","typeLabel":"object"}},"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.flow_config.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.system_prompt.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_agent.oneOf.0.system_prompt","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","uniqueKey":"split_agent.oneOf.0.description.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"split_agent.oneOf.0.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.model.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.background_sound.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.greeting_message.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_agent.oneOf.0.greeting_message","typeLabel":"string | null"},"agent_speaks_first":{"type":"boolean","uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.idle_reminder_text.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.lead_memory_enabled","typeLabel":"boolean"},"noise_cancellation_enabled":{"type":"boolean","uniqueKey":"split_agent.oneOf.0.noise_cancellation_enabled","typeLabel":"boolean"},"is_active":{"type":"boolean","uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.webhook_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.webhook_events.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"split_agent.oneOf.0.webhook_events","typeLabel":"enum\u003cstring>[]"},"configured_webhook_header_names":{"type":"array","readOnly":true,"items":{"type":"string","uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.tools.items.[INDEX]","typeLabel":"object"},"uniqueKey":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.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":"split_agent.oneOf.0.extraction_parameters.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"split_agent.oneOf.0.extraction_parameters.items.[INDEX]","typeLabel":"object"},"uniqueKey":"split_agent.oneOf.0.extraction_parameters","typeLabel":"object[]"},"created_at":{"type":"string","format":"date-time","uniqueKey":"split_agent.oneOf.0.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","uniqueKey":"split_agent.oneOf.0.updated_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"split_agent.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"split_agent.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_agent","typeLabel":"object | null"},"from_phone_number_id":{"oneOf":[{"type":"string","format":"uuid","description":"The number the campaign calls from, when it names one. `null` (the default) calls from the agent's own number: a number the agent calls from (its outbound agent, or either half of the number's outbound split), else one it answers on; a Yappr number before one on your own Telnyx account. An A/B split calls from the first agent's number for both halves. A create or edit that leaves it `null` on an agent with no number is `400 CAMPAIGN_REQUEST_INVALID` (`invalid_from_number` at `/from_phone_number_id`); at launch the number must still be active. If this number is released, the campaign calls from its agent's own number from then on.\n","uniqueKey":"from_phone_number_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"The number the campaign calls from, when it names one. `null` (the default) calls from the agent's own number: a number the agent calls from (its outbound agent, or either half of the number's outbound split), else one it answers on; a Yappr number before one on your own Telnyx account. An A/B split calls from the first agent's number for both halves. A create or edit that leaves it `null` on an agent with no number is `400 CAMPAIGN_REQUEST_INVALID` (`invalid_from_number` at `/from_phone_number_id`); at launch the number must still be active. If this number is released, the campaign calls from its agent's own number from then on.\n","uniqueKey":"from_phone_number_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"from_phone_number_id","typeLabel":"string\u003cuuid> | null"},"from_phone_number":{"oneOf":[{"type":"object","description":"The PhoneNumber for `from_phone_number_id`. For a key holding `phone_numbers:search` it is exactly the object GET /phone-numbers returns, and only that. For a key without it, it is `{ id, friendly_name, number: null }`: which number, and what it costs, are that scope's to show (`friendly_name` is null too when it spells the number). The carrier account's own plumbing (provider and order ids, SIP trunk/credential identifiers, SIP usernames and secrets) is never part of it.\n","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"from_phone_number.oneOf.0.id","typeLabel":"string\u003cuuid>"},"number":{"type":"string","example":"+972551234567","uniqueKey":"from_phone_number.oneOf.0.number","typeLabel":"string"},"friendly_name":{"oneOf":[{"type":"string","uniqueKey":"from_phone_number.oneOf.0.friendly_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"from_phone_number.oneOf.0.friendly_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"from_phone_number.oneOf.0.friendly_name","typeLabel":"string | null"},"provider":{"type":"string","description":"Where the number comes from: `telnyx` for a number bought from Yappr,\n`external` for a number in your own Telnyx account, added to a\n[carrier account](/api-reference/carrier-accounts/add-number), `phone_system`\nfor the business number of an extension endpoint that calls out through your own\nphone system ([register.outbound](/concepts/sip-trunks#outbound-calls-through-the-extension)):\nswitched on and off on that endpoint, never released here, no rent, and no calls in\n(they reach the endpoint's own agent; `inbound_agent_id` and `inbound_split` are\nrefused with `422 FIELD_NOT_ALLOWED`).\n","enum":["telnyx","external","phone_system"],"uniqueKey":"from_phone_number.oneOf.0.provider","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["active","pending_requirements","suspended"],"uniqueKey":"from_phone_number.oneOf.0.status","typeLabel":"enum\u003cstring>"},"is_active":{"type":"boolean","uniqueKey":"from_phone_number.oneOf.0.is_active","typeLabel":"boolean"},"inbound_agent_id":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"from_phone_number.oneOf.0.inbound_agent_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"from_phone_number.oneOf.0.inbound_agent_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"from_phone_number.oneOf.0.inbound_agent_id","typeLabel":"string\u003cuuid> | null"},"outbound_agent_id":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"from_phone_number.oneOf.0.outbound_agent_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"from_phone_number.oneOf.0.outbound_agent_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"from_phone_number.oneOf.0.outbound_agent_id","typeLabel":"string\u003cuuid> | null"},"inbound_split":{"oneOf":[{"type":"object","description":"The A/B test on incoming calls, or `null` when the number always\nanswers with `inbound_agent_id`.\n\n**`percent` is the share of calls that go to the SECOND agent**\n(`agent_id` below). The agent already bound to the number takes the\nrest — a `percent` of 30 means 70% of calls to `inbound_agent_id`\nand 30% to the second agent. The dashboard slider shows the first\nagent's share and stores `100 - slider`; the API always states the\nsecond agent's.\n\nWhich agent answers a given call is fixed for that call: it is\nderived from the carrier's call id, so a redelivered webhook and\nevery internal re-derivation agree. If the second agent cannot take\ncalls (inactive, an unpublished workflow, or a different kind of\nagent from the first), the call goes to the first agent and the call\nrecord says so.\n","required":["agent_id","percent"],"properties":{"agent_id":{"type":"string","format":"uuid","description":"The second agent — the one being tested against the existing one.","isRequired":true,"uniqueKey":"from_phone_number.oneOf.0.inbound_split.oneOf.0.agent_id","typeLabel":"string\u003cuuid>"},"percent":{"type":"integer","minimum":1,"maximum":99,"description":"Share of calls routed to `agent_id`, 1–99.","isRequired":true,"uniqueKey":"from_phone_number.oneOf.0.inbound_split.oneOf.0.percent","typeLabel":"integer"}},"uniqueKey":"from_phone_number.oneOf.0.inbound_split.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"from_phone_number.oneOf.0.inbound_split.oneOf.1","typeLabel":"null"}],"uniqueKey":"from_phone_number.oneOf.0.inbound_split","typeLabel":"object | null"},"outbound_split":{"oneOf":[{"type":"object","description":"The same thing for calls this number places: when `POST /calls` is\nsent without an `agent_id`, this split decides which agent calls.\nAn explicit `agent_id` always wins. BYOC SIP endpoints carry no\nsplit.\n","required":["agent_id","percent"],"properties":{"agent_id":{"type":"string","format":"uuid","description":"The second agent — the one being tested against the existing one.","isRequired":true,"uniqueKey":"from_phone_number.oneOf.0.outbound_split.oneOf.0.agent_id","typeLabel":"string\u003cuuid>"},"percent":{"type":"integer","minimum":1,"maximum":99,"description":"Share of calls routed to `agent_id`, 1–99.","isRequired":true,"uniqueKey":"from_phone_number.oneOf.0.outbound_split.oneOf.0.percent","typeLabel":"integer"}},"uniqueKey":"from_phone_number.oneOf.0.outbound_split.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"from_phone_number.oneOf.0.outbound_split.oneOf.1","typeLabel":"null"}],"uniqueKey":"from_phone_number.oneOf.0.outbound_split","typeLabel":"object | null"},"sip_inbound_configured":{"type":"boolean","description":"Whether carrier-side routing for incoming calls is in place. On an\n`external` number: whether the number is on Yappr's Call Control App\nin your Telnyx account, so calls to it reach Yappr.\n","uniqueKey":"from_phone_number.oneOf.0.sip_inbound_configured","typeLabel":"boolean"},"sip_outbound_configured":{"type":"boolean","uniqueKey":"from_phone_number.oneOf.0.sip_outbound_configured","typeLabel":"boolean"},"country_code":{"oneOf":[{"type":"string","uniqueKey":"from_phone_number.oneOf.0.country_code.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"from_phone_number.oneOf.0.country_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"from_phone_number.oneOf.0.country_code","typeLabel":"string | null"},"monthly_cost":{"oneOf":[{"type":"number","description":"The number's monthly price in cents, before VAT, as listed for it. Whether Yappr charges it is `rent`. Null on an `external` number.\n","uniqueKey":"from_phone_number.oneOf.0.monthly_cost.oneOf.0","typeLabel":"number"},{"type":"null","description":"The number's monthly price in cents, before VAT, as listed for it. Whether Yappr charges it is `rent`. Null on an `external` number.\n","uniqueKey":"from_phone_number.oneOf.0.monthly_cost.oneOf.1","typeLabel":"null"}],"uniqueKey":"from_phone_number.oneOf.0.monthly_cost","typeLabel":"number | null"},"rent":{"type":"object","description":"Whether Yappr charges the number's monthly rent. Returned by GET /phone-numbers and PATCH /phone-numbers/{id}; not part of a number embedded elsewhere (a campaign's from_phone_number, a carrier account's numbers).\n","required":["included","reason","monthly_price_cents","last_charged_at"],"properties":{"included":{"type":"boolean","description":"False when a rent was charged for the number in the last 40 days (each renewal is a phone_number row on GET /billing/transactions); true when none was.\n","isRequired":true,"uniqueKey":"from_phone_number.oneOf.0.rent.included","typeLabel":"boolean"},"reason":{"oneOf":[{"type":"string","enum":["own_carrier","not_charged","no_subscription","phone_system",null],"description":"Why the rent is included: `own_carrier` - a number in your own Telnyx account, whose rent Telnyx bills you; `not_charged` - a monthly subscription is on record but has charged nothing in the last 40 days; `no_subscription` - a Yappr number with no subscription (one Yappr set up for you); `phone_system` - a number that calls out through your own phone system, which Yappr does not rent. Null when the rent is charged.\n","isRequired":true,"uniqueKey":"from_phone_number.oneOf.0.rent.reason.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["own_carrier","not_charged","no_subscription","phone_system",null],"description":"Why the rent is included: `own_carrier` - a number in your own Telnyx account, whose rent Telnyx bills you; `not_charged` - a monthly subscription is on record but has charged nothing in the last 40 days; `no_subscription` - a Yappr number with no subscription (one Yappr set up for you); `phone_system` - a number that calls out through your own phone system, which Yappr does not rent. Null when the rent is charged.\n","isRequired":true,"uniqueKey":"from_phone_number.oneOf.0.rent.reason.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"from_phone_number.oneOf.0.rent.reason","typeLabel":"enum\u003cstring> | null"},"monthly_price_cents":{"oneOf":[{"type":"integer","description":"The monthly rent before VAT, paid by card. Null when included.","isRequired":true,"uniqueKey":"from_phone_number.oneOf.0.rent.monthly_price_cents.oneOf.0","typeLabel":"integer"},{"type":"null","description":"The monthly rent before VAT, paid by card. Null when included.","isRequired":true,"uniqueKey":"from_phone_number.oneOf.0.rent.monthly_price_cents.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"from_phone_number.oneOf.0.rent.monthly_price_cents","typeLabel":"integer | null"},"last_charged_at":{"oneOf":[{"type":"string","format":"date-time","description":"The newest rent charge in the last 40 days, or null.","isRequired":true,"uniqueKey":"from_phone_number.oneOf.0.rent.last_charged_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"The newest rent charge in the last 40 days, or null.","isRequired":true,"uniqueKey":"from_phone_number.oneOf.0.rent.last_charged_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"from_phone_number.oneOf.0.rent.last_charged_at","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"from_phone_number.oneOf.0.rent","typeLabel":"object"},"next_renewal_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the rent next renews: monthly, on the day and time the subscription started (the last day of a shorter month). Null when `rent.included`, and when the number's release is scheduled (`scheduled_release_at`): it does not renew. Returned by GET /phone-numbers and PATCH /phone-numbers/{id}.\n","uniqueKey":"from_phone_number.oneOf.0.next_renewal_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the rent next renews: monthly, on the day and time the subscription started (the last day of a shorter month). Null when `rent.included`, and when the number's release is scheduled (`scheduled_release_at`): it does not renew. Returned by GET /phone-numbers and PATCH /phone-numbers/{id}.\n","uniqueKey":"from_phone_number.oneOf.0.next_renewal_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"from_phone_number.oneOf.0.next_renewal_at","typeLabel":"string\u003cdate-time> | null"},"scheduled_release_at":{"oneOf":[{"type":"string","format":"date-time","description":"When a number released with POST /phone-numbers/{id}/release goes: the end of the period already paid for. Until then the number keeps working as before; POST /phone-numbers/{id}/keep undoes the release. Null when no release is scheduled.\n","uniqueKey":"from_phone_number.oneOf.0.scheduled_release_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When a number released with POST /phone-numbers/{id}/release goes: the end of the period already paid for. Until then the number keeps working as before; POST /phone-numbers/{id}/keep undoes the release. Null when no release is scheduled.\n","uniqueKey":"from_phone_number.oneOf.0.scheduled_release_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"from_phone_number.oneOf.0.scheduled_release_at","typeLabel":"string\u003cdate-time> | null"},"created_at":{"type":"string","format":"date-time","uniqueKey":"from_phone_number.oneOf.0.created_at","typeLabel":"string\u003cdate-time>"},"phone_system":{"oneOf":[{"type":"object","description":"The extension endpoint a `phone_system` number calls out through; `null` on every\nother number.\n","properties":{"sip_endpoint_id":{"type":"string","format":"uuid","uniqueKey":"from_phone_number.oneOf.0.phone_system.oneOf.0.sip_endpoint_id","typeLabel":"string\u003cuuid>"},"sip_endpoint_name":{"oneOf":[{"type":"string","uniqueKey":"from_phone_number.oneOf.0.phone_system.oneOf.0.sip_endpoint_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"from_phone_number.oneOf.0.phone_system.oneOf.0.sip_endpoint_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"from_phone_number.oneOf.0.phone_system.oneOf.0.sip_endpoint_name","typeLabel":"string | null"}},"uniqueKey":"from_phone_number.oneOf.0.phone_system.oneOf.0","typeLabel":"object"},{"type":"null","description":"The extension endpoint a `phone_system` number calls out through; `null` on every\nother number.\n","properties":{"sip_endpoint_id":{"type":"string","format":"uuid"},"sip_endpoint_name":{"oneOf":[{"type":"string"},{"type":"null"}]}},"uniqueKey":"from_phone_number.oneOf.0.phone_system.oneOf.1","typeLabel":"null"}],"uniqueKey":"from_phone_number.oneOf.0.phone_system","typeLabel":"object | null"},"carrier_account":{"oneOf":[{"type":"object","description":"The Telnyx account an `external` number calls through. `null` on numbers\nbought from Yappr, and for a key without `carrier_accounts:read` —\n`provider: external` still says the number is your own. On a number a\n[disconnect](/api-reference/carrier-accounts/delete) kept for its history,\n`status` is `disconnected`: `GET /carrier-accounts/{id}` no longer finds the\naccount, and its `id` is what removes the number\n(`DELETE /carrier-accounts/{id}/numbers/{phone_number_id}`).\n","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"from_phone_number.oneOf.0.carrier_account.oneOf.0.id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","uniqueKey":"from_phone_number.oneOf.0.carrier_account.oneOf.0.name","typeLabel":"string"},"provider":{"type":"string","enum":["telnyx"],"uniqueKey":"from_phone_number.oneOf.0.carrier_account.oneOf.0.provider","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["untested","active","paused","disconnected"],"uniqueKey":"from_phone_number.oneOf.0.carrier_account.oneOf.0.status","typeLabel":"enum\u003cstring>"}},"uniqueKey":"from_phone_number.oneOf.0.carrier_account.oneOf.0","typeLabel":"object"},{"type":"null","description":"The Telnyx account an `external` number calls through. `null` on numbers\nbought from Yappr, and for a key without `carrier_accounts:read` —\n`provider: external` still says the number is your own. On a number a\n[disconnect](/api-reference/carrier-accounts/delete) kept for its history,\n`status` is `disconnected`: `GET /carrier-accounts/{id}` no longer finds the\naccount, and its `id` is what removes the number\n(`DELETE /carrier-accounts/{id}/numbers/{phone_number_id}`).\n","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"provider":{"type":"string","enum":["telnyx"]},"status":{"type":"string","enum":["untested","active","paused","disconnected"]}},"uniqueKey":"from_phone_number.oneOf.0.carrier_account.oneOf.1","typeLabel":"null"}],"uniqueKey":"from_phone_number.oneOf.0.carrier_account","typeLabel":"object | null"},"carrier_state":{"oneOf":[{"type":"object","description":"Where an `external` number stands in your Telnyx account. `null` on\nnumbers bought from Yappr, and for a key without\n`carrier_accounts:read`. `state` is the first of these that applies:\n`telnyx_gone` (Telnyx no longer lists it: a sync found it gone, since\n`removed_at`; it cannot call), `removed` (Removed from this workspace: a\ndisconnect kept it for its call history, since `removed_at`; it may still be\nin your Telnyx account, it cannot call, and `carrier_account.status` is\n`disconnected`), `not_ready` (Telnyx lists it\nwith a status other than `active`), `paused` (its carrier account is\npaused), `blocked` (not configured, and a setting in `blockers` stops\nYappr answering it), `not_configured` (calls out work; calls in still\nring at `current_connection_name` until you configure it with\n`POST /carrier-accounts/{id}/numbers/{phone_number_id}/configure`) and\n`ready` (calls to it are answered here).\n","properties":{"state":{"type":"string","enum":["ready","not_configured","blocked","paused","not_ready","telnyx_gone","removed"],"uniqueKey":"from_phone_number.oneOf.0.carrier_state.oneOf.0.state","typeLabel":"enum\u003cstring>"},"telnyx_status":{"oneOf":[{"type":"string","description":"The number's status in Telnyx, as of the last sync. `null` until a sync has read it.","uniqueKey":"from_phone_number.oneOf.0.carrier_state.oneOf.0.telnyx_status.oneOf.0","typeLabel":"string"},{"type":"null","description":"The number's status in Telnyx, as of the last sync. `null` until a sync has read it.","uniqueKey":"from_phone_number.oneOf.0.carrier_state.oneOf.0.telnyx_status.oneOf.1","typeLabel":"null"}],"uniqueKey":"from_phone_number.oneOf.0.carrier_state.oneOf.0.telnyx_status","typeLabel":"string | null"},"current_connection_name":{"oneOf":[{"type":"string","description":"The connection the number is on in Telnyx, as of the last sync. `null` when it is on none.","uniqueKey":"from_phone_number.oneOf.0.carrier_state.oneOf.0.current_connection_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"The connection the number is on in Telnyx, as of the last sync. `null` when it is on none.","uniqueKey":"from_phone_number.oneOf.0.carrier_state.oneOf.0.current_connection_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"from_phone_number.oneOf.0.carrier_state.oneOf.0.current_connection_name","typeLabel":"string | null"},"previous_connection_name":{"oneOf":[{"type":"string","description":"The connection the number goes back to when you stop answering it here. `null` when it had none.","uniqueKey":"from_phone_number.oneOf.0.carrier_state.oneOf.0.previous_connection_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"The connection the number goes back to when you stop answering it here. `null` when it had none.","uniqueKey":"from_phone_number.oneOf.0.carrier_state.oneOf.0.previous_connection_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"from_phone_number.oneOf.0.carrier_state.oneOf.0.previous_connection_name","typeLabel":"string | null"},"blockers":{"type":"array","items":{"type":"string","enum":["forwarding_always","translated_number","tech_prefix"],"uniqueKey":"from_phone_number.oneOf.0.carrier_state.oneOf.0.blockers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Telnyx settings that stop Yappr answering the number. Configure is refused while any is on.\n`forwarding_always`: Telnyx forwards every call to it elsewhere. `translated_number`: Telnyx\ndelivers its calls as another number. `tech_prefix`: Telnyx adds a tech prefix to the dialled\nnumber, so Yappr could not match it. Change the setting in Telnyx, then sync.\n","uniqueKey":"from_phone_number.oneOf.0.carrier_state.oneOf.0.blockers","typeLabel":"enum\u003cstring>[]"},"notes":{"type":"array","items":{"type":"string","enum":["number_recording","forwarding_on_failure","call_screening","off_by_owner","off_until_active","off_while_paused"],"uniqueKey":"from_phone_number.oneOf.0.carrier_state.oneOf.0.notes.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Telnyx voice settings on the number that configuring leaves on (recording, forwarding when\nunanswered, call screening). They stay as they are when you configure it. When the number is\nswitched off (`is_active` is `false`, so it places no calls), one more note says why:\n`off_by_owner` (an owner or admin switched it off; it stays off until one switches it on),\n`off_until_active` (Telnyx did not list it as active; the sync switches it on once Telnyx does)\nor `off_while_paused` (its carrier account paused; turning the account back on switches it on).\n","uniqueKey":"from_phone_number.oneOf.0.carrier_state.oneOf.0.notes","typeLabel":"enum\u003cstring>[]"},"removed_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the number went out of use here, on a `telnyx_gone` or `removed` number. `null` on every other.","uniqueKey":"from_phone_number.oneOf.0.carrier_state.oneOf.0.removed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the number went out of use here, on a `telnyx_gone` or `removed` number. `null` on every other.","uniqueKey":"from_phone_number.oneOf.0.carrier_state.oneOf.0.removed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"from_phone_number.oneOf.0.carrier_state.oneOf.0.removed_at","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"from_phone_number.oneOf.0.carrier_state.oneOf.0","typeLabel":"object"},{"type":"null","description":"Where an `external` number stands in your Telnyx account. `null` on\nnumbers bought from Yappr, and for a key without\n`carrier_accounts:read`. `state` is the first of these that applies:\n`telnyx_gone` (Telnyx no longer lists it: a sync found it gone, since\n`removed_at`; it cannot call), `removed` (Removed from this workspace: a\ndisconnect kept it for its call history, since `removed_at`; it may still be\nin your Telnyx account, it cannot call, and `carrier_account.status` is\n`disconnected`), `not_ready` (Telnyx lists it\nwith a status other than `active`), `paused` (its carrier account is\npaused), `blocked` (not configured, and a setting in `blockers` stops\nYappr answering it), `not_configured` (calls out work; calls in still\nring at `current_connection_name` until you configure it with\n`POST /carrier-accounts/{id}/numbers/{phone_number_id}/configure`) and\n`ready` (calls to it are answered here).\n","properties":{"state":{"type":"string","enum":["ready","not_configured","blocked","paused","not_ready","telnyx_gone","removed"]},"telnyx_status":{"oneOf":[{"type":"string","description":"The number's status in Telnyx, as of the last sync. `null` until a sync has read it."},{"type":"null","description":"The number's status in Telnyx, as of the last sync. `null` until a sync has read it."}]},"current_connection_name":{"oneOf":[{"type":"string","description":"The connection the number is on in Telnyx, as of the last sync. `null` when it is on none."},{"type":"null","description":"The connection the number is on in Telnyx, as of the last sync. `null` when it is on none."}]},"previous_connection_name":{"oneOf":[{"type":"string","description":"The connection the number goes back to when you stop answering it here. `null` when it had none."},{"type":"null","description":"The connection the number goes back to when you stop answering it here. `null` when it had none."}]},"blockers":{"type":"array","items":{"type":"string","enum":["forwarding_always","translated_number","tech_prefix"]},"description":"Telnyx settings that stop Yappr answering the number. Configure is refused while any is on.\n`forwarding_always`: Telnyx forwards every call to it elsewhere. `translated_number`: Telnyx\ndelivers its calls as another number. `tech_prefix`: Telnyx adds a tech prefix to the dialled\nnumber, so Yappr could not match it. Change the setting in Telnyx, then sync.\n"},"notes":{"type":"array","items":{"type":"string","enum":["number_recording","forwarding_on_failure","call_screening","off_by_owner","off_until_active","off_while_paused"]},"description":"Telnyx voice settings on the number that configuring leaves on (recording, forwarding when\nunanswered, call screening). They stay as they are when you configure it. When the number is\nswitched off (`is_active` is `false`, so it places no calls), one more note says why:\n`off_by_owner` (an owner or admin switched it off; it stays off until one switches it on),\n`off_until_active` (Telnyx did not list it as active; the sync switches it on once Telnyx does)\nor `off_while_paused` (its carrier account paused; turning the account back on switches it on).\n"},"removed_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the number went out of use here, on a `telnyx_gone` or `removed` number. `null` on every other."},{"type":"null","format":"date-time","description":"When the number went out of use here, on a `telnyx_gone` or `removed` number. `null` on every other."}]}},"uniqueKey":"from_phone_number.oneOf.0.carrier_state.oneOf.1","typeLabel":"null"}],"uniqueKey":"from_phone_number.oneOf.0.carrier_state","typeLabel":"object | null"},"ownership_verified_at":{"oneOf":[{"type":"string","format":"date-time","description":"When your Telnyx API key last proved that this `external` number is an\nactive number in your account. `null` means that is not proven now: Telnyx\nno longer lists it as active, or its account was disconnected. The number is\nnot callable until a [test](/api-reference/carrier-accounts/test) or a sync\nfinds it again. Always `null` on numbers bought from Yappr.\n","uniqueKey":"from_phone_number.oneOf.0.ownership_verified_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When your Telnyx API key last proved that this `external` number is an\nactive number in your account. `null` means that is not proven now: Telnyx\nno longer lists it as active, or its account was disconnected. The number is\nnot callable until a [test](/api-reference/carrier-accounts/test) or a sync\nfinds it again. Always `null` on numbers bought from Yappr.\n","uniqueKey":"from_phone_number.oneOf.0.ownership_verified_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"from_phone_number.oneOf.0.ownership_verified_at","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"from_phone_number.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"from_phone_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"from_phone_number","typeLabel":"object | null"},"from_number":{"oneOf":[{"type":"string","description":"Engine-owned. E.164 number the campaign calls from: `from_phone_number`'s, or its agent's own number when `from_phone_number_id` is `null`. Written on create, edit and launch, and on every dialling round, so it follows the agent onto a new number; kept for audit even if the number is later released. `null` until the campaign has an agent or a number that can call, and for a key without `phone_numbers:search`, as `from_phone_number.number` is.\n","example":"+972551234567","uniqueKey":"from_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Engine-owned. E.164 number the campaign calls from: `from_phone_number`'s, or its agent's own number when `from_phone_number_id` is `null`. Written on create, edit and launch, and on every dialling round, so it follows the agent onto a new number; kept for audit even if the number is later released. `null` until the campaign has an agent or a number that can call, and for a key without `phone_numbers:search`, as `from_phone_number.number` is.\n","example":"+972551234567","uniqueKey":"from_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"from_number","typeLabel":"string | null"},"variables":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"variables.additionalProperties","typeLabel":"string"},"description":"Values for the agent's `{{placeholders}}` on every call this campaign places. `FirstName` and `FullName` are filled on each call from its contact's own name (the first word of it, and the whole of it; a household, a title or half of a given name keeps the whole name under `FirstName`: \"משפחת כהן\"); the value here is what a contact with no name hears. `{}` when none are set.\n","uniqueKey":"variables","typeLabel":"object"},"calling_window":{"type":"object","additionalProperties":true,"description":"Optional campaign-level narrowing of the workspace calling hours. Omit to inherit the workspace schedule (`GET /call-windows`). A campaign can only ever dial inside the workspace window — this field cannot widen it. `{ tz, days: [0..6], start: \"HH:MM\", end: \"HH:MM\" }`. `tz` is an IANA zone name and is required whenever `days`, `start` or `end` is present: hours without a zone are ambiguous, so they are refused rather than read against a zone you did not pick. `days` lists each day once and is never empty; `start` and `end` come together and `end` is later than `start` (no zero-minute window, none past midnight). Anything else is 400 CAMPAIGN_REQUEST_INVALID, naming the value.\n","uniqueKey":"calling_window","typeLabel":"object"},"stop_disposition_ids":{"type":"array","items":{"type":"string","format":"uuid","uniqueKey":"stop_disposition_ids.items.[INDEX]","typeLabel":"string\u003cuuid>"},"description":"Disposition **IDs** that retire a contact permanently when assigned — the\ncampaign's kill switch. Always IDs, never labels: labels are renameable, and a\nrename would silently disarm the rule.\n\n`No Answer`, `Failed`, `Voicemail` and `Unclassified` are refused here with\n`400`. The platform assigns them by itself (`No Answer` on every unanswered\nring), so listing one retires the contact the first time it lands, before any\nretry, and `Voicemail` or `Unclassified` can land on a call someone answered.\nUse `stop_on_no_answer`, `stop_on_voicemail` and `stop_on_unclassified` instead.\n\nMust contain dispositions belonging to your company; anything else is rejected\nwith `400`.\n","uniqueKey":"stop_disposition_ids","typeLabel":"string\u003cuuid>[]"},"stop_dispositions":{"type":"array","description":"Full Disposition objects for `stop_disposition_ids`.","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"stop_dispositions.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"label":{"type":"string","uniqueKey":"stop_dispositions.items.[INDEX].label","typeLabel":"string"},"color":{"type":"string","example":"#22c55e","description":"Always set. A disposition created without a colour is stored grey (`#6b7280`), the same default the dashboard's picker starts on. The format is not validated.\n","uniqueKey":"stop_dispositions.items.[INDEX].color","typeLabel":"string"},"position":{"type":"integer","description":"Display order, ascending. Not unique.","uniqueKey":"stop_dispositions.items.[INDEX].position","typeLabel":"integer"},"is_protected":{"type":"boolean","description":"Protected dispositions cannot be deleted. They can still be renamed, which stops the rules that set them by name from finding them.","uniqueKey":"stop_dispositions.items.[INDEX].is_protected","typeLabel":"boolean"},"created_at":{"type":"string","format":"date-time","uniqueKey":"stop_dispositions.items.[INDEX].created_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"stop_dispositions.items.[INDEX]","typeLabel":"object"},"uniqueKey":"stop_dispositions","typeLabel":"object[]"},"stop_on_no_answer":{"type":"boolean","example":false,"description":"Retire a contact the first time a call goes unanswered.","uniqueKey":"stop_on_no_answer","typeLabel":"boolean"},"stop_on_voicemail":{"type":"boolean","example":false,"description":"Retire a contact the first time a call reaches an answering machine.","uniqueKey":"stop_on_voicemail","typeLabel":"boolean"},"stop_on_unclassified":{"type":"boolean","example":false,"description":"What to do when the outcome that arrives is `Unclassified` — the call happened but could not be matched to any of your outcomes. `false` retries the contact, `true` retires it.\nThis is not a timeout. A call's outcome is authoritative and a contact is never advanced without one: if classification is slow, only that contact waits while the campaign keeps calling everyone else.\n","uniqueKey":"stop_on_unclassified","typeLabel":"boolean"},"max_attempts":{"type":"integer","minimum":1,"maximum":999,"example":3,"description":"Per-contact dial cap. One of the two independent stop conditions — the other is the stop-disposition set.\n","uniqueKey":"max_attempts","typeLabel":"integer"},"max_infra_retries":{"type":"integer","minimum":0,"maximum":20,"example":3,"description":"The safeguard: how many retries one contact gets after a platform-side failure — a call that never reached the person — before the whole campaign pauses as `paused_infra`. A count, not money: the money limits are `budget_cents` and the workspace's monthly spending limit. These retries do not consume `max_attempts` and are never terminal.\n","uniqueKey":"max_infra_retries","typeLabel":"integer"},"retry_no_answer_seconds":{"type":"integer","minimum":30,"maximum":604800,"example":3600,"description":"Delay before retrying a contact who did not answer.","uniqueKey":"retry_no_answer_seconds","typeLabel":"integer"},"retry_completed_seconds":{"type":"integer","minimum":60,"maximum":604800,"example":86400,"description":"Delay before retrying a contact whose call completed but landed on a non-stop disposition.","uniqueKey":"retry_completed_seconds","typeLabel":"integer"},"randomize_retry_time":{"type":"boolean","example":false,"description":"Which time of day a retry lands on. `false` keeps the wait exact, so a one-week wait retries at the same hour a week later. `true` picks a different hour inside the campaign's calling window, so repeat attempts do not always arrive at the same moment. The wait length itself is unchanged either way — a randomized retry is still never earlier than the configured wait.\n","uniqueKey":"randomize_retry_time","typeLabel":"boolean"},"double_dial_enabled":{"type":"boolean","example":false,"description":"Ring a second time shortly after an unanswered first ring.","uniqueKey":"double_dial_enabled","typeLabel":"boolean"},"double_dial_gap_seconds":{"type":"integer","minimum":10,"maximum":3600,"example":90,"description":"Gap between the two rings when `double_dial_enabled` is true.","uniqueKey":"double_dial_gap_seconds","typeLabel":"integer"},"max_calls_per_day":{"type":"integer","minimum":1,"maximum":100000,"example":200,"description":"Daily admission cap, counted against the workspace timezone day.","uniqueKey":"max_calls_per_day","typeLabel":"integer"},"min_seconds_between_calls":{"type":"integer","minimum":0,"maximum":86400,"example":30,"description":"Minimum spacing between two calls handed to the queue by this campaign.","uniqueKey":"min_seconds_between_calls","typeLabel":"integer"},"max_in_flight":{"type":"integer","minimum":1,"maximum":8,"example":2,"description":"Calls this campaign may have live at once. Platform concurrency limits still apply on top — raising this does not buy the campaign extra capacity.\n","uniqueKey":"max_in_flight","typeLabel":"integer"},"budget_cents":{"oneOf":[{"type":"integer","minimum":1,"description":"This campaign's LIFETIME spend cap, enforced against `spent_cents` + `reserved_cents` (credits are debited when a call ends, so in-flight cost has to count) plus the next call's hold: twice the agent's `max_call_duration_secs`, in minutes, times the per-minute rate (the highest per-minute price of any voice model, as `GET /billing/rates` lists them). Counted in credits: a credit is one cent. A cap below one call's hold is refused with `400` (it would pause the campaign before its first call), and launch refuses one stored before that check. `null` means no cap. On hit the campaign moves to `paused_budget`. Distinct from the workspace's calendar-month limit (`monthly_budget_cents`, PATCH /billing), which covers every outbound call in the workspace and resets each month: either can pause this campaign and both report `paused_budget`.\n","uniqueKey":"budget_cents.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"This campaign's LIFETIME spend cap, enforced against `spent_cents` + `reserved_cents` (credits are debited when a call ends, so in-flight cost has to count) plus the next call's hold: twice the agent's `max_call_duration_secs`, in minutes, times the per-minute rate (the highest per-minute price of any voice model, as `GET /billing/rates` lists them). Counted in credits: a credit is one cent. A cap below one call's hold is refused with `400` (it would pause the campaign before its first call), and launch refuses one stored before that check. `null` means no cap. On hit the campaign moves to `paused_budget`. Distinct from the workspace's calendar-month limit (`monthly_budget_cents`, PATCH /billing), which covers every outbound call in the workspace and resets each month: either can pause this campaign and both report `paused_budget`.\n","uniqueKey":"budget_cents.oneOf.1","typeLabel":"null"}],"uniqueKey":"budget_cents","typeLabel":"integer | null"},"regulatory_basis":{"oneOf":[{"type":"string","enum":["lawful_basis_confirmed","consent","existing_customer","non_marketing","registry_screened"],"description":"Your lawful basis for calling this list. **Required before launch** — recorded on the campaign's launch audit record alongside the enrolled count.\n`lawful_basis_confirmed` is what the dashboard records: a single attestation that the caller has consent or another lawful basis for everyone on the list. The four specific values are for callers that know which one applies.\n","uniqueKey":"regulatory_basis.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["lawful_basis_confirmed","consent","existing_customer","non_marketing","registry_screened"],"description":"Your lawful basis for calling this list. **Required before launch** — recorded on the campaign's launch audit record alongside the enrolled count.\n`lawful_basis_confirmed` is what the dashboard records: a single attestation that the caller has consent or another lawful basis for everyone on the list. The four specific values are for callers that know which one applies.\n","uniqueKey":"regulatory_basis.oneOf.1","typeLabel":"null"}],"uniqueKey":"regulatory_basis","typeLabel":"enum\u003cstring> | null"},"starts_at":{"oneOf":[{"type":"string","format":"date-time","description":"No call is placed before this moment. It does not launch the campaign: a campaign launched earlier reads `running` and waits.\n","uniqueKey":"starts_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"No call is placed before this moment. It does not launch the campaign: a campaign launched earlier reads `running` and waits.\n","uniqueKey":"starts_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"starts_at","typeLabel":"string\u003cdate-time> | null"},"ends_at":{"oneOf":[{"type":"string","format":"date-time","description":"No new call is placed from this moment; the campaign then moves to `completed`. Later than `starts_at`, not already passed, and the `calling_window` must open at least once before it.\n","uniqueKey":"ends_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"No new call is placed from this moment; the campaign then moves to `completed`. Later than `starts_at`, not already passed, and the `calling_window` must open at least once before it.\n","uniqueKey":"ends_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"ends_at","typeLabel":"string\u003cdate-time> | null"},"daily_admitted_count":{"type":"integer","description":"Engine-owned. Calls handed to the queue during the current day window.","uniqueKey":"daily_admitted_count","typeLabel":"integer"},"daily_window_date":{"oneOf":[{"type":"string","format":"date","description":"Engine-owned. Day `daily_admitted_count` belongs to.","uniqueKey":"daily_window_date.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","description":"Engine-owned. Day `daily_admitted_count` belongs to.","uniqueKey":"daily_window_date.oneOf.1","typeLabel":"null"}],"uniqueKey":"daily_window_date","typeLabel":"string\u003cdate> | null"},"last_admitted_at":{"oneOf":[{"type":"string","format":"date-time","description":"Engine-owned. When this campaign last handed a call to the queue.","uniqueKey":"last_admitted_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Engine-owned. When this campaign last handed a call to the queue.","uniqueKey":"last_admitted_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"last_admitted_at","typeLabel":"string\u003cdate-time> | null"},"estimate_cents":{"oneOf":[{"type":"integer","description":"Engine-owned. Reserved for a projected campaign cost; nothing computes it yet, so it is `null`.","uniqueKey":"estimate_cents.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Engine-owned. Reserved for a projected campaign cost; nothing computes it yet, so it is `null`.","uniqueKey":"estimate_cents.oneOf.1","typeLabel":"null"}],"uniqueKey":"estimate_cents","typeLabel":"integer | null"},"spent_cents":{"type":"integer","description":"Engine-owned. Settled spend so far.","uniqueKey":"spent_cents","typeLabel":"integer"},"reserved_cents":{"type":"integer","description":"Engine-owned. Worst-case cost of in-flight calls, held against `budget_cents` until they settle.","uniqueKey":"reserved_cents","typeLabel":"integer"},"last_tick_at":{"oneOf":[{"type":"string","format":"date-time","description":"Engine-owned. Last time the engine evaluated this campaign.","uniqueKey":"last_tick_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Engine-owned. Last time the engine evaluated this campaign.","uniqueKey":"last_tick_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"last_tick_at","typeLabel":"string\u003cdate-time> | null"},"last_tick_result":{"oneOf":[{"type":"string","description":"Engine-owned. Machine-readable answer to \"why is nothing happening right now\" — e.g. daily cap reached, outside the calling window, waiting on in-flight calls. `blocked` means another operation held this campaign during the last evaluation and it is retried on the next one. Full vocabulary on the campaign stats page.\n","uniqueKey":"last_tick_result.oneOf.0","typeLabel":"string"},{"type":"null","description":"Engine-owned. Machine-readable answer to \"why is nothing happening right now\" — e.g. daily cap reached, outside the calling window, waiting on in-flight calls. `blocked` means another operation held this campaign during the last evaluation and it is retried on the next one. Full vocabulary on the campaign stats page.\n","uniqueKey":"last_tick_result.oneOf.1","typeLabel":"null"}],"uniqueKey":"last_tick_result","typeLabel":"string | null"},"last_error":{"oneOf":[{"type":"string","description":"Engine-owned. Last error the engine recorded for this campaign.","uniqueKey":"last_error.oneOf.0","typeLabel":"string"},{"type":"null","description":"Engine-owned. Last error the engine recorded for this campaign.","uniqueKey":"last_error.oneOf.1","typeLabel":"null"}],"uniqueKey":"last_error","typeLabel":"string | null"},"started_at":{"oneOf":[{"type":"string","format":"date-time","description":"Engine-owned. First launch time.","uniqueKey":"started_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Engine-owned. First launch time.","uniqueKey":"started_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"started_at","typeLabel":"string\u003cdate-time> | null"},"completed_at":{"oneOf":[{"type":"string","format":"date-time","description":"Engine-owned. When the last contact reached a terminal state.","uniqueKey":"completed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Engine-owned. When the last contact reached a terminal state.","uniqueKey":"completed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"completed_at","typeLabel":"string\u003cdate-time> | null"},"total_leads":{"type":"integer","description":"Engine-owned. Contacts currently enrolled.","uniqueKey":"total_leads","typeLabel":"integer"},"stats":{"type":"object","additionalProperties":true,"description":"Engine-owned counter roll-up. Prefer `GET /campaigns/{id}/stats`.","uniqueKey":"stats","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>"},"created_by":{"oneOf":[{"type":"string","format":"uuid","description":"Null when the campaign was created via the API.","uniqueKey":"created_by.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"Null when the campaign was created via the API.","uniqueKey":"created_by.oneOf.1","typeLabel":"null"}],"uniqueKey":"created_by","typeLabel":"string\u003cuuid> | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","company_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"July reactivation","description":"\u003cstring>","status":"draft","pause_reason":"manual","agent_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","agent":{"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"},"split":{"agent_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","percent":50},"split_agent":{"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"},"from_phone_number_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","from_phone_number":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","number":"+972551234567","friendly_name":"\u003cstring>","provider":"telnyx","status":"active","is_active":true,"inbound_agent_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","outbound_agent_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","inbound_split":{"agent_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","percent":50},"outbound_split":{"agent_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","percent":50},"sip_inbound_configured":true,"sip_outbound_configured":true,"country_code":"\u003cstring>","monthly_cost":123,"rent":{"included":true,"reason":"own_carrier","monthly_price_cents":123,"last_charged_at":"2023-11-07T05:31:56Z"},"next_renewal_at":"2023-11-07T05:31:56Z","scheduled_release_at":"2023-11-07T05:31:56Z","created_at":"2023-11-07T05:31:56Z","phone_system":{"sip_endpoint_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","sip_endpoint_name":"\u003cstring>"},"carrier_account":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"\u003cstring>","provider":"telnyx","status":"untested"},"carrier_state":{"state":"ready","telnyx_status":"\u003cstring>","current_connection_name":"\u003cstring>","previous_connection_name":"\u003cstring>","blockers":["forwarding_always"],"notes":["number_recording"],"removed_at":"2023-11-07T05:31:56Z"},"ownership_verified_at":"2023-11-07T05:31:56Z"},"from_number":"+972551234567","variables":{},"calling_window":{},"stop_disposition_ids":["3c90c3cc-0d44-4b50-8888-8dd25736052a"],"stop_dispositions":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","label":"\u003cstring>","color":"#22c55e","position":123,"is_protected":true,"created_at":"2023-11-07T05:31:56Z"}],"stop_on_no_answer":false,"stop_on_voicemail":false,"stop_on_unclassified":false,"max_attempts":3,"max_infra_retries":3,"retry_no_answer_seconds":3600,"retry_completed_seconds":86400,"randomize_retry_time":false,"double_dial_enabled":false,"double_dial_gap_seconds":90,"max_calls_per_day":200,"min_seconds_between_calls":30,"max_in_flight":2,"budget_cents":2,"regulatory_basis":"lawful_basis_confirmed","starts_at":"2023-11-07T05:31:56Z","ends_at":"2023-11-07T05:31:56Z","daily_admitted_count":123,"daily_window_date":"2023-12-25","last_admitted_at":"2023-11-07T05:31:56Z","estimate_cents":123,"spent_cents":123,"reserved_cents":123,"last_tick_at":"2023-11-07T05:31:56Z","last_tick_result":"\u003cstring>","last_error":"\u003cstring>","started_at":"2023-11-07T05:31:56Z","completed_at":"2023-11-07T05:31:56Z","total_leads":123,"stats":{},"created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z","created_by":"3c90c3cc-0d44-4b50-8888-8dd25736052a"}}},"exampleType":"generated"}},"exampleType":"generated"},"6fdb1f8b-bbb6-4601-a3a0-a5342721d060":{"description":"CAMPAIGN_REQUEST_INVALID — unknown or read-only field, missing `name`, a numeric field out of range, a `regulatory_basis` outside the enum, a `stop_disposition_ids` entry that isn't one of your company's dispositions — or is not an id at all, such as a label — a `calling_window` that cannot open (unknown `tz`, empty or impossible `days`, `start`/`end` not HH:MM or `end` not after `start`), an `ends_at` already passed or not after `starts_at`, a `calling_window` that never opens between `starts_at` and `ends_at`, a platform outcome (`No Answer`, `Voicemail`, `Unclassified`, `Failed`) in `stop_disposition_ids`, a `budget_cents` below one call's hold, a `from_phone_number_id` that is not an id or not a phone number in this workspace, no `from_phone_number_id` for an `agent_id` that has no number to call from, an `agent_id` or `split.agent_id` that is not an agent here, or a body that is not JSON. Every problem is in the one answer: issues[] names each (field_unknown at each unknown field's pointer with the field it was likely meant to be, campaign_request_invalid for a value, platform_stop_outcome and outcome_not_found at /stop_disposition_ids/\u003cn>, invalid_from_number, agent_not_found) and error is the first with a count. Nothing was written.\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"},"2bc3a858-0924-4e22-8eb0-ada93113e831":{"description":"Unauthorized","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"},"a0d1e9af-446e-4b29-9e53-bcde7d6ff360":{"description":"Insufficient scope. For a key limited to some agents, also `AGENT_OUTSIDE_KEY_SCOPE` (an agent that is not the key's) or `API_KEY_AGENT_SCOPED` (a `from_phone_number_id` none of the key's agents answers or calls from).\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"},"95ccabd8-0506-48a5-b620-2d687551f2c3":{"description":"`INVALID_SPLIT` — the split is not an object or `null`, carries a key other than `agent_id` / `percent`, the share is outside 1–99, the second agent is the one already on the campaign. An agent field that names no agent in this workspace (`agent_id` or `split.agent_id`) is 400 `CAMPAIGN_REQUEST_INVALID`, with `agent_not_found` at that field in issues[].\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"}},"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 a campaign - Yappr","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-17T14:24:15.642Z","originalFileLocation":"api-reference/campaigns/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=\"Creates the campaign in draft. Nothing is dialed until you enroll contacts and call POST /campaigns/{id}/launch. Required scope campaigns:manage. Only the fields below may be sent. Any other key — including every engine-owned field (status, spent_cents, daily_admitted_count, last_tick_result, …) and every typo — is rejected with 400 listing the writable set. No configuration field has a default but stop_disposition_ids, which takes the suggested stop set when left out. The example values show what the dashboard prefills, but any other field you omit stays null and launch refuses with 422 CAMPAIGN_NOT_READY naming it. This is deliberate: how many times to call someone, and how often, are decisions the platform will not make on your behalf. GET /campaigns/defaults returns the dashboard\u0026#x27;s suggested settings, resolved for this workspace, ready to send here. Send every field on create, or fill the gaps with PATCH before launching.\">\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 a campaign - Yappr\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creates the campaign in draft. Nothing is dialed until you enroll contacts and call POST /campaigns/{id}/launch. Required scope campaigns:manage. Only the fields below may be sent. Any other key — including every engine-owned field (status, spent_cents, daily_admitted_count, last_tick_result, …) and every typo — is rejected with 400 listing the writable set. No configuration field has a default but stop_disposition_ids, which takes the suggested stop set when left out. The example values show what the dashboard prefills, but any other field you omit stays null and launch refuses with 422 CAMPAIGN_NOT_READY naming it. This is deliberate: how many times to call someone, and how often, are decisions the platform will not make on your behalf. GET /campaigns/defaults returns the dashboard\u0026#x27;s suggested settings, resolved for this workspace, ready to send here. Send every field on create, or fill the gaps with PATCH before launching.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Yappr\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.goyappr.com/api-reference/campaigns/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=Campaigns\u0026amp;title=Create+a+campaign\u0026amp;description=Creates+the+campaign+in+%60draft%60.+Nothing+is+dialed+until+you+enroll+contacts+and%0Acall+%60POST+%2Fcampaigns%2F%7Bid%7D%2Flaunch%60.+Required+scope+%60campaigns%3Amanage%60.%0A%0AOnly+th\u0026amp;theme=1423bf5e3b005ceb227321bc\u0026amp;signature=89760f1510830a99aee6652a17e1c3a8c8a760449cae5801aa688c8b219c31d9\">\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 a campaign - Yappr\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creates the campaign in draft. Nothing is dialed until you enroll contacts and call POST /campaigns/{id}/launch. Required scope campaigns:manage. Only the fields below may be sent. Any other key — including every engine-owned field (status, spent_cents, daily_admitted_count, last_tick_result, …) and every typo — is rejected with 400 listing the writable set. No configuration field has a default but stop_disposition_ids, which takes the suggested stop set when left out. The example values show what the dashboard prefills, but any other field you omit stays null and launch refuses with 422 CAMPAIGN_NOT_READY naming it. This is deliberate: how many times to call someone, and how often, are decisions the platform will not make on your behalf. GET /campaigns/defaults returns the dashboard\u0026#x27;s suggested settings, resolved for this workspace, ready to send here. Send every field on create, or fill the gaps with PATCH before launching.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://yappr.mintlify.site/_mintlify/api/og/v2?division=Campaigns\u0026amp;title=Create+a+campaign\u0026amp;description=Creates+the+campaign+in+%60draft%60.+Nothing+is+dialed+until+you+enroll+contacts+and%0Acall+%60POST+%2Fcampaigns%2F%7Bid%7D%2Flaunch%60.+Required+scope+%60campaigns%3Amanage%60.%0A%0AOnly+th\u0026amp;theme=1423bf5e3b005ceb227321bc\u0026amp;signature=89760f1510830a99aee6652a17e1c3a8c8a760449cae5801aa688c8b219c31d9\">\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/campaigns/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/campaigns/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/campaigns/create#webpage\",\"url\":\"https://docs.goyappr.com/api-reference/campaigns/create\",\"name\":\"Create a campaign\",\"description\":\"Creates the campaign in draft. Nothing is dialed until you enroll contacts and call POST /campaigns/{id}/launch. Required scope campaigns:manage. Only the fields below may be sent. Any other key — including every engine-owned field (status, spent_cents, daily_admitted_count, last_tick_result, …) and every typo — is rejected with 400 listing the writable set. No configuration field has a default but stop_disposition_ids, which takes the suggested stop set when left out. The example values show what the dashboard prefills, but any other field you omit stays null and launch refuses with 422 CAMPAIGN_NOT_READY naming it. This is deliberate: how many times to call someone, and how often, are decisions the platform will not make on your behalf. GET /campaigns/defaults returns the dashboard's suggested settings, resolved for this workspace, ready to send here. Send every field on create, or fill the gaps with PATCH before launching.\",\"dateModified\":\"2026-11-17T14:24:15.642Z\",\"isPartOf\":{\"@id\":\"https://docs.goyappr.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.goyappr.com/api-reference/campaigns/create#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.goyappr.com/api-reference/campaigns/create#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Campaigns\",\"item\":\"https://docs.goyappr.com/api-reference/campaigns/list\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a campaign\",\"item\":\"https://docs.goyappr.com/api-reference/campaigns/create\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.goyappr.com/api-reference/campaigns/create#apireference\",\"headline\":\"Create a campaign\",\"name\":\"Create a campaign\",\"description\":\"Creates the campaign in draft. Nothing is dialed until you enroll contacts and call POST /campaigns/{id}/launch. Required scope campaigns:manage. Only the fields below may be sent. Any other key — including every engine-owned field (status, spent_cents, daily_admitted_count, last_tick_result, …) and every typo — is rejected with 400 listing the writable set. No configuration field has a default but stop_disposition_ids, which takes the suggested stop set when left out. The example values show what the dashboard prefills, but any other field you omit stays null and launch refuses with 422 CAMPAIGN_NOT_READY naming it. This is deliberate: how many times to call someone, and how often, are decisions the platform will not make on your behalf. GET /campaigns/defaults returns the dashboard's suggested settings, resolved for this workspace, ready to send here. Send every field on create, or fill the gaps with PATCH before launching.\",\"url\":\"https://docs.goyappr.com/api-reference/campaigns/create\",\"mainEntityOfPage\":{\"@id\":\"https://docs.goyappr.com/api-reference/campaigns/create#webpage\"},\"dateModified\":\"2026-11-17T14:24:15.642Z\",\"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/campaigns/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","href":"/api-reference/agents/list"},{"title":"Create Agent","openapi":"POST /agents","href":"/api-reference/agents/create"},{"title":"Duplicate Agent","openapi":"POST /agents/{id}/duplicate","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","description":"The settings the dashboard's campaign wizard starts a new campaign from, resolved\nfor this workspace. `settings` can be sent to `POST /campaigns` as-is, together\nwith `name`, `agent_id`, `from_phone_number_id` and `regulatory_basis`.\n\nThese are suggestions the caller sends, not defaults the API applies: a\nname-only `POST /campaigns` stores every other configuration field `null`.\nThe exception is `stop_disposition_ids`, which a create that leaves it out\ntakes from here. The set is copied when the campaign is created: an outcome\nadded later stops only campaigns created after it; send this list with\n`PATCH /campaigns/{id}` to re-apply it. It includes every outcome the\nworkspace added itself, a \"call me back\" one included. Required scope `campaigns:read`.\n","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}","description":"Returns one campaign with `agent`, `from_phone_number` and `stop_dispositions`\nexpanded to the full objects they reference. An archived campaign answers `404`,\nthe same as one that never existed. Required scope `campaigns:read`.\n\nFor progress counters (how many contacts are pending, dialing, exhausted) use\n`GET /campaigns/{id}/stats` instead — this endpoint returns configuration and\nengine state, not a per-contact breakdown.\n","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 a campaign - 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"]}