---
title: "Get the message HTML body (sanitized)"
method: GET
path: "/body/{email}/{messageId}"
tags: ["Messages"]
---

# Get the message HTML body (sanitized)

`GET /body/{email}/{messageId}`

Get safe HTML from an email message. Scripts, images and links are stripped out. This HTML
is safer to render than the potentially "dirty" original HTML.

When no HTML body was sent in the original message, a simple HTML body will be created.

Use the querystring param ?download=1 to trigger file download in browser.

## Response `200`

OK

## Other responses

- `401` — Not authorized. You may need to log in first.
- `404` — Message not found by id...

---

[API](https://skmtc.net/mailsac/apis/mailsac-api-specification.md) · [All operations](https://skmtc.net/mailsac/apis/mailsac-api-specification/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mailsac/mailsac-api-specification/revisions/5f8b55c76229/schema)
