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.send({ from: 'dev@stainless.com', html: 'html', subject: 'subject', to: 'dev@stainless.com',});console.log(response.emailId);
Send an email from a verified domain belonging to the organization. Useful for transactional or conversational messages. Returns metadata including identifiers for further queries.
POST
/
emails
/
send
JavaScript
Copy
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.send({ from: 'dev@stainless.com', html: 'html', subject: 'subject', to: 'dev@stainless.com',});console.log(response.emailId);