Skip to main content
POST
Send Draft
Sends an existing draft and returns message_id and thread_id. 🔴 This sends real email and it cannot be recalled — review the draft with get_agentmail_inbox_draft first, since this call takes no content of its own and sends whatever the draft currently holds. Every AIsa caller shares one AgentMail account, so this reaches inboxes other callers created.

Example

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Authorization
string
required

Bearer authentication

Path Parameters

inbox_id
string
required

The ID of the inbox.

draft_id
string
required

ID of draft.

Body

application/json
add_labels

Label or labels to add to message.

remove_labels

Label or labels to remove from message.

Response

Response with status 200

message_id
string
required

ID of message.

thread_id
string
required

ID of thread.