---
title: "Create a draft"
method: POST
path: "/v1/inboxes/{id}/drafts"
tags: ["Drafts"]
---

# Create a draft

`POST /v1/inboxes/{id}/drafts`

## Request

- Base URL: `https://api.agentboxd.com`
- URL: `https://api.agentboxd.com/v1/inboxes/{id}/drafts`
- Auth: HTTP bearer

`{ to?, cc?, bcc?, subject?, text?, html?, attachments?, metadata?, labels?, reply_to_message_id?, thread_id?, reply_all?, send_at? }`. Everything is optional. With `reply_to_message_id` (or `thread_id`: its latest message) recipients and the `Re:` subject are filled like a reply. 201 with the draft. Needs `drafts:write`, plus `messages:send` when `send_at` is set.

Permission: `drafts:write`.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `to` union
    - string
    - string[]
  - `cc` union
    - string
    - string[]
  - `bcc` union
    - string
    - string[]
  - `subject` string
  - `text` string
  - `html` string
  - `attachments` object[]
    - `filename` string, required
    - `content_type` string, required
    - `content_base64` string, required
  - `metadata` object
  - `labels` string[]
  - `reply_to_message_id` string, uuid
  - `thread_id` string, uuid
  - `reply_all` boolean
  - `send_at` string, date-time
  - `data` unknown
  - `type` 'message' | 'task' | 'event'

## Response `200`

OK

- object

## Other responses

- `4XX`: Error
- `5XX`: Error

---

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