Hand over a live call
Bring a team member into a call the agent is handling, from a browser or by phone.
A team member can join a call in progress, either from a browser or by phone. The caller stays on the same line and does not hear a transfer tone.
| Join from a browser | Transfer to a phone | |
|---|---|---|
| Endpoint | POST /calls/{call_id}/join | POST /calls/{call_id}/transfer |
| Team member uses | Your dashboard or CRM, with a headset | Any phone |
| Scope | calls:write | calls:dispatch |
| Additional cost | None | The call to the team member, billed as a standard call |
Before you begin
- The Live agent handoff add-on. Without it, both endpoints return
402. - A call in progress. Find active calls with
GET /calls?status=active.
Agent behavior during a handover
| Event | Behavior |
|---|---|
| The team member can speak | The agent stops speaking and listening. It stays on the call silently, so the call is logged and recorded as usual. |
| The team member leaves while the caller is connected | Set by the agent's handover_end_action. With resume (default), the agent returns to the call and follows handover_resume_prompt if set. With end, the agent says a closing line and ends the call. |
| The caller hangs up | The call ends for all participants. |
Join from a browser
Request the token from your server. The request requires your API key, which must not be exposed in the browser.
Request a token on your server
curl -X POST https://api.resonera.ai/v1/calls/88433d99-ead1-4ee2-86c1-7a2cbfd6d064/join \
-H "X-API-Key: $RESONERA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"mode": "takeover", "display_name": "Priya"}'{ "url": "wss://resonera-ai.livekit.cloud", "token": "eyJhbGciOiJIUzI1NiJ9...", "mode": "takeover", "expires_at": "2026-10-05T09:22:40+00:00" }The token is valid for 10 minutes and grants access to this call only.
Connect from the browser
Use the LiveKit browser SDK with the
returned url and token.
npm install livekit-clientimport { Room, RoomEvent, Track } from "livekit-client";
export async function joinCall(url: string, token: string, talk: boolean) {
const room = new Room();
room.on(RoomEvent.TrackSubscribed, (track) => {
if (track.kind === Track.Kind.Audio) document.body.appendChild(track.attach());
});
await room.connect(url, token);
if (talk) await room.localParticipant.setMicrophoneEnabled(true);
return room; // Call room.disconnect() to leave the call.
}Browsers play audio only after a user interaction, so call this function from a click handler.
Modes
mode | Behavior |
|---|---|
takeover | The team member speaks with the caller, and the agent stops speaking. |
listen | The team member hears the call without being heard, for coaching or review. The agent continues. To speak, leave and join again with takeover. |
Transfer to a phone
curl -X POST https://api.resonera.ai/v1/calls/88433d99-ead1-4ee2-86c1-7a2cbfd6d064/transfer \
-H "X-API-Key: $RESONERA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"phone_number": "+919812345678", "display_name": "Priya"}'The request returns 202 with {"status": "dialing"} while the team member's phone rings. The
agent tells the caller that a colleague is joining.
| Result | Behavior |
|---|---|
| Answered | The agent stops speaking, and the team member and caller speak directly. |
| Not answered within 30 seconds, or declined | The agent apologizes and continues the call. |
The call to the team member is placed from the agent's phone number, so the team member sees a
familiar caller ID. If the agent has no phone number assigned, the request returns 409.