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

> Lists datasets visible to the token.

`axiom.listDatasets` lists datasets visible to the token. Each item includes its ID, name, kind, description, timestamps, owner, retention settings, and edge metadata when present.

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

export default automation("List datasets", () => {
  onHttpRequest({ scope: "automation" })
  axiom.listDatasets({})
})
```

## Inputs

This action has no inputs.

## Output

Returns an array of datasets visible to the token. Each item includes `id`, `name`, `kind`, `description`, `created`, `updatedAt`, and `who`; retention, write access, sharing, map-field, and edge-deployment fields appear when Axiom provides them. No visible datasets returns `[]`.

## Permission and failures

Axiom requires a valid API token but no specific token capability for this endpoint. The result is limited to datasets the token can access. Expired or revoked tokens fail authentication.
