Skip to main content
resend.sendEmailBatch creates up to 100 independent transactional emails in one request.

Example

automations/send-resend-batch.automation.ts

Inputs

emails is an array of 1–100 items using the same fields, body derivation, and custom-content or template rules as resend.sendEmail. Batch sends don’t support attachments and fail before the request if any item contains them. Resend ignores per-email idempotencyKey values. Use the optional batch-level idempotencyKey, which Resend retains for 24 hours. Optional second argument { account } selects the Resend binding.

Output

Returns { data: { id: string }[] }. IDs use the same order as the input emails, so keep positional correspondence when storing results.