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

# List emails

> List sent and scheduled Resend emails with cursor pagination.

`listEmails` returns summary records for recent Resend emails.

```ts automations/list-resend-emails.automation.ts theme={null}
import { automation } from "automate.ax"
import { listEmails } from "automate.ax/resend"

export default automation("List Resend emails", () => {
  listEmails({ limit: 50 })
})
```

`limit` accepts 1–100 and defaults to 20. `after` and `before` are email-ID
cursors and cannot be used together. Optional `account` selects the binding.

Returns `{ data, hasMore, object }`. Each summary has `id`, sender, recipients,
subject, `createdAt`, latest event, nullable schedule time, and optional nullable
provider message ID. For forward pagination, use the last returned ID as
`after`; for backward pagination, use `before` according to Resend's cursor
semantics.
