---
title: "Create an email draft"
method: POST
path: "/api/v1/inbox/drafts"
tags: ["Inbox"]
---

# Create an email draft

`POST /api/v1/inbox/drafts`

## Request

- Base URL: `https://app.khotan.com`
- URL: `https://app.khotan.com/api/v1/inbox/drafts`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

Creates an unsent draft in the workspace inbox: a new email with recipients and a subject, or a reply to a message in the inbox. Nothing is sent until the draft is sent.

## Request body

- object
  - `to` string[]
  - `cc` string[]
  - `subject` string
  - `text` string, required
  - `replyToMessageId` string
  - `replyAll` boolean
  - `internal` boolean
  - `slackThread` object
    - `teamId` string, required
    - `channelId` string, required
    - `threadTs` string, required

## Response `201`

The draft.

## Other responses

- `400`: The request was malformed or failed validation.
- `401`: Authentication is missing or invalid.
- `403`: The caller is not permitted to perform this action.
- `404`: The resource was not found.
- `429`: Too many requests; retry after the indicated delay.

---

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