Skip to main content
Dial any allowed number from one of your workspace numbers and the agent takes the call the moment the callee picks up. Outbound calls are ordinary agent sessions with direction: "outbound": they appear in session history, they are stored and analyzed under the same per-agent settings as any other conversation, and they trigger the same webhooks plus one extra, phone_call.dial_finished, that reports how the dial attempt ended.

Phone numbers

Get a number that can place calls.

Webhooks

Get the dial outcome pushed to your backend.

Dynamic variables

Personalize the call with per-call values.

Place a call

1

Get a number that supports outbound

Any purchased number can place calls. An imported BYO number can too, once its termination is configured; the number object reports this as supports_outbound. The number you dial from is the caller ID the callee sees.
2

Publish your agent

Outbound calls run the agent’s published configuration, not the draft. Publish before dialing.
3

Create the phone call

The request returns 201 as soon as the dial is dispatched:
This endpoint requires an API key; there is no anonymous variant. See the API reference for the full schema.

Request fields

The session’s time and timezone context resolves from the destination number when the agent has no fixed timezone configured, so “tomorrow morning” means the callee’s morning.

Per-call SIP headers

When the from-number is an imported SIP number, sip_headers adds headers to the INVITE the platform sends through your termination, so your SBC or PBX can route the call or tag its CDR with a value that changes per call: a campaign id, an account id, a consent reference.
They follow the same rules as the number’s termination_headers and are merged over them, so a per-call header replaces a number-level header of the same name. The same headers ride on a warm-transfer consult leg placed during the call. Every INVITE through your termination also carries X-Fish-Session-Id with the session id, so the SIP side can be joined to the platform side without any header of your own. Platform-purchased numbers refuse sip_headers with 422 sip_headers_unsupported: the shared trunk terminates on the carrier and nothing downstream would read them. sip_headers is not metadata: it leaves the platform for your SIP network, while metadata is only echoed back to you.

Retry safely with an Idempotency-Key

Outbound dials spend money and ring real phones, so put an Idempotency-Key header on every create. For 24 hours, repeating the same key with the same body returns the call already placed instead of dialing again. The same key with a different body is refused with 422 idempotency_key_reuse, and a retry that races an in-flight first attempt gets 409 idempotency_key_conflict; back off and retry the same request. If the create fails with an ambiguous network error, retry with the same key: you get the placed session back if the first attempt went through.

Automated phone menus

A number you dial may be answered by an automated phone menu. With Press keys on, the agent can press keys to get through the menu and stay silent while it plays. See Press keys for the setting and how to prompt for it.

The dial outcome

Ringing is never billed; metering starts when the callee answers. A call that is never answered is not billed and not analyzed. You learn how the dial ended in either of two ways:
  • Push: subscribe to the phone_call.dial_finished webhook. It fires exactly once per outbound call, whether or not anyone picked up, before call.ended.
  • Poll: read GET /v1/agent/sessions/{session_id} until dial_status is set.
Four session fields carry the outcome: Once answered, sip_call_id holds the SIP Call-ID of the leg the platform placed. It is null while ringing and on unanswered dials. See Match calls with your SIP records.

Why a call did not connect

dial_status groups the carrier’s answer. dial_sip_status and dial_sip_reason are that answer as received, the code and the text sent with it: A call from an imported BYO number dials out through your own trunk, so the code is what your trunk or its carrier returned, and your carrier’s logs have the full story for that call. Codes worth recognizing on a failed call: Different refusals can share one code. A trunk may answer 403 with a reason about the caller ID on one call and about credentials on another, and dial_sip_reason tells them apart. The text is the carrier’s own wording and can change, so branch on dial_sip_status in code and read dial_sip_reason when diagnosing. The console shows the code and the reason next to the dial outcome on the conversation’s page, and the code in its call lists. Hover the code for what it usually means. On outbound sessions the attribution fields are person-centric: caller_number is the human you dialed and dialed_number is your workspace number. The same values reach the agent as {{system.caller_number}} and {{system.dialed_number}}, so a CRM lookup tool can use https://crm.example.com/contacts?phone={{system.caller_number}} without a per-call variable; see System variables. Everything else about the session (transcript, recording, post-call analysis, call.ended and call.analyzed webhooks, hang-up via POST /v1/agent/sessions/{session_id}/end) works exactly as for inbound calls.

Allowed destinations

Calls from purchased numbers can reach fixed-line and mobile numbers in the US, Canada, Japan, the UK, Italy, Australia and Mexico. Premium-rate numbers (for example UK 09, Japan 0570 and 0990, Australia 19, Mexico 900) and other service numbers such as toll-free lines are refused. The phone surcharge depends on the country and on whether the number is fixed-line or mobile; see the pricing page. Calls from imported BYO numbers dial out through your own trunk, so the country allowlist does not apply. Numbers that live on the platform can never be dialed, so an agent cannot call another agent’s number.

Errors

Unlike most Agents API errors, phone-call errors carry a machine-readable reason alongside the message:
502 and 503 follow the general guidance: retrying is safe, especially with an Idempotency-Key.

Going further

Webhooks

The phone_call.dial_finished payload in full.

Transfers

Hand an answered call to a human; consult legs dial from the same number.

Bring your own SIP numbers

Place calls through your own trunk with your number as caller ID.

Conversation history

Transcripts, recordings, and session listing filters.