Get a thread with all messages
GET
https://myagentmail.com/v1/inboxes/{id}/threads/{threadId}For agents View as Markdown
Path parameters
idrequired string | Inbox UUID |
threadIdrequired string |
Responses
200application/jsonOK
threadIdstring | format: uuid |
messageCountinteger | |
messagesobject[] | |
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.