---
title: "Message"
method: GET
path: "/api/v1/tests/{slug}/message"
---

# Message

`GET /api/v1/tests/{slug}/message`

## Request

- Base URL: `https://email-spam-tester.com` (the document declares no server; this is the origin it was published from)
- URL: `https://email-spam-tester.com/api/v1/tests/{slug}/message`
- Auth: none declared

The message itself: headers, both bodies, and the source verbatim.

Separate from the report rather than a field on it, because the report is
polled every two seconds while the analysis runs and a megabyte of source
on every poll would be paid for by every user to serve the few who open the
panel. This is fetched once, when they do.

## Path parameters

- `slug` string, required

## Response `200`

Successful Response

- MessageViewOut: The raw message, for reading. Absent once its retention window closes.
  - `available` boolean, required
  - `unavailable_reason` string, nullable, required
  - `size_bytes` integer, required
  - `headers` HeaderOut[], required
    - `name` string, required
    - `value` string, required
    - `forged` boolean, required
  - `text` string, nullable, required
  - `text_truncated` boolean, required
  - `html` string, nullable, required
  - `html_truncated` boolean, required
  - `attachments` AttachmentOut[], required
    - `filename` string, nullable, required
    - `content_type` string, required
    - `size_bytes` integer, required
    - `inline` boolean, required
  - `source` string, nullable, required
  - `source_truncated` boolean, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/email-spam-tester/apis/email-spam-tester-api.md) · [All operations](https://skmtc.dev/email-spam-tester/apis/email-spam-tester-api/llms.txt) · [OpenAPI document](https://skmtc.dev/email-spam-tester/apis/email-spam-tester-api/revisions/476a4c86600d?raw)
