Skip to main content
POST
/
emails
/
send
JavaScript
import AIInbx from 'aiinbx';

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

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

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

Authorizations

Authorization
string
header
required

API Key authentication using Bearer token

Body

application/json
to
required
from
string<email>
required
subject
string
required
Maximum length: 998
html
string
required
from_name
string
Maximum length: 320
text
string
cc
bcc
reply_to
threadId
string
in_reply_to
string
references
string[]
is_draft
boolean
default:false

Response

Successful response

emailId
string
required
threadId
string
required
messageId
string
required