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

> List teams visible to the connected Linear user.

`listTeams` discovers team IDs required by issue and project actions.

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

export default automation("List Linear teams", () => {
  onHttpRequest({ scope: "automation" })
  listTeams({ includeArchived: false, limit: 50 })
})
```

`limit` is 1–50 and defaults to `50`; `after` continues from `pageInfo.endCursor`; `includeArchived` controls archived teams; optional `account` defaults to the project binding.

Returns `{ teams: LinearTeam[]; pageInfo: LinearPageInfo }`, including team key, names, color/icon, description, workflow settings, estimate settings, privacy, timezone, and dates.
