/v3/grants/{grant_id}/messages/sendSend a Message
Sends the specified message. If you want to send the message immediately, omit the send_at field
from your request. If you want to schedule it to be sent later, set send_at to the time you want
to send the message, in seconds using the Unix timestamp format.
For more information about scheduling messages, see Schedule messages to send in the future.
(Google and Microsoft Graph only) When scheduling a message, you can set use_draft to true to
save the message in the user's Drafts folder until it's sent.
Nylas also supports sending raw MIME messages. For more information, see Send messages with MIME data.
Limitations
Microsoft Graph and iCloud don't support the List-Unsubscribe-Post or List-Unsubscribe headers.
Path parameters
Query parameters
Include message headers in the send response. Headers are returned in the same headers array
format as Get Message responses.
standard: Returns the standard send response (noheadersarray).include_headers: Returns the full set of headers on the response.include_basic_headers: Returns only the three RFC threading headers (Message-ID,In-Reply-To,References). Use this option when you only need to track message identity and thread relationships — payload size is significantly smaller thaninclude_headers.
Supported on synchronous send only. The parameter has no effect when you set the send_at
field on the request (scheduled send is asynchronous and doesn't return headers).
For provider support details, see Using email headers and MIME data.
Header parameters
A unique, client-generated key (max 256 characters) that lets you safely retry this send request
without sending duplicate emails. Nylas caches the response (success or error) for 1 hour, scoped
per grant. A retry with the same key and payload returns the cached response with the
Idempotent-Response: true header set. See
Idempotent send requests for the full retry behavior and
error responses.
reply_to_message_idThe ID of the message you're replying to. For Gmail and Microsoft Graph, this is the
message ID on the provider. For IMAP Send, this is the
RFC822 Message-ID header
of the message you're replying to.
signature_idThe ID of a signature to append to the message body. Nylas inserts the signature after a line break at the end of the body, including after any quoted text in replies and forwards. Only one signature can be used per message.