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

> Lists connected-visible accounts with page metadata.

`cloudflare.listAccounts` lists connected-visible accounts with page metadata.

```ts automations/cloudflare-list-accounts.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { cloudflare } from "automate.ax/cloudflare"

export default automation("List accounts", () => {
  onDashboardRun({ title: "List accounts" })
  cloudflare.listAccounts({ page: 1, perPage: 20 })
})
```

Use `name` to filter. `page` defaults to `1`; `perPage` defaults to `20` (5–50). Optional second argument `{ account }` selects a static project account binding.

Returns `{ items, pageInfo }`; each item includes the account ID, name, type, and settings.
