Skip to main content
POST
/
emails
/
bulk
JavaScript
import Nuntly from '@nuntly/sdk';

const client = new Nuntly({
  apiKey: process.env['NUNTLY_API_KEY'], // This is the default and can be omitted
});

const response = await client.emails.bulk.send({ emails: [{}] });

console.log(response.id);
{
  "data": {
    "emails": [
      {
        "status": "queued",
        "id": "<string>"
      }
    ],
    "id": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
emails
object[]
required

The bulk emails to send

Minimum array length: 1
fallback
object

Used as a fallback field email value if no value is present in emails

Response

202 response

data
object
required