Create Draft
post_agentmail_inbox_draftComposes a draft in one inbox without sending it. Takes to, cc, bcc, subject, text, html, labels, attachments, and in_reply_to / references to thread it. Returns the full draft including draft_id. Nothing leaves the account until you call post_agentmail_inbox_draft_send, which makes this the safe way to stage outbound mail for review. Writes to the shared AgentMail workspace: Every AIsa caller shares one AgentMail account, so this reaches inboxes other callers created, and what you write here is visible and editable by the next caller.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | Addresses of CC recipients. In format `username@domain.com` or `Display Name <username@domain.com>`. | |
| to | No | Addresses of recipients. In format `username@domain.com` or `Display Name <username@domain.com>`. | |
| bcc | No | Addresses of BCC recipients. In format `username@domain.com` or `Display Name <username@domain.com>`. | |
| html | No | HTML body of draft. | |
| text | No | Plain text body of draft. | |
| labels | No | Labels of draft. | |
| send_at | No | Time at which to schedule send draft. | |
| subject | No | Subject of draft. | |
| inbox_id | Yes | The ID of the inbox. | |
| reply_to | No | Reply-to addresses. In format `username@domain.com` or `Display Name <username@domain.com>`. | |
| client_id | No | Client ID of draft. | |
| attachments | No | Attachments to include in draft. | |
| in_reply_to | No | ID of message being replied to. | |
| Authorization | Yes | Bearer authentication |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||