Batch send
POST /emails/batch — up to 100 independently validated messages.
Early access
POST /v1/emails/batch accepts up to 100 messages. Each item is validated independently. The response is a per-item result array: successes with id + status, failures with an RFC 9457 code.
const { data } = await mailroom.emails.batch([
{
from: 'hello@acme.dev',
to: ['one@example.com'],
subject: 'One',
text: 'One',
},
{
from: 'hello@acme.dev',
to: ['two@example.com'],
subject: 'Two',
text: 'Two',
},
]);
for (const item of data.items) {
if (item.error) console.error(item.error.code);
else console.log(item.id, item.status);
}Each item may carry its own Idempotency-Key (or inherit a request-level key plus index). Policy evaluation, suppression, and quotas apply per item.
Do not use batch for marketing blasts. There is no campaign product in v1. broadcast stream still requires unsubscribe headers and a physical address footer field.