NAME

OpenAPI::Client::OpenAI::Path::realtime-calls-call_id-hangup - Documentation for the /realtime/calls/{call_id}/hangup path.

OPERATIONS

POST /realtime/calls/{call_id}/hangup

hangup-realtime-call

$client->hangup_realtime_call({
    body => { ... },
});

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

Path/query parameters

  • call_id (in path, required, string) - The identifier for the call. For SIP calls, use the value provided in the 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.

Responses

200 - Call hangup initiated successfully.

SEE ALSO

OpenAPI::Client::OpenAI::Path

COPYRIGHT AND LICENSE

Copyright (C) 2023-2026 by Nelson Ferraz

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.14.0 or, at your option, any later version of Perl 5 you may have available.