## Hang up call

`$ openai realtime:calls hangup`

**post** `/realtime/calls/{call_id}/hangup`

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

### Parameters

- `--call-id: string`

  The identifier for the call. For SIP calls, use the value provided in the
  [`realtime.call.incoming`](https://platform.openai.com/docs/api-reference/webhook-events/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://platform.openai.com/docs/api-reference/realtime/create-call).

### Example

```cli
openai realtime:calls hangup \
  --api-key 'My API Key' \
  --call-id call_id
```
