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

Hang up call

realtime.calls.hangup(call_id) -> void
POST
/realtime/calls/{call_id}/hangup

End an active Realtime API call, whether it was initiated over SIP or WebRTC.

Hang up call

require "openai"

openai = OpenAI::Client.new(api_key: "My API Key")

result = openai.realtime.calls.hangup("call_id")

puts(result)
Parameters
call_id: String
Returns Examples