Skip to main content
PATCH
Update a draft

Authorizations

X-API-KEY
string
header
required

Your access token, from your dashboard under API keys.

Path Parameters

account_id
string
required

The account's acc_… id.

draft_id
string
required

The drf_… id from creation, or the synced draft's email_… id.

Body

application/json
to
object[]
cc
object[]
bcc
object[]
reply_to
object[]

The Reply-To header's addresses.

from
object

Sender name; email can set a send-as alias.

subject
string
html
string

HTML body.

plain_text
string

Plain-text body (made from html when left out).

reply_to_message_id
string

The email you answer: its Message-ID, or its email_… id.

custom_headers
object[]

X-…, List-Unsubscribe, List-Unsubscribe-Post, Auto-Submitted (no, auto-replied, auto-generated, auto-notified) or Reply-To.

metadata
string

Your note about this email (never in the email), returned as sent_by.metadata on its Sent copy.

Maximum string length: 1000
tracking_options
object
attachments
object[]

Response

Updated.

object
enum<string>
Available options:
DraftCreated,
DraftUpdated
id
string

drf_…, the draft's id.

account_id
string
draft_id
string

drf_…

previous_draft_id
string

After an update: the old id, which no longer works.

message_id
string
tracking_id
string | null