> ## 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 opportunity lost reasons

> Lists configured reasons for lost opportunities.

`highlevel.listOpportunityLostReasons` lists configured reasons for lost opportunities.

```ts automations/highlevel-list-opportunity-lost-reasons.automation.ts theme={null}
import { automation, markSignificant } from "automate.ax"
import { highlevel } from "automate.ax/highlevel"

export default automation("List opportunity lost reasons", () => {
  markSignificant(highlevel.listOpportunityLostReasons({}))
})
```

## Input

| Field      | Type      | Required | Description                |
| ---------- | --------- | -------- | -------------------------- |
| `name`     | `string`  | No       | HighLevel name value.      |
| `deleted`  | `boolean` | No       | HighLevel deleted value.   |
| `query`    | `string`  | No       | HighLevel query value.     |
| `skip`     | `number`  | No       | HighLevel skip value.      |
| `limit`    | `number`  | No       | HighLevel limit value.     |
| `getCount` | `boolean` | No       | HighLevel get count value. |

Automate.ax supplies the connected sub-account's location ID. Optional second argument `{ account }` selects a named HighLevel binding.

## Output

| Field         | Type       | Required | Description                   |
| ------------- | ---------- | -------- | ----------------------------- |
| `lostReasons` | `object[]` | No       | HighLevel lost reasons value. |
| `total`       | `number`   | No       | HighLevel total value.        |

This action calls `GET /opportunities/lost-reason` with HighLevel API version `2021-07-28` and requires `opportunities.readonly`. HighLevel validation and permission errors fail the action. Rate limits honor the provider's retry timing.
