Create Draft

Path parameters

inbox_idstringRequired
ID of inbox.

Headers

AuthorizationstringRequired

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

Request

This endpoint expects an object.
labelslist of stringsOptional
Labels of draft.
tolist of stringsOptional

Addresses of recipients. In format username@domain.com or Display Name <username@domain.com>.

cclist of stringsOptional

Addresses of CC recipients. In format username@domain.com or Display Name <username@domain.com>.

bcclist of stringsOptional

Addresses of BCC recipients. In format username@domain.com or Display Name <username@domain.com>.

subjectstringOptional
Subject of draft.
textstringOptional
Plain text body of draft.
htmlstringOptional
HTML body of draft.

Response

This endpoint returns an object.
inbox_idstring
ID of inbox.
thread_idstring
ID of thread.
draft_idstring
ID of draft.
labelslist of strings
Labels of draft.
updated_atdatetime
Time at which draft was last updated.
created_atdatetime
Time at which draft was created.
tolist of strings or null

Addresses of recipients. In format username@domain.com or Display Name <username@domain.com>.

cclist of strings or null

Addresses of CC recipients. In format username@domain.com or Display Name <username@domain.com>.

bcclist of strings or null

Addresses of BCC recipients. In format username@domain.com or Display Name <username@domain.com>.

subjectstring or null
Subject of draft.
previewstring or null
Text preview of draft.
textstring or null
Plain text body of draft.
htmlstring or null
HTML body of draft.
attachmentslist of objects or null
Attachments in draft.
in_reply_tostring or null
ID of message being replied to.
referenceslist of strings or null
IDs of previous messages in thread.

Errors