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

Reject call

realtime.calls.reject(call_id, **kwargs) -> void
POST/realtime/calls/{call_id}/reject

Decline an incoming SIP call by returning a SIP status code to the caller.

ParametersExpand Collapse
call_id: String
status_code: Integer

SIP response code to send back to the caller. Defaults to 603 (Decline) when omitted.

Reject call

require "openai"

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

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

puts(result)
Returns Examples