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

> Start an automation when Resend records a link click.

`onResendEmailClicked` emits `email.clicked` for tracked email links. Automated
security scanners can generate clicks, so do not use the event alone for
security-sensitive confirmation.

```ts automations/record-resend-click.automation.ts theme={null}
import { automation } from "automate.ax"
import { onResendEmailClicked } from "automate.ax/resend"

export default automation("Record Resend clicks", () => {
  const clicked = onResendEmailClicked()
  clicked.transform(({ createdAt, data }) => ({
    createdAt,
    emailId: data.email_id,
    link: data.click,
  }))
})
```

Optional static `account` selects the Resend binding. Returns
`{ type: "email.clicked"; createdAt; data }`. `data` is provider-native JSON and
may include the clicked link plus email, recipient, and client context.
