ResoneraDocs

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 browserTransfer to a phone
EndpointPOST /calls/{call_id}/joinPOST /calls/{call_id}/transfer
Team member usesYour dashboard or CRM, with a headsetAny phone
Scopecalls:writecalls:dispatch
Additional costNoneThe 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

EventBehavior
The team member can speakThe 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 connectedSet 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 upThe 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-client
import { 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

modeBehavior
takeoverThe team member speaks with the caller, and the agent stops speaking.
listenThe 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.

ResultBehavior
AnsweredThe agent stops speaking, and the team member and caller speak directly.
Not answered within 30 seconds, or declinedThe 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.

On this page