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

> List Close leads with offset pagination.

`close.listLeads` list Close leads with offset pagination.

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

export default automation("List leads", () => {
  onDashboardRun({ title: "List leads" })
  close.listLeads({ limit: 50, skip: 0 })
})
```

## Inputs

`limit` is an integer from 1 to 200 and defaults to `100`. `skip` is a nonnegative integer and defaults to `0`. Optional second argument `{ account }` selects a named Close binding.

## Output

Returns `{ data: CloseLead[], hasMore: boolean }`. Use `skip + data.length` for the next page when `hasMore` is true.
