Skip to content
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation
Theme

Transfer call

client.live.sessions.refer(sessionID, body, options?): void
POST
/live/sessions/{session_id}/refer

Transfer a SIP call to another destination. Supply a nonblank target_uri for the SIP Refer-To header.

Parameters
sessionID: string
body: SessionReferParams { target_uri }

Transfer call

import OpenAI from 'openai';

const client = new OpenAI({
  apiKey: process.env['OPENAI_API_KEY'], // This is the default and can be omitted
});

await client.live.sessions.refer('session_id', { target_uri: 'tel:+14155550123' });
Returns Examples