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

Reject call

client.live.sessions.reject(stringsessionID, SessionRejectParams { status_code } body, RequestOptionsoptions?): void
POST/live/sessions/{session_id}/reject

Reject an incoming SIP call. Send a required SIP rejection status_code between 300 and 699.

ParametersExpand Collapse
sessionID: string
body: SessionRejectParams { status_code }

Reject 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.reject('session_id', { status_code: 486 });
Returns Examples