All endpoints

Send a draft

POSThttps://myagentmail.com/v1/inboxes/{id}/drafts/{did}/send

Sends the current draft contents and deletes the draft atomically. If the draft has replyToMessageId, the sent message is threaded as a reply.

Path parameters

id
required
string

Inbox UUID

did
required
string

Draft UUID

Responses

200application/jsonSent
id
string

format: uuid

threadId
string

format: uuid

status
string
messageId
string
draftId
string

format: uuid

Authentication

Send your API key in the X-API-Key header (or Authorization: Bearer <key>). Any prefix accepted by this endpoint — tk_, wk_, ak_, or sa_ — is documented in the key prefix table.