---
title: "Create an editable Dench email draft and synchronize its selected native mailbox asynchronously. Use a stable requestId for retries"
method: POST
path: "/email/drafts"
tags: ["email"]
---

# Create an editable Dench email draft and synchronize its selected native mailbox asynchronously. Use a stable requestId for retries

`POST /email/drafts`

## Request

- Base URL: `https://www.dench.com/api/v1`
- URL: `https://www.dench.com/api/v1/email/drafts`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Create an editable Dench email draft and synchronize its selected native mailbox asynchronously. Use a stable requestId for retries.

## Request body

- object
  - `organizationId` string
  - `threadId` string
  - `mailbox` string
  - `requestId` string, required
  - `to` object[]
    - `email` string, required
    - `name` string
  - `cc` object[]
    - `email` string, required
    - `name` string
  - `bcc` object[]
    - `email` string, required
    - `name` string
  - `subject` string
  - `htmlBody` string
  - `textBody` string
  - `attachments` object[]
    - `storageId` string, required
    - `name` string, required
    - `contentType` string, required
    - `size` number, required

## Response `200`

Successful response

- object
  - `ok` boolean, required
  - `kind` 'email', required
  - `draftId` string, required
  - `syncStatus` string, required
  - `revision` number, required

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid authentication
- `404`: Operation or resource not found
- `500`: Server error

---

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