> ## Documentation Index
> Fetch the complete documentation index at: https://developer.lofty.com/llms.txt
> Use this file to discover all available pages before exploring further.

# search_sales_agent

> The AI Sales Agent: the leads it works, the Sales Agents you can use, their capacity, and which Sales Agent works a lead.

> [!NOTE]
>
> **READ** · 4 operations · never changes data

The AI Sales Agent: which leads it is working, which Sales Agents you can use (personal and team) with their channel switches, the capacity of each, and whether a Sales Agent works a given lead.

```js theme={null}
search_sales_agent({
  kind: "pool" | "quota" | "current" | "by_lead",
  lead_id?, limit?, offset?, filters?
})
```

| `kind` | Required | Notes |
| - | - | - |
| `pool` (default) | — | The leads a Sales Agent is working, each naming its Sales Agent and `workingStartedAt`. `limit` (at most 100, default 20) and `offset` (default 0) page the pool; `filters` accepts the same two keys. |
| `current` | — | The Sales Agents you can use (`personal` and `team`), with `status`, `planType` and the four channel switches. |
| `quota` | — | Capacity of each usable Sales Agent: `totalQuota`, `usedQuota` (leads worked now), `remainingQuota`. |
| `by_lead` | `lead_id` | `workingStatus` (`working`, `stopped` or `not_working`) and which Sales Agent. |

> [!WARNING]
>
> Filtering the pool by AI stage is no longer supported — the API refuses `aiStage` with an error. The pool reads from a search index that trails the actual state; use `kind: "by_lead"` for a lead's current state.

> [!NOTE]
>
> `is_in_pool`, `mute_status` and `settings` were retired in December 2026 and return an error naming the replacement: use `by_lead` for the first two and `current` for the channel switches. `plan_tasks` was removed. See the [December 2026 changelog](https://developer.lofty.com/changelog/2026-12).

> [!NOTE]
>
> An argument not listed above, such as `page`, is rejected with an error that names the accepted arguments, rather than ignored.

> [!WARNING]
>
> Boundary — this manages *which leads the AI follows up on*, not the lead data itself.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.