Skip to main content
POST
Create a saved draft

Authorizations

Authorization
string
header
required

Sendmux API key. Use a root API key for Management API routes, or a mailbox credential for Mailbox API routes. Obtain keys from the dashboard under API Keys.

Headers

Idempotency-Key
string

Reuse this key when retrying the same create request.

Maximum string length: 255

Query Parameters

mailbox_id
string

Mailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox.

Body

application/json
attachments
object[]

Attachments and inline images.

Maximum array length: 10
bcc
object[]

Hidden copied recipients.

Maximum array length: 50
cc
object[]

Visible copied recipients.

Maximum array length: 50
custom_headers
object

Custom X- headers preserved with this revision.

from
object

Authorised sender; defaults to this inbox.

html_body
string

HTML body, preserved when saved.

Maximum string length: 1000000
reply_to
object[]

Authorised reply addresses; defaults to this inbox.

Maximum array length: 20
reply_to_message_id
string

Message in this inbox to reply to; thread headers are snapshotted.

Required string length: 1 - 255
source
object

Source for this draft. Adoption requires Idempotency-Key. Explicit content fields override prepared defaults.

subject
string

Subject; may be empty.

Maximum string length: 998
text_body
string

Plain-text body.

Maximum string length: 1000000
to
object[]

Primary recipients; at most 50 total across To, Cc and Bcc.

Maximum array length: 50

Response

Saved draft and its revision.

meta
object
required
ok
enum<boolean>
required
Available options:
true
data
object
required