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

> List system, custom, and CRM-synced fields in Apollo.

`listFields` discovers field IDs for `customFields` inputs and dynamic mappings.

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

export default automation("List custom Apollo fields", () => {
  onHttpRequest({ scope: "automation" })
  listFields({ source: "custom" })
})
```

Optional `source` is `"crm_synced" | "custom" | "system"`; omitting it returns
all sources. Optional `account` selects the binding. Returns `{ fields }` with
`fieldId`, `label`, `modality`, `type`, contexts, source, metadata, workspace,
and timestamps. Custom-field mutation inputs are keyed by `fieldId`, not label.
