---
title: "A filed message as its sender laid it out"
method: GET
path: "/api/v1/mail/messages/{id}/body"
tags: ["Desk"]
---

# A filed message as its sender laid it out

`GET /api/v1/mail/messages/{id}/body`

## Request

- Base URL: `http://localhost:5180`
- URL: `http://localhost:5180/api/v1/mail/messages/{id}/body`
- Auth: API key in cookie `better-auth.session_token`

The HTML of a message that arrived in a connected mailbox, read from the team's own mail folder. Scripts, frames, forms and event handlers are taken out and inline images are embedded; images from elsewhere are left as they are and flagged, so a screen can hold them back until a person asks.

## Path parameters

- `id` string, required

## Response `200`

The message, ready for a sandboxed frame.

- object
  - `ok` unknown, required
  - `data` object, required
    - `html` string, required: The message as its sender laid it out, with nothing in it that runs and its inline images embedded. Shown in a sandboxed frame.
    - `remoteImages` boolean, required: Whether it loads images from elsewhere, which tell the sender it was opened. Shown only when a person asks.
    - `withoutQuoted` string: The same letter without the earlier messages it quotes, which the conversation already shows. Absent where it quotes none.
  - `meta` object, required
    - `requestId` string, required: Echoed in the x-request-id header. Quote it in a bug report.

## Other responses

- `404`: No such message on this team, or it came without HTML: its text is on the message itself.

---

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