Skip to content
Docs
Open Escouade
Documentation contents

Docs › Mail › Tools

cancel_message

View as .md

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

ParameterTypeRequiredDescription
message_idstringyesThe message (msg_…).
reasonstringnoWhy, for the log.

Call it

Terminal
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.