Skip to main content
POST
/
api
/
e2
/
emails
/
{id}
/
reply
JavaScript
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>"
}

Authorizations

Authorization
string
header
required

Your Inbound API key. Include it in the Authorization header as: Bearer

Path Parameters

id
string
required

Email ID or Thread ID to reply to

Body

from
string
required

Sender email address

to

Recipient email address(es) - defaults to original sender

subject
string

Email subject - defaults to Re: original subject

html
string

HTML content of the email

text
string

Plain text content of the email

headers
object

Custom email headers

attachments
object[]
reply_all
boolean

Include original CC recipients

tags
object[]

Response

Response for status 200

id
string
required
message_id
string
required
aws_message_id
string
required
replied_to_email_id
string
required
is_thread_reply
boolean
required
replied_to_thread_id
string