Skip to content
Primary navigation

Reject call

POST/realtime/calls/{call_id}/reject

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

Path ParametersExpand Collapse
call_id: string
Body ParametersJSONExpand Collapse
status_code: optional number

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

Reject call

curl -X POST https://api.openai.com/v1/realtime/calls/$CALL_ID/reject \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status_code": 486}'
Returns Examples