---
title: "Get Raw Message"
method: GET
path: "/v0/inboxes/{inbox_id}/messages/{message_id}/raw"
tags: ["InboxesMessages"]
---

# Get Raw Message

`GET /v0/inboxes/{inbox_id}/messages/{message_id}/raw`

**CLI:**
```bash
agentmail inboxes:messages get-raw --inbox-id <inbox_id> --message-id <message_id>
```

## Path parameters

- `inbox_id` string, required — The ID of the inbox.
- `message_id` string, required — ID of message.

## Response `200`

- RawMessageResponse — S3 presigned URL to download the raw .eml file.
  - `message_id` string, required — ID of message.
  - `size` integer, required — Size of message in bytes.
  - `download_url` string, required — S3 presigned URL to download the raw message. Expires at expires_at.
  - `expires_at` string, date-time, required — Time at which the download URL expires.

## Other responses

- `404`

## Changes

- **2026-07-15** `394ddcdd9c29` — 3 info
  - added the optional property `code` to the response with the `404` status
  - added the optional property `docs` to the response with the `404` status
  - added the optional property `fix` to the response with the `404` status
- **2026-03-09** `c790c278b7ca` — 1 breaking, 1 info
  - removed the success response with the status `204`
  - added the success response with the status `200`

[Change history](https://skmtc.dev/agentmail-to/apis/api/changes/v0/inboxes/:inbox_id/messages/:message_id/raw/get.md)

---

[API](https://skmtc.dev/agentmail-to/apis/api.md) · [All operations](https://skmtc.dev/agentmail-to/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agentmail-to/api/revisions/394ddcdd9c29/schema)
