---
title: "Get a mailbox message"
method: GET
path: "/v1/mailboxes/{id}/messages/{messageId}"
tags: ["Mailboxes"]
---

# Get a mailbox message

`GET /v1/mailboxes/{id}/messages/{messageId}`

## Request

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

Returns a message in the mailbox, discriminated by `channel`. An email has its text, sanitized HTML, `replyText` (what the sender wrote, without quoted history), authentication verdicts, and attachments.

## Path parameters

- `id` string, required
- `messageId` string, required

## Response `200`

MailboxMessage

- MailboxMessage
  - `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

## 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)
