---
title: "Trash Message"
method: POST
path: "/v1/messages/{message_id}/trash"
---

# Trash Message

`POST /v1/messages/{message_id}/trash`

## Request

- Base URL: `https://api.namailu.cz` (the document declares no server; this is the origin it was published from)
- URL: `https://api.namailu.cz/v1/messages/{message_id}/trash`
- Auth: HTTP bearer

## Path parameters

- `message_id` string, required

## Response `200`

Successful Response

- MessageActionResponse
  - `id` string, required
  - `status` string, required

## Other responses

- `401`: Missing, invalid or unproved API credential.
- `403`: Credential lacks the required scope or policy permission.
- `422`: Stable validation or policy rejection.
- `500`: Sanitized internal error.

---

[API](https://skmtc.dev/namailu/apis/domovnik-agent-api.md) · [All operations](https://skmtc.dev/namailu/apis/domovnik-agent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/namailu/apis/domovnik-agent-api/revisions/6342d1e31643?raw)
