Mailboxes
Read a mailbox thread
Read a mailbox thread. View request and response details for this Samva email API endpoint.
Returns the thread's messages with their text, sanitized HTML, replyText (what each sender wrote, without quoted history), authentication verdicts, and attachments, oldest first. Pass nextCursor back as cursor for the next page; it is null on the last page.
Authorization
apiKey x-api-key<token>
In: header
Path Parameters
id*string
Match
^mbx_[0-9a-hjkmnp-tv-z]{16,24}$threadId*string
Match
^thread_[0-9a-hjkmnp-tv-z]{16,24}$Query Parameters
limit?string|null
cursor?CursorEncoded|null
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/mailboxes/string/threads/string/content"{ "items": [ { "id": "string", "threadId": "string", "conversationId": "string", "direction": "inbound", "from": { "actor": { "kind": "user", "id": "string", "displayName": "string" }, "displayName": "string", "address": "string" }, "recipients": [ { "kind": "to", "actor": { "kind": "user", "id": "string", "displayName": "string" }, "displayName": "string", "address": "string" } ], "replyTo": [ "string" ], "subject": "string", "text": "string", "html": "string", "replyText": "string", "headers": { "messageId": "string", "inReplyTo": "string", "references": [ "string" ] }, "authentication": { "spf": "string", "dkim": "string", "dmarc": "string" }, "attachments": [ { "id": "string", "filename": "string", "contentType": "string", "size": 0, "isInline": true } ], "sentBy": { "kind": "user", "id": "string", "displayName": "string" }, "occurredAt": "string" } ], "nextCursor": "string"}