← Back to AgentMail
PATCH/v0/inboxes/{inbox_id}/messages/{message_id}
Update Message
Update labels on a message (e.g., mark as read, archive, star).
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);Body parameters
labels
array
Array of label strings to set on the message (e.g., ["read", "starred"]). Replaces existing labels.
Response
labels.0
string
message_id
string