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

> List Asana workspaces and organizations available to the connected user.

`listWorkspaces` discovers the workspace GIDs required by project and task actions.

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

export default automation("List Asana workspaces", () => {
  onHttpRequest({ scope: "automation" })
  listWorkspaces({ limit: 100 })
})
```

`limit` is 1–100 and defaults to `100`; optional `offset` is the opaque token from the previous result; optional `account` defaults to the project binding.

Returns `Signal<{ workspaces: AsanaWorkspace[]; pageInfo: { nextOffset?: string } }>`; workspaces include `id`, name/type, `emailDomains`, and `isOrganization`.
