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

# Send a draft

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

## Request

- Base URL: `https://anjal.app`
- URL: `https://anjal.app/v1/inboxes/{id}/drafts/{did}/send`
- Auth: API key in header `X-API-Key`

Sends the current draft contents now and deletes the draft atomically. If the draft has `replyToMessageId`, the sent message is threaded as a reply. The draft's `labels` are applied to the sent message. Accepts an `Idempotency-Key` header.

## Headers

- `Idempotency-Key` string

## Response `200`

Sent

- object
  - `id` string, uuid
  - `threadId` string, uuid
  - `status` string
  - `messageId` string
  - `draftId` string, uuid

## Other responses

- `400`: Validation error, or IDEMPOTENCY_KEY_INVALID
- `409`: `IDEMPOTENCY_KEY_REUSED` (the key was used for a different request) or `IDEMPOTENCY_IN_PROGRESS` (the first request with this key is still running).

---

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