Calls
Join a live call
POST
Returns a LiveKit url and token for joining a call in progress from a browser over WebRTC. Pass both to the LiveKit browser SDK with room.connect(url, token). See Hand over a live call for an example.
mode | Behavior |
|---|---|
takeover (default) | The team member can speak. The agent stops speaking and listening when they connect. |
listen | The team member hears the call without being heard. The agent continues. |
When a team member who took over leaves, the agent's handover_end_action applies. The token must be used within 10 minutes. Requires the Live agent handoff add-on.
Requires the calls:write scope.
apiKeyheader
X-API-Key<token>Your API key, from Settings → API access in the dashboard.
call_id*stringThe call's call_id, from GET /calls or a campaign contact.
application/json- body
mode?stringDefault
"takeover"Value in
"takeover""listen"display_name?stringShown to other participants. Defaults to Agent.
Length
length <= 80Credentials to join the call.
application/json- response
call_id?stringFormat
uuidmode?stringValue in
"takeover""listen"url?stringLiveKit server URL.
token?stringAccess token for this call only.
room?stringidentity?stringYour participant identity in the call.
expires_at?stringJoin before this time.
Format
date-timecurl -X POST "https://example.com/calls/string/join" \ -H "Content-Type: application/json" \ -d '{ "mode": "takeover", "display_name": "Priya" }'{ "call_id": "88433d99-ead1-4ee2-86c1-7a2cbfd6d064", "mode": "takeover", "url": "wss://resonera-ai.livekit.cloud", "token": "eyJhbGciOiJIUzI1NiJ9...", "room": "campaign-3f1d9a52-88433d99", "identity": "handover-web-1a2b3c4d", "expires_at": "2026-10-05T09:22:40+00:00"}