← Back to AgentMail
GET/v0/inboxes/{inbox_id}/messages/{message_id}
Get Message
Get a specific message including headers, body (text and HTML), attachments, and metadata.
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}"
});
console.log(output);Response
to.0
string
from
string
html
string
size
number
labels.0
string
pod_id
string
headers.ARC-Seal
string
headers.X-Received
string
headers.Delivered-To
string
headers.X-CSE-MsgGUID
string
headers.X-Forwarded-To
string
headers.X-Forwarded-For
string
headers.X-Gm-Message-State
string
headers.X-CSE-ConnectionGUID
string
headers.ARC-Message-Signature
string
headers.X-Forwarded-Encrypted
string
headers.Authentication-Results
string
headers.X-Google-DKIM-Signature
string
smtp_id
string
subject
string
inbox_id
string
thread_id
string
timestamp
string
created_at
string
message_id
string
updated_at
string
extracted_html
string
organization_id
string