---
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`

## Request

- Base URL: `https://api.agentmail.to`
- URL: `https://api.agentmail.to/v0/inboxes/{inbox_id}/messages/{message_id}/raw`
- Auth: HTTP bearer

**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`

---

[API](https://skmtc.dev/agentmail-to/apis/agentmail-cli-speakeasy-api.md) - [All operations](https://skmtc.dev/agentmail-to/apis/agentmail-cli-speakeasy-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentmail-to/apis/agentmail-cli-speakeasy-api/revisions/869b7f1c360c?raw)
