Sample - OpenAI API
POST/realtime/calls/{call_id}/hangup

Hang up call

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

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

1 parameter
call_idstringrequired
The identifier for the call. For SIP calls, use the value provided in the [`realtime.call.incoming`](https://developers.openai.com/api/reference/resources/webhooks#realtime.call.incoming) webhook. For WebRTC sessions, reuse the call ID returned in the `Location` header when creating the call with [`POST /v1/realtime/calls`](https://developers.openai.com/api/reference/resources/realtime/subresources/calls/methods/create).

1 status code
200Call hangup initiated successfully.