> ## 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 delivery delayed

> Start an automation when email delivery is temporarily delayed.

`onResendEmailDeliveryDelayed` emits `email.delivery_delayed` when a delivery is
temporarily deferred rather than permanently bounced.

```ts automations/monitor-resend-delay.automation.ts theme={null}
import { automation } from "automate.ax"
import { onResendEmailDeliveryDelayed } from "automate.ax/resend"

export default automation("Monitor Resend delays", () => {
  const delayed = onResendEmailDeliveryDelayed()
  delayed.transform(({ createdAt, data }) => ({
    createdAt,
    emailId: data.email_id,
    delay: data.delivery_delay,
  }))
})
```

Optional static `account` defaults to the project binding. Returns
`{ type: "email.delivery_delayed"; createdAt; data }`. Resend can continue retrying
after this event, so wait for delivered, bounced, or failed events for a final
outcome.
