Create an email draft
Save a draft in the caller’s connected Gmail or Outlook account.
Nothing is sent. The draft appears in the account’s Drafts folder, where it
is reviewed, edited and sent from the mail client — that review step is why
drafting is available here while sending is not. Set reply_to_message_id
to thread the draft as a reply.
Authentication
Request
Body content. HTML is supported; plain-text newlines become line breaks. Do not write a signature into it — the account’s signature is appended automatically (see include_signature).
Optional: Whether to append the sending account’s own signature at the end of the body. Leave unset to follow the user’s saved preference for this account (which distinguishes new messages from replies) — that is almost always the right choice. Set false only when the user asks for no signature. Never write a signature into the body yourself: the real one is read from the account and appended automatically.
Provider message id (from GET /tools/email/search) to reply to, so the draft is threaded under that message. Outlook rejects an id it cannot find (404). Gmail saves the draft unthreaded when the referenced message cannot be read, and reply_to_message_id in the response tells you which happened.
Response
Account provider as Athena reports it: gmail or outlook for accounts connected through the Integrations page; google or microsoft365 for directly-connected accounts (read-only for drafts).
Human-readable outcome, when the provider reports one.
Athena email-tracking id, when tracking is enabled on the account.
