Skip to main content
POST
/
emails
/
{emailId}
/
reply
JavaScript
import AIInbx from 'aiinbx';

const client = new AIInbx({
  apiKey: process.env['AI_INBX_API_KEY'], // This is the default and can be omitted
});

const response = await client.emails.reply('emailId', { from: 'dev@stainless.com', html: 'html' });

console.log(response.emailId);
{
  "emailId": "<string>",
  "threadId": "<string>",
  "messageId": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.aiinbx.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API Key authentication using Bearer token

Path Parameters

emailId
string
required

The ID of the email being replied to

Body

application/json
from
string<email>
required
html
string
required
to
from_name
string
Maximum string length: 320
subject
string
Maximum string length: 998
text
string
cc
bcc
reply_all
boolean
default:false
is_draft
boolean
default:false
attachments
object[]
track_opens
boolean
track_clicks
boolean

Response

Successful response

emailId
string
required
threadId
string
required
messageId
string
required