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

> List Close opportunities with common CRM filters.

`close.listOpportunities` list Close opportunities with common CRM filters.

```ts automations/close-list-opportunities.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { close } from "automate.ax/close"

export default automation("List opportunities", () => {
  onDashboardRun({ title: "List opportunities" })
  close.listOpportunities({ statusType: "active", userId: "user_abc123" })
})
```

## Inputs

Optionally filter by `leadId`, `statusId`, `statusType` (`active`, `won`, or `lost`), and `userId`. `limit` defaults to `100`; `skip` defaults to `0`. Optional second argument `{ account }` selects a named Close binding.

## Output

Returns the opportunity page with `data`, `hasMore`, `totalResults`, counts by value period, and provider totals for raw, annualized, and confidence-adjusted values. Each total also includes Close's formatted currency string, or `null` when Close has no value to format. Currency values are provider integer units.
