---
title: "Read a mailbox thread"
method: GET
path: "/v1/mailboxes/{id}/threads/{threadId}/content"
tags: ["Mailboxes"]
---

# Read a mailbox thread

`GET /v1/mailboxes/{id}/threads/{threadId}/content`

## Request

- Base URL: `https://api.samva.dev`
- URL: `https://api.samva.dev/v1/mailboxes/{id}/threads/{threadId}/content`
- Auth: API key in header `x-api-key`

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.

## Path parameters

- `id` string, required
- `threadId` string, required

## Query parameters

- `limit` string, nullable
- `cursor` string

## Response `200`

MailboxThreadContentPage

- MailboxThreadContentPage
  - `items` MailboxMessage[], required
    - `id` string, required
    - `threadId` string, required
    - `conversationId` string, required
    - `direction` 'inbound' | 'outbound', required
    - `from` MailboxMessageSender, required
      - `actor` object, nullable
        - `kind` 'user' | 'apiKey' | 'extension' | 'externalAgent' | 'samvaAgent' | 'system', required
        - `id` string, required
        - `displayName` string, nullable
      - `displayName` string, nullable
      - `address` string, required
    - `sentBy` object, nullable
      - `kind` 'user' | 'apiKey' | 'extension' | 'externalAgent' | 'samvaAgent' | 'system', required
      - `id` string, required
      - `displayName` string, nullable
    - `occurredAt` string, required
    - `channel` 'email', required
    - `recipients` MailboxMessageRecipient[], required
      - `kind` 'to' | 'cc' | 'bcc', required
      - `actor` object, nullable
        - `kind` 'user' | 'apiKey' | 'extension' | 'externalAgent' | 'samvaAgent' | 'system', required
        - `id` string, required
        - `displayName` string, nullable
      - `displayName` string, nullable
      - `address` string, required
    - `replyTo` string[], required
    - `subject` string, nullable
    - `text` string, nullable
    - `html` string, nullable
    - `replyText` string, nullable
    - `headers` object, required
      - `messageId` string, nullable, required
      - `inReplyTo` string, nullable, required
      - `references` string[], required
    - `authentication` MailboxMessageAuthentication, required
      - `spf` string, nullable, required
      - `dkim` string, nullable, required
      - `dmarc` string, nullable, required
    - `attachments` object[], required
      - `id` string, required
      - `filename` string, required
      - `contentType` string, required
      - `size` integer, required
      - `isInline` boolean, required
  - `nextCursor` string, nullable, required

## Other responses

- `401`: UnauthorizedError
- `403`: ForbiddenError
- `404`: ResourceNotFoundError
- `422`: ValidationError
- `500`: InternalError
- `504`: GatewayTimeoutError

---

[API](https://skmtc.dev/samva/apis/samva-api.md) · [All operations](https://skmtc.dev/samva/apis/samva-api/llms.txt) · [OpenAPI document](https://skmtc.dev/samva/apis/samva-api/revisions/a99408542cc3?raw)
