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}.Before you start
- Check conference pricing in
GET /prices: look forcall.conference.participant. Each participant is billed for their time in the conference on top of each call leg’s price. Ifcall.conference.participantis absent fromGET /prices, contact Sendblue to have a rate set — otherwise participant creation returns HTTP403(code20010), 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 (Setting
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):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.
Callback events
Your callback URL receives form-encoded events signed withX-Twilio-Signature:
- Call leg events:
initiated,ringing,answered,completed - Conference events: conference
start/end, plus per-participantjoin,leave, andholdchanges
Pricing
Each of the three legs is billed as an outbound call, plus each participant’s conference time at yourcall.conference.participant rate. Read each leg’s settled price via GET /calls/{call_id}, and inspect full ledger entries in GET /admin/billing/transactions.