POST
/
emails
TypeScript
import Nuntly from '@nuntly/sdk';

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

const response = await client.emails.send({
  from: 'ray@info.tomlinson.ai',
  subject: 'Welcome to Tomlinson AI!',
  to: 'carlo43@gmail.com',
});

console.log(response.id);
{
  "data": {
    "id": "em_01jnvnn9avq52k5mrhn1gab0ch",
    "org_id": "org_01jh6jk82zjq9deye73h0mzcaq",
    "status": "queued",
    "kind": "email"
  }
}

Authorizations

Authorization
string
header
required

Bearer HTTP authentication. Allowed headers Authorization: Bearer <API_KEY>

Body

application/json

Response

200
application/json

A successful response

The response is of type object.