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

Response

200
application/json

Successful response

The response is of type object.