---
title: "Draft a reply"
method: POST
path: "/api/v1/threads/{id}/draft"
tags: ["Sending"]
---

# Draft a reply

`POST /api/v1/threads/{id}/draft`

## Request

- Base URL: `https://supermailos.com`
- URL: `https://supermailos.com/api/v1/threads/{id}/draft`
- Auth: HTTP bearer

Save a reply as a draft in the conversation's mailbox for a person to review and send from the app. Nothing is sent.

## Path parameters

- `id` string, required

## Request body

- ReplyRequest
  - `text` string: `text` or `html` is required.
  - `html` string
  - `replyAll` boolean: Reply to everyone on the last message (To + Cc).
  - `from` string, email: The conversation's mailbox or one of its aliases. Default: the address the mail arrived on.
  - `to` union: Override the computed recipients.
    - string
    - string[]
  - `cc` union: Added to the computed Cc.
    - string
    - string[]
  - `bcc` union
    - string
    - string[]
  - `subject` string: Default: `Re: <subject>`.
  - `quote` boolean: Append the previous message, quoted.
  - `idempotencyKey` string: Alternative to the Idempotency-Key header (/reply only).

## Response `201`

Draft saved.

- DraftResponse
  - `ok` true, required
  - `draftId` string, required: The draft conversation's id (folder `drafts`).
  - `replyToThreadId` string, required
  - `from` string, required
  - `to` string, required
  - `cc` string, nullable
  - `subject` string, required

## Other responses

- `400`: The request is malformed.
- `401`: Missing, invalid or revoked API key.
- `403`: The key lacks the scope (`missing_scope`) or the access (`forbidden`).
- `404`: Not found — or not reachable with this key.
- `413`: Body over 1 MB.
- `422`: Valid JSON the server can't act on (e.g. unverified domain, suppressed recipient, reused Idempotency-Key).
- `429`: Too many requests.

---

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