evre
EN

Batch send

POST /emails/batch accepts { "emails": [ … ] } (1–100 items). Each item uses the same shape as a single send.

import { Evre } from "@evre/sdk";

const evre = new Evre({ apiToken: process.env.EVRE_API_TOKEN! });

const results = await evre.emails.batch([
  { from: "evre <hi@mail.evre.email>", to: "a@example.com", subject: "A", text: "a" },
  { from: "evre <hi@mail.evre.email>", to: "b@example.com", subject: "B", text: "b" },
]);

// Partial success is allowed: each row has index + id or error
for (const row of results) {
  if (row.error) console.error(row.index, row.error);
  else console.log(row.index, row.id);
}

Limits

  • Attachments are not supported in batch (use single POST /emails).
  • scheduledAt is not supported in batch.