> ## 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.

# On Resend email event

> Start an automation from any Resend email event.

`onResendEmailEvent` is the broad Resend trigger for send, delivery, engagement,
failure, suppression, scheduling, and inbound events. Use a specific helper when
the automation only handles one category.

```ts automations/watch-all-resend-events.automation.ts theme={null}
import { automation } from "automate.ax"
import { onResendEmailEvent } from "automate.ax/resend"

export default automation("Watch all Resend events", () => {
  const event = onResendEmailEvent()
  event.transform(({ createdAt, data, type }) => ({ createdAt, data, type }))
})
```

Optional static `account: string | IntegrationAccountReference<"resend">`
defaults to the project binding and cannot be a signal.

Returns `{ createdAt: string; data: Record<string, JsonValue>; type }`, where
`type` is `email.sent`, `email.delivered`, `email.bounced`, `email.failed`,
`email.opened`, `email.clicked`, `email.complained`, `email.received`,
`email.delivery_delayed`, `email.scheduled`, or `email.suppressed`. `createdAt`
is the normalized ISO timestamp. `data` remains provider-native so fields such
as `email_id`, recipients, links, and failure details depend on the event type.
