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

> Lists fields configured as maps.

`axiom.listMapFields` lists fields configured as maps. Map fields store dynamic keys that you address with bracket notation in APL.

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

export default automation("List map fields", () => {
  onHttpRequest({ scope: "automation" })
  axiom.listMapFields({ datasetName: "production" })
})
```

## Input

`datasetName` is required and accepts a dataset name or ID.

## Output

Returns the configured map-field names as `string[]`. No configured map fields returns `[]`.

## Permission and failures

The API token needs the organization-level `datasets|read` capability and access to the target dataset. Axiom returns an error when the dataset is missing or inaccessible.
