# End call

> Hang up a call this token placed — a person's or an AI's.

Source: https://docs.mycrmsim.com/docs/calls/end-call

```http
POST https://backend.mysmsgateway.app/api/v1/ext/calls/{call_id}/end
```

- Category: myCRMSIM Calls / Calls
- Auth: Bearer access token
- Scope: `calls.write`

For an AI call this stops the voice agent and hangs the device up. Repeating it on a call that already ended answers **200** with `already_ended: true`. `channel` helps find a call the server no longer tracks (after a restart): only that kind of device is asked to hang up.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `call_id` | path | string | yes | The call id. Example: `c7f1a2b3-4d5e-4f60-8a9b-0c1d2e3f4a5b` |
| `channel` | body | enum | no | How the call was placed. One of: `imessage`, `android`, `whatsapp`, `twilio`. |

## Request body

```json
{
  "channel": "imessage"
}
```

## Response 200

OK

```json
{
  "success": true,
  "message": "Call ended",
  "data": {
    "call_id": "c7f1a2b3-4d5e-4f60-8a9b-0c1d2e3f4a5b",
    "already_ended": false
  }
}
```

## Response 401

Missing or invalid token

```json
{
  "success": false,
  "message": "Invalid or expired access token."
}
```

## Response 403

Missing scope

```json
{
  "success": false,
  "message": "Missing scope(s): calls.write. This integration was granted: …"
}
```

## Response 404

Call does not exist or is not the installer's (same response for both)

```json
{
  "success": false,
  "message": "Call not found or not accessible to this token"
}
```
