All endpoints

Create a draft

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

Path parameters

id
required
string

Inbox UUID

Request body

Content-Type: application/json

to
string | string[]
cc
string | string[]
bcc
string | string[]
subject
string
plainBody
string
htmlBody
string
replyToMessageId
string

format: uuid

Responses

201application/jsonCreated
id
string

format: uuid

inboxId
string

format: uuid

to
string[]
cc
string[]
bcc
string[]
subject
string
plainBody
string
htmlBody
string
replyToMessageId
string

format: uuid

createdAt
string

format: date-time

updatedAt
string

format: date-time

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.