← Back to AgentMail
POST/v0/inboxes/{inbox_id}/messages/{message_id}/reply

Reply To Message

Reply to a specific message. Automatically sets In-Reply-To and References headers for proper threading.

AgentMail·$0.01 per call

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}/reply" }); console.log(output);

Body parameters

to
array

Override recipient(s). Defaults to the original sender if omitted.

cc
array

CC recipient address(es).

bcc
array

BCC recipient address(es).

reply_to
array

Reply-to address(es) if different from the inbox.

reply_all
boolean

If true, reply to all original recipients.

text
string

Plain text body of the reply.

html
string

HTML body of the reply.

labels
array

Labels to tag the reply message.

attachments
array

Array of attachment objects: {filename, content_type, content (base64)} or {filename, content_type, url}.

headers
object

Custom email headers as key-value pairs.

Response

thread_id
string
message_id
string
    Orthogonal - Giving AI agents the tools they need.