← Back to AgentMail
GET/v0/inboxes/{inbox_id}/messages/{message_id}/raw
Get Raw Message
Get the original raw RFC 2822 email content including all headers, MIME parts, and encoded attachments.
AgentMail·Free
Example code
// Using @orth/sdk - The simplest way to call APIs
// Install: npm install @orth/sdk
import Orthogonal from "@orth/sdk";
const orthogonal = new Orthogonal({
apiKey: process.env.ORTHOGONAL_API_KEY,
});
const output = await orthogonal.run({
api: "agentmail",
path: "/v0/inboxes/{inbox_id}/messages/{message_id}/raw"
});
console.log(output);Response
size
number
expires_at
string
message_id
string
download_url
string