All endpoints

Get a thread with all messages

GEThttps://myagentmail.com/v1/inboxes/{id}/threads/{threadId}

Path parameters

id
required
string

Inbox UUID

threadId
required
string

Responses

200application/jsonOK
threadId
string

format: uuid

messageCount
integer
messages
object[]
id
string

format: uuid

direction
"inbound" | "outbound"

enum: "inbound" | "outbound"

from
string
to
string
subject
string
plainBody
string
htmlBody
string
isRead
boolean
threadId
string

format: uuid

messageIdHeader
string
inReplyTo
string
receivedAt
string

format: date-time

attachments
object[]
id
string

format: uuid

filename
string
contentType
string
sizeBytes
integer

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.