import Inbound from 'inboundemail';
const client = new Inbound({
apiKey: process.env['INBOUND_API_KEY'], // This is the default and can be omitted
});
const response = await client.emails.reply('id', { from: 'from' });
console.log(response.id);{
"id": "<string>",
"message_id": "<string>",
"aws_message_id": "<string>",
"replied_to_email_id": "<string>",
"is_thread_reply": true,
"replied_to_thread_id": "<string>"
}Reply to an email or thread. Accepts either an email ID or thread ID (replies to latest message in thread). Supports reply all functionality.
import Inbound from 'inboundemail';
const client = new Inbound({
apiKey: process.env['INBOUND_API_KEY'], // This is the default and can be omitted
});
const response = await client.emails.reply('id', { from: 'from' });
console.log(response.id);{
"id": "<string>",
"message_id": "<string>",
"aws_message_id": "<string>",
"replied_to_email_id": "<string>",
"is_thread_reply": true,
"replied_to_thread_id": "<string>"
}Your Inbound API key. Include it in the Authorization header as: Bearer
Email ID or Thread ID to reply to
Sender email address
Recipient email address(es) - defaults to original sender
Email subject - defaults to Re: original subject
HTML content of the email
Plain text content of the email
Custom email headers
Show child attributes
Include original CC recipients
Show child attributes
Was this page helpful?