> For an agent: the map of this documentation is at https://escouade.io/en/mail/docs/llms.txt; every page exists in Markdown, at the same address with `.md` appended.

# `cancel_message`

Cancel a message.

Cancels a draft or a message still in the queue: it will not leave. A message that has already left cannot be recalled.

## Access

- **Key**: an Escouade Mail key with `send` or `approve`.
- **Space**: any space, verified or not.
- **Changes nothing**: no, it acts.
- **Safe to replay**: use an `idempotency_key` where the tool offers one.

## Parameters

| Parameter | Type | Required | Description |
|---|---|---|---|
| `message_id` | string | yes | The message (msg_…). |
| `reason` | string | no | Why, for the log. |

## Call it

```sh
curl -s https://api.subagent.fr/v1/cancel_message \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer sak_…' \
  -d '{"message_id": "…"}'
```

The full page in French, with the response fields and every refusal the tool can return: [/mail/docs/reference/cancel_message](https://escouade.io/mail/docs/reference/cancel_message).
