---
title: "Cancel a message"
method: POST
path: "/v1/messages/{id}/cancel"
tags: ["Messages"]
---

# Cancel a message

`POST /v1/messages/{id}/cancel`

## Request

- Base URL: `https://www.chatrail.dev`
- URL: `https://www.chatrail.dev/v1/messages/{id}/cancel`
- Auth: HTTP bearer

Only while it has not reached the provider. Once submitted the message exists on somebody's phone and cancelling would be a lie.

## Path parameters

- `id` string, required

## Response `200`

Cancelled.

## Other responses

- `404`: No such message.
- `409`: Already handed to the provider.

---

[API](https://skmtc.dev/chatrail/apis/chatrail-api.md) · [All operations](https://skmtc.dev/chatrail/apis/chatrail-api/llms.txt) · [OpenAPI document](https://skmtc.dev/chatrail/apis/chatrail-api/revisions/acc5b88c6f59?raw)
