Transfer call
client.live.sessions.refer(stringsessionID, SessionReferParams { target_uri } body, RequestOptionsoptions?): 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.
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' });