---
title: "Reply to a message"
method: POST
path: "/v1/messages/{id}/reply"
tags: ["send"]
---

# Reply to a message

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

## Request

- Base URL: `https://botmail.pro`
- URL: `https://botmail.pro/v1/messages/{id}/reply`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `bm_session`

Scope: send. Not for pending keys. Sets threading headers, recipients
and subject from the original. 404 message_not_found, 422
automated_sender (replying to no-reply/bulk mail). Other errors as
`POST /v1/send`.

## Path parameters

- `id` string, required

## Headers

- `Idempotency-Key` string

## Request body

- object
  - `text` string
  - `html` string
  - `reply_all` boolean
  - `attachments` AttachmentIn[]
    - `filename` string, required
    - `content_type` string
    - `content_base64` string, byte, required: Standard base64 with padding.
  - `idempotency_key` string

## Response `202`

Accepted and queued (or the original result for a repeated idempotency key).

- SendResult
  - `message_id` string, required
  - `thread_id` string, required
  - `status` 'queued' | 'held' | 'blocked' | 'sent', required
  - `hint` string

## Other responses

- `400`: Invalid request (`bad_request` or a more specific code).
- `401`: Missing or invalid credentials (`unauthorized`, `invalid_token`).
- `403`: The credential can't do this (`forbidden`, `csrf`, `account_inactive`, …). Missing scopes are listed in `details.required_scope`; pending keys get a hint to wait for the claim.
- `404`: Not found or not accessible with this credential.
- `413`: Too large (`message_too_large` over 10 MB, `attachment_too_large` over 25 MB).
- `422`: Well-formed but rejected; see `code` and `hint`.
- `429`: Too many requests (`rate_limited`, `invite_limit`). Wait `Retry-After` seconds.

---

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