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

> List contact and account lists visible in Apollo.

`listLists` returns Apollo's provider-native contact and account lists.

```ts automations/list-apollo-lists.automation.ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { listLists } from "automate.ax/apollo"

export default automation("List Apollo contact lists", () => {
  onHttpRequest({ scope: "automation" })
  listLists({ recordType: "contacts" })
})
```

Optional `recordType` is `"contacts" | "accounts"`; omitting it returns both.
Optional `account` selects the Apollo binding. Returns `{ lists: ApolloList[] }`.
Each list includes `id`, `name`, `cachedCount`, optional `modality`, owner/team
IDs, and timestamps. Use `id` where a later action accepts a list reference;
membership mutations use exact `listNames` because that is Apollo's native API.
