---
title: "Create a draft (equivalent to POST /messages)"
method: POST
path: "/drafts"
tags: ["Drafts"]
---

# Create a draft (equivalent to POST /messages)

`POST /drafts`

## Request

- Base URL: `https://api.automessage.app/v1`
- URL: `https://api.automessage.app/v1/drafts`
- Auth: API key in header `X-API-KEY`

## Request body

- SendMessageRequest: Exactly one of `to` or `conversationId` must be present (400 on both or neither).
  - `to` string: Recipient identifier for a 1:1 send. Phone numbers are normalized to E.164 (e.g. `+14155550123`); email addresses are accepted for Apple ID recipients. Omit when sending into an existing thread with `conversationId`.
  - `conversationId` string: Send into an existing conversation you own (its `id` from `GET /v1/conversations`), including **group chats** — the only way to message a group. The draft is then addressed by `chatGUID` with an empty `to`; a 1:1 thread resolves to its recipient handle. 404 `not_found` when the thread is not yours. A reply into an existing group never counts against the new-outreach limit.
  - `body` string, required
  - `attachments` object[]
    - `url` string, uri, required
    - `mimeType` string
  - `scheduledAt` string, date-time: Optional ISO-8601 send-at time.

## Response `201`

Draft created.

- Draft
  - `id` string, required
  - `to` string, required: Empty for a group draft (addressed by chatGUID).
  - `conversationId` string, nullable: The existing thread this draft targets, when there is one (set for conversationId sends and for `to` sends that match a thread).
  - `chatGUID` string, nullable: Group drafts only: the chat id in the connector's `any;+;<id>` form.
  - `body` string, required
  - `sent` boolean, required
  - `sentAt` string, date-time, nullable
  - `scheduledAt` string, date-time, nullable
  - `createdAt` string, date-time, required

---

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