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

Hang up session

client.live.sessions.hangup(stringsessionID, RequestOptionsoptions?): void
POST/live/sessions/{session_id}/hangup

End a SIP call identified by session_id.

ParametersExpand Collapse
sessionID: string

Hang up session

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.hangup('session_id');
Returns Examples