Skip to main content
GET
Get Raw Message
Returns the original RFC 822 source of one message as message_id, size, a short-lived download_url and expires_at. The bytes are not inlined — fetch download_url before it expires. Use this for headers, DKIM or exact MIME structure; for parsed text and HTML use get_agentmail_inbox_message.

Example

First time? Point any MCP client at https://mcp.aisa.one/mcp — Claude Code, Codex, Cursor, VS Code and the rest. Authorization is OAuth: the client opens a browser, you click Allow once, and there is no key to paste. The commands per client, and what each call costs, are on aisa.one/mcp.
Set this endpoint up in your agent →

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Authorization
string
required

Bearer authentication

Path Parameters

inbox_id
string
required

The ID of the inbox.

message_id
string
required

ID of message.

Response

Response with status 200

S3 presigned URL to download the raw .eml file.

message_id
string
required

ID of the message.

size
integer
required

Size of the raw 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.