> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Send batch emails

> Send up to 100 Resend emails in one provider request.

`sendBatchEmails` sends an ordered batch of transactional messages. Use it when
one provider request should create many independent emails.

## Example

```ts automations/send-resend-batch.automation.ts theme={null}
import { automation } from "automate.ax"
import { sendBatchEmails } from "automate.ax/resend"

export default automation("Send Resend batch", () => {
  sendBatchEmails({
    idempotencyKey: "digest-batch-2026-08-05",
    emails: [
      {
        from: "Reports <reports@example.com>",
        to: "ada@example.com",
        subject: "Digest",
        text: "Your digest.",
      },
      {
        from: "Reports <reports@example.com>",
        to: "grace@example.com",
        subject: "Digest",
        text: "Your digest.",
      },
    ],
  })
})
```

## Inputs

`emails` is an array of 1–100 items using the same fields and custom-content or
template rules as `sendEmail`. Batch sends do not support attachments and fail
before the request if any item contains them. Per-email `idempotencyKey` values
are ignored; use the optional batch-level `idempotencyKey`, retained for 24
hours. Optional `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.
