Skip to main content
PUT
JavaScript

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

inbox_id
string<uuid>
required

Email inbox UUID.

draft_id
string<uuid>
required

Email draft UUID.

Body

application/json

All fields are optional — a draft may be saved incomplete. account_id, inbox_id, status, sent_at, sent_message_id, reply_to_message_id and thread_id are server-owned and ignored if supplied.

from_email
string
from_name
string
to
(string | object)[]
cc
(string | object)[]
bcc
(string | object)[]
reply_to
string
subject
string
Maximum string length: 255
text_body
string
html_body
string
text
string

Alias for text_body, matching the send endpoint.

html
string

Alias for html_body, matching the send endpoint.

headers
object
attachments
object[]
labels
string[]
tags
string[]
metadata
object

Response

The updated draft.

data
object
required

An unsent, mutable draft message belonging to an inbox.