Get a message
GET
https://myagentmail.com/v1/inboxes/{id}/messages/{messageId}For agents View as Markdown
Returns full bodies plus attachment metadata. Also marks the message as read.
Path parameters
idrequired string | Inbox UUID |
messageIdrequired string | Message UUID |
Responses
200application/jsonOK
idstring | format: uuid |
direction"inbound" | "outbound" | enum: "inbound" | "outbound" |
fromstring | |
tostring | |
subjectstring | |
plainBodystring | |
htmlBodystring | |
isReadboolean | |
threadIdstring | format: uuid |
messageIdHeaderstring | |
inReplyTostring | |
receivedAtstring | format: date-time |
attachmentsobject[] | |
idstring | format: uuid |
filenamestring | |
contentTypestring | |
sizeBytesinteger |
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.