Skip to main content
GET
Get a draft

Authorizations

X-API-KEY
string
header
required

Your access token, from your dashboard under API keys.

Path Parameters

draft_id
string
required

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

Query Parameters

account_id
string

The draft's account. Needed only right after creating it, before it has synced.

Response

The draft.

object
enum<string>
Available options:
Email,
Draft
id
string

email_…; stays the same when the email moves.

account_id
string
provider_id
string
message_id
string
thread_id
string
date
string<date-time>
subject
string
snippet
string
body
string
body_plain
string
from_attendee
object
to_attendees
object[]
cc_attendees
object[]
bcc_attendees
object[]
reply_to_attendees
object[]
in_reply_to
object | null
references
string[]
folders
string[]
folder_ids
string[]
role
enum<string>
Available options:
INBOX,
SENT,
DRAFTS,
TRASH,
SPAM,
ARCHIVE,
ALL,
IMPORTANT,
STARRED,
UNKNOWN
unread
boolean
starred
boolean
has_attachments
boolean
attachments
object[]
size
integer
origin
enum<string>

api: sent through this API.

Available options:
api,
external
tracking_id
string | null

Open/click tracking of this email (trk_…).

draft_id
string

Drafts only.

headers
object[]