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

> Lists leads captured by a lead form.

`metaAds.listLeads` lists leads captured by a lead form.

```ts automations/meta-ads-list-leads.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { metaAds } from "automate.ax/meta-ads"

export default automation("List leads", () => {
  onDashboardRun({ title: "List leads" })
  const page = metaAds.listLeads({ formId: "form-id", pageId: "page-id" })
  // Use page in the next advertising, reporting, or delivery operation.
})
```

Pass the Page that owns the form so Automate.ax can resolve its Page access token. Use cursor inputs for backfills; treat captured field values as personal data. Optional second argument `{ account }` selects a static project account binding.

Returns `{ items, pageInfo }` with attribution, capture time, and `fieldData`.
