---
title: "Get message content"
method: GET
path: "/v1/messages/{id}/content"
tags: ["Messages"]
---

# Get message content

`GET /v1/messages/{id}/content`

## Request

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

Returns the content the message was sent or received with.

## Path parameters

- `id` string, required

## Response `200`

MessageContent

- MessageContent
  - `text` string, nullable
  - `html` string, nullable
  - `markdown` string, nullable
  - `email` object, nullable
    - `subject` string, nullable
    - `html` string, nullable
    - `text` string, nullable
    - `headers` object, nullable
    - `tracking` EmailTrackingOverrideV1: Requested per-send engagement tracking policy. Recipient opt-out takes precedence, then explicit fields, organization defaults, and product defaults.
      - `opens` boolean: Override open tracking for this send. Omit to inherit the organization default. A recipient tracking opt-out always disables tracking.
      - `clicks` boolean: Override click tracking for this send. Omit to inherit the organization default. A recipient tracking opt-out always disables tracking.
    - `attachments` object[], nullable
      - `filename` string, required
      - `contentId` string, nullable
      - `isInline` boolean, nullable
      - `content` string, nullable
      - `mediaId` string
      - `contentType` string, required
      - `size` number, required
  - `metadata` object, nullable

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