Create a new call
Places a call to phone_number now, or at scheduled_at if that’s in the future. Send task or instructions to tell the agent what to do. A second request for the same number within 5 seconds returns the first call instead of dialing again.
Headers
Makes a retry safe. A 2xx response is stored for 24 hours per account, and a retry with the same key gets it back with Idempotent-Replay: true instead of running again. Errors aren't stored, so a retry after one runs fresh. The key isn't tied to a path or body: use a new key for every different request. A malformed key gets 400.
8 - 255^[A-Za-z0-9_-]+$"a1b2c3d4-e5f6-7890-abcd-ef0123456789"
Body
- Option 1
- Option 2
- Option 3
Caller ID the person sees. It must be an active or verified number on your account, or the call is refused with 422 from_number_not_owned. A scheduled call is checked again when it comes due and fails for good if the number has left your account. Omit it to call from the default number.
^\+[1-9]\d{1,14}$"+18005551234"
The agent's opening line. Without it there's no scripted opening; in legacy mode the agent speaks up on its own after about 7 seconds of silence. Placeholders like {{name}} fill from the lead; see Placeholders in the Campaigns concept page for the rules.
1"Hi, this is Rachel from Bright Dental calling about your appointment."
Seconds the agent waits after answer before its opening line, billed as talk time. Useful when people need a moment to get the phone to their ear. With first_sentence_wait_for_caller, it's the longest the agent stays silent before speaking anyway.
0 <= x <= 102
live runs one voice model that listens and speaks; it refuses block_interruption, bot_protection_enabled, stt_provider, stt_model, tts_provider, tts_model and requires_exact_greeting: true with 400, and ignores voice, transcript_correction_vocabulary and the other stt_* and tts_* tuning fields. legacy runs separate speech recognition, model and voice steps. When omitted, the call runs live, or legacy if you send any refused field, a voice, or a model other than the Live model.
legacy, live The language a live call starts in, or the one legacy speech recognition listens for (default en-US). Send a code, or a regional variant of one, listed under supported_languages in GET /v1/models and by your stt_model if set; anything else gets 400.
2 - 35"en-US"
Languages the caller may speak; each entry follows the stt_language rule. In live the agent speaks them. In legacy, the speech engine narrows detection to them, takes them as hints or ignores them, depending on the engine.
1 - 10 elements2 - 35Words and phrases speech recognition should catch, like product, company or person names. Legacy only, ignored in live, and read only by models with supports_vocabulary: true in GET /v1/models.
1 - 100 elements- string
- object
1How clearly sound must read as speech before it counts. Higher ignores more background noise; lower catches quiet speech but more noise. Legacy only, ignored in live and by engines without this setting in GET /v1/models.
0 <= x <= 10.8
Legacy only. Terms speech recognition tends to mishear (product names, jargon), so the model reads the caller's meaning from context. Each item is a string or an object with sounds_like hints. The safety review reads it like instructions (a deceptive term gets 422 PROMPT_SAFETY_FRAUD), and a list over 8,000 rendered characters gets 400.
1 - 100 elements- string
- object
1Keeps the agent talking when the caller speaks over it: speech during the middle of a reply is discarded. The caller can still cut in during a reply's first 1.5 seconds and its last 30%, so short replies aren't blocked. Legacy only, with the same mode rule as tts_provider.
false
Receives a notification when the call ends or fails, with the recording URL and summary when they exist. Must be an https URL on a public host. Addresses on a private or local network are refused. Up to 3 redirects are followed, each to another https URL on a public host.
"https://your-app.com/webhooks/call-complete"
Fields the model extracts from the transcript after the call. The values come back as analysis on the call and in the webhook. A call_outcome field also sets the call's disposition.
Give each field a type (date is ISO 8601), or a type plus a description to guide the model:
Your own key-value data, returned on call reads and webhooks. Placeholders like {{name}} never fill from here, and platform keys are dropped: every call setting, name, first_name, last_name, lead_name, company_name, lead_context, attempt_number, campaign_id, lead_id, live, billing, and any key with a reserved prefix such as stt_, tts_, transfer_ or internal. The one key that acts is from_number, which sets the caller ID when the top-level field is absent (same ownership check) and isn't returned.
Response
Accepted. status is queued once dialed, scheduled (with scheduled_at) for a future call, or pending while an identical request is still being placed.
queued: the call is dialing. pending: an identical request is still being set up, so poll GET /v1/calls/{call_id}. scheduled: it dials at scheduled_at. A request for the same number within 5 seconds returns the earlier call.
queued, pending, scheduled "queued"