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

# Get a mailbox thread

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

## Request

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

Returns a thread with its participants and where it stands. Read its messages with `GET .../threads/{threadId}/messages` and their bodies with `GET .../threads/{threadId}/content`.

## Path parameters

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

## Response `200`

MailboxThread

- MailboxThread
  - `id` string, required
  - `channel` 'email', required: The channel an endpoint, thread, or message belongs to.
  - `endpointId` string, required
  - `subject` string, nullable, required
  - `preview` string, nullable, required
  - `from` MailboxThreadSender, required
    - `address` string, nullable, required
    - `displayName` string, nullable, required
  - `messageCount` integer, required
  - `hasAttachments` boolean, required
  - `hasDraft` boolean, required
  - `folder` 'inbox' | 'assigned' | 'pending' | 'sent' | 'archived' | 'trash', required
  - `priority` 'low' | 'normal' | 'high' | 'urgent', required
  - `labels` MailboxLabelId[], required
  - `read` boolean, required
  - `starred` boolean, required
  - `snoozedUntil` string, nullable, required
  - `lastActivityAt` string, required
  - `conversationId` string, required
  - `participants` MailboxThreadParticipant[], required
    - `actor` object, required
      - `kind` 'user' | 'apiKey' | 'extension' | 'externalAgent' | 'samvaAgent' | 'system', required
      - `id` string, required
      - `displayName` string, nullable
    - `role` 'recipient' | 'sender' | 'assignee' | 'observer', required
    - `address` string, nullable
  - `createdAt` string, 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)
