All endpoints

Update a draft

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

Merge-patch. Omitted fields are left as-is.

Path parameters

id
required
string

Inbox UUID

did
required
string

Draft UUID

Request body

Content-Type: application/json

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

Responses

200Updated

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.