Creates an email draft
POST/v2/users/:email/messages
Creates an email draft in the specified user's Drafts folder. Read-only fields in the request are not written.
Request
Path parameters
Email address of the user.
Query parameters
Body parameters
message object
Email message ID formatted per RFC 2822 (Optional field: returned when the $select=internetMessageId query parameter is included in the URL). To request multiple fields, separate them with commas.
Email subject.
Email summary information.
The importance of the email. Possible values: HIGH, NORMAL, LOW. Defaults to NORMAL. - PRY_HIGH: - PRY_NORMAL:
Possible values: [PRY_HIGH, PRY_NORMAL]
Indicates whether a read receipt is requested (Optional field: returned when the $select=isReadReceiptRequested query parameter is added to the URL. Use commas to separate multiple fields.).
from object
Owner of the mailbox from which the email is sent. In most cases, this value is the same as the "sender" attribute.
Email address of the person or entity.
Display name of the person or entity.
toRecipients object[]
Recipients of the email (optional field: returned after adding the $select=toRecipients query parameter in the URL; use commas to separate multiple fields).
Email address of the person or entity.
Display name of the person or entity.
ccRecipients object[]
CC recipients of the email. (Optional field: returned by adding the $select=ccRecipients query parameter in the URL. Separate multiple fields with commas.)
Email address of the person or entity.
Display name of the person or entity.
bccRecipients object[]
Blind carbon copy (BCC) recipients of the email (Optional field: returned when the $select=bccRecipients query parameter is included in the URL). To request multiple fields, separate them with commas.
Email address of the person or entity.
Display name of the person or entity.
replyTo object[]
The email address used for replies. (Optional field: returned when the $select=replyTo query parameter is added to the URL. For multiple fields, separate them with commas.)
Email address of the person or entity.
Display name of the person or entity.
body object
Email body. Can be a combination of HTML and plain text. (Optional field: returned after adding the $select=body query parameter to the URL. Use commas to separate multiple fields.)
Email text body.
HTML-formatted email body.
internetMessageHeaders object
Set of email headers as defined by RFC 5322.
Set of email headers as defined by RFC 5322.
List of email tags. (Optional field: Returns when the $select=tags query parameter is added to the URL. Use commas to separate multiple fields.)
Response
- none:
- posting:
- partial_success:
- success:
- failed:
- unknown:
message object
The newly created email information.
Email message ID formatted per RFC 2822 (Optional field: returned when the $select=internetMessageId query parameter is included in the URL). To request multiple fields, separate them with commas.
Email subject.
Email summary information.
The importance of the email. Possible values: HIGH, NORMAL, LOW. Defaults to NORMAL. - PRY_HIGH: - PRY_NORMAL:
Possible values: [PRY_HIGH, PRY_NORMAL]
Indicates whether a read receipt is requested (Optional field: returned when the $select=isReadReceiptRequested query parameter is added to the URL. Use commas to separate multiple fields.).
from object
Owner of the mailbox from which the email is sent. In most cases, this value is the same as the "sender" attribute.
Email address of the person or entity.
Display name of the person or entity.
toRecipients object[]
Recipients of the email (optional field: returned after adding the $select=toRecipients query parameter in the URL; use commas to separate multiple fields).
Email address of the person or entity.
Display name of the person or entity.
ccRecipients object[]
CC recipients of the email. (Optional field: returned by adding the $select=ccRecipients query parameter in the URL. Separate multiple fields with commas.)
Email address of the person or entity.
Display name of the person or entity.
bccRecipients object[]
Blind carbon copy (BCC) recipients of the email (Optional field: returned when the $select=bccRecipients query parameter is included in the URL). To request multiple fields, separate them with commas.
Email address of the person or entity.
Display name of the person or entity.
sender object
The account actually used to generate the email. In most cases, this value is the same as the "from" attribute. Under any circumstances, this value must correspond to the actual mailbox used (Optional field: returned after adding the $select=sender query parameter in the URL. For multiple fields, separate them with commas).
Email address of the person or entity.
Display name of the person or entity.
replyTo object[]
The email address used for replies. (Optional field: returned when the $select=replyTo query parameter is added to the URL. For multiple fields, separate them with commas.)
Email address of the person or entity.
Display name of the person or entity.
body object
Email body. Can be a combination of HTML and plain text. (Optional field: returned after adding the $select=body query parameter to the URL. Use commas to separate multiple fields.)
Email text body.
HTML-formatted email body.
internetMessageHeaders object
Set of email headers as defined by RFC 5322.
Set of email headers as defined by RFC 5322.
Unique identifier of the folder to which the email belongs.
Unique email identifier.
Indicates whether the email contains attachments (excluding inline resources).
Indicates whether the email is read.
Unique identifier of the conversation to which the email belongs.
Email sending time.
Last modification time of the message (Optional field: returned when the $select=lastModifiedDateTime query parameter is added to the URL; separate multiple fields with commas).
Time when the recipient received the email (Optional field: returned after adding the $select=receivedDateTime query parameter to the URL. Separate multiple fields with commas.)
List of email tags. (Optional field: Returns when the $select=tags query parameter is added to the URL. Use commas to separate multiple fields.)
Indicates whether the email has been replied to.
Indicates whether the email has been forwarded.
Email sending status (optional field: returned when $select=sendStatus is added to the URL; use commas to separate multiple fields).
Possible values: [none, posting, partial_success, success, failed, unknown]
Email size in bytes.
Errors
401 | Access is unauthorized. Please check whether the correct authorization token is passed. |
403 | No API access permission. Please complete the relevant authorization on the application management page of the domain administrator. |