Accept call
client.realtime.calls.accept(stringcallID , CallAcceptParams { type, audio, include, 11 more } body , RequestOptionsoptions ?): void
POST
/realtime/calls/{call_id}/acceptAccept an incoming SIP call and configure the realtime session that will handle it.
Accept 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.realtime.calls.accept('call_id', { type: 'realtime' });