> ## 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 lead forms

> Lists lead-generation forms owned by a Facebook Page.

`metaAds.listLeadForms` lists lead-generation forms owned by a Facebook Page.

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

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

The connected identity needs Page visibility and Lead Ads access. Automate.ax resolves the Page access token for `pageId` before listing forms. Optional second argument `{ account }` selects a static project account binding.

Returns `{ items, pageInfo }` with form IDs, names, locale, and status.
