Create Draft
CLI:
agentmail inboxes:drafts create --inbox-id <inbox_id> --to recipient@example.com --subject "Draft subject" --text "Draft body"
Path parameters
The ID of the inbox.
Request body
Labels of draft.
Reply-to addresses. In format username@domain.com or Display Name <username@domain.com>.
Addresses of recipients. In format username@domain.com or Display Name <username@domain.com>.
Addresses of CC recipients. In format username@domain.com or Display Name <username@domain.com>.
Addresses of BCC recipients. In format username@domain.com or Display Name <username@domain.com>.
Subject of draft.
Plain text body of draft.
HTML body of draft.
ID of message being replied to.
Time at which to schedule send draft.
Client ID of draft.
Response
The ID of the inbox.
ID of draft.
Client ID of draft.
Labels of draft.
Reply-to addresses. In format username@domain.com or Display Name <username@domain.com>.
Addresses of recipients. In format username@domain.com or Display Name <username@domain.com>.
Addresses of CC recipients. In format username@domain.com or Display Name <username@domain.com>.
Addresses of BCC recipients. In format username@domain.com or Display Name <username@domain.com>.
Subject of draft.
Text preview of draft.
Plain text body of draft.
HTML body of draft.
ID of message being replied to.
IDs of previous messages in thread.
Schedule send status of draft.
Time at which to schedule send draft.
Time at which draft was last updated.
Time at which draft was created.