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

const client = new AIInbx({
  apiKey: 'My API Key',
});

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

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

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 length: 320
subject
string
Maximum length: 998
text
string
cc
bcc
reply_all
boolean
default:false
is_draft
boolean
default:false

Response

Successful response

emailId
string
required
threadId
string
required
messageId
string
required