---
title: "Download raw message"
method: GET
path: "/v1/messages/{id}/raw"
tags: ["messages"]
---

# Download raw message

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

## Request

- Base URL: `https://api.openmail.sh`
- URL: `https://api.openmail.sh/v1/messages/{id}/raw`
- Auth: HTTP bearer

Returns the original RFC 822 bytes of an inbound message as `message/rfc822`, exactly as received.

## Path parameters

- `id` string, required

## Response `200`

Original message bytes

## Other responses

- `401`: Missing, invalid, or expired API key
- `404`: Message not found, or its original bytes weren't kept

---

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