Hang up call
realtime.calls.hangup(strcall_id )
POST
/realtime/calls/{call_id}/hangupEnd an active Realtime API call, whether it was initiated over SIP or WebRTC.
Hang up call
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ.get("OPENAI_API_KEY"), # This is the default and can be omitted
)
client.realtime.calls.hangup(
"call_id",
)