---
title: "Send Message"
method: POST
path: "/v1/inboxes/{inbox_id}/send"
---

# Send Message

`POST /v1/inboxes/{inbox_id}/send`

## 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/inboxes/{inbox_id}/send`
- Auth: HTTP bearer

## Path parameters

- `inbox_id` string, required

## Headers

- `Idempotency-Key` string, nullable

## Request body

- object
  - `to` union, required
    - string
    - string[]
  - `subject` string
  - `text` string
  - `html` string: Optional HTML alternative; include text as fallback.
  - `openpgp_ciphertext` string: ASCII-armored ciphertext of one OpenPGP/MIME inner entity. Exactly one recipient; do not combine with text, html or attachments.

## Response `200`

Successful Response

- object

## 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)
