Skip to main content
A warm handoff transfers a live caller from one agent to another without dropping them: the first agent puts the caller on hold, briefs the next agent privately, then disconnects while the caller and next agent keep talking.
The JSON API does not have native conference operations yet. This recipe uses the Twilio-compatible conference routes under /t on the same host and account. Every call leg created there is the exact same resource — inspect its status and settled price anytime with GET /calls/{call_id}.
In this pattern, all three parties are dialed into one conference room: the caller (A), the first agent (B), and the next agent (C).

Before you start

  • Check conference pricing in GET /prices: look for call.conference.participant. Each participant is billed for their time in the conference on top of each call leg’s price. If call.conference.participant is absent from GET /prices, contact Sendblue to have a rate set — otherwise participant creation returns HTTP 403 (code 20010), and nothing is dialed or charged.
  • Funds for three calls: a balance hold is placed for each call leg when dialed and settled when that leg ends.
  • Credentials for /t: these routes use HTTP Basic authentication with your account ID (AC…) as the username and account token as the password. Requests are form-encoded and paths end in .json.

Run the handoff

1

Bring the caller and first agent together

Add the caller as the first participant (this creates the conference):
Save the participant’s call ID (CA…) and the conference ID (CF…) from the response. Repeat the request with the first agent’s phone number and Label=agent, then wait until both have joined (either via join callback events or by listing participants):
Setting EndConferenceOnExit=false on every participant ensures the first agent can leave later without terminating the call for everyone else.
2

Hold the caller and bring in the next agent

Place the caller on hold:
Confirm the hold from the hold event or by reading the participant. Then add the next agent to the same conference (exact same call as step 1, using their phone number and Label=next-agent). Wait for them to join before starting the briefing — the caller hears none of it.
3

Reconnect the caller and release the first agent

Take the caller off hold, confirm they are unheld, and then end the first agent’s call:
The caller and the next agent stay connected in the same conference on their original call legs.
To cancel a handoff before completing it, take the caller off hold and end the next agent’s call instead.

Callback events

Your callback URL receives form-encoded events signed with X-Twilio-Signature:
  • Call leg events: initiated, ringing, answered, completed
  • Conference events: conference start/end, plus per-participant join, leave, and hold changes
Drive each handoff transition from these events rather than fixed delays.

Pricing

Each of the three legs is billed as an outbound call, plus each participant’s conference time at your call.conference.participant rate. Read each leg’s settled price via GET /calls/{call_id}, and inspect full ledger entries in GET /admin/billing/transactions.