Create a Draft

Creates a new Draft in the draft folder of the provider. Use Send a Draft to send the Email later. Outlook supports native replies with reply_to_message_id. Provide the desired to and cc recipients for reply-all behavior, consistently with other providers. Empty recipient lists clear their headers; omit content and subject to keep the native quotation and subject.

Multipart supported, refer to Sending Files.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
^acc_(.*)$

ID of the Account (acc_xxx) to call the method on behalf of.

Body Params
string

The HTML content of the draft. Required for tracking.

string

The plain text content of the draft.

string

Subject of the draft.

from
object
to
array of objects
required

List of attendees to set in to header. An empty list clears the header.

to*
cc
array of objects

List of attendees to set in cc header. An empty list clears the header.

cc
bcc
array of objects

List of attendees to set in bcc header. An empty list clears the header.

bcc
reply_to
array of objects

List of attendees to set in the standard Reply-To header. Recipients answering the email will reply to these addresses instead of from. To reply inside an existing conversation, use reply_to_message_id instead.

reply_to
string
length ≥ 1

The ID of the email message that you're replying to. For Gmail and Outlook, use the provider message ID. For IMAP, use the RFC822 Message-ID header. Outlook creates a native reply draft in the original conversation; omitted content preserves the quoted body.

attachments
array of objects

The list of file attachments to the draft. For Outlook, each attachment must be smaller than 3 MB.

attachments
tracking_options
object

Configuration of tracking for this email.

Response

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json