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

# December 2026

**December 2026**

## Sales Agent — seven endpoints retired, assign and stop added

The Sales Agent API now has six endpoints. Seven endpoints were retired, two are new, and four return different responses. Existing integrations that call a retired endpoint get **`410 Gone`** with error code **`200128`** (`ENDPOINT_RETIRED`) and a message naming the replacement. See [Working Leads](https://developer.lofty.com/guides/working-leads.md) for the whole flow.

### Retired

| Endpoint | Use instead |
| - | - |
| **`POST /v2.0/working-leads/add`** | [`POST /v2.0/working-leads/assign`](https://developer.lofty.com/api-reference/sales-agents/assign-working-leads) with `leadIds` and an optional `salesAgent`. |
| **`PUT /v2.0/sales-agents/working-lead/{leadId}/unmute`** | Assign the lead again with [`POST /v2.0/working-leads/assign`](https://developer.lofty.com/api-reference/sales-agents/assign-working-leads). |
| **`GET /v2.0/sales-agents/working-lead/{leadId}`** | [`GET /v2.0/sales-agents/by-lead`](https://developer.lofty.com/api-reference/sales-agents/get-sales-agent-by-lead-id) and read `workingStatus`. |
| **`GET /v2.0/sales-agent/lead/mute-status`** | [`GET /v2.0/sales-agents/by-lead`](https://developer.lofty.com/api-reference/sales-agents/get-sales-agent-by-lead-id); `workingStatus` `stopped` replaces a muted lead. |
| **`GET /v2.0/sales-agent/settings`** | [`GET /v2.0/sales-agents/current`](https://developer.lofty.com/api-reference/sales-agents/get-current-users-sales-agent) returns the channel switches. The other settings are no longer exposed. |
| **`POST /v2.0/sales-agent/ai-number/send-sms-to-agent`** | [`POST /v2.0/sales-agent/message/sms/send-to-agent`](https://developer.lofty.com/api-reference/notifications/send-system-sms-to-agent). |
| **`GET /v2.0/plan-tasks/lead/{leadId}`** | None. It no longer returned any data. |

### New

* **`POST /v2.0/working-leads/assign`** — [Assign leads to Sales Agent](https://developer.lofty.com/api-reference/sales-agents/assign-working-leads.md). Takes `leadIds` (1 to 100) and an optional `salesAgent` (`personal` or `team`); without it, each lead goes by ownership. Returns `succeededLeads`, `failedLeads` (each with a `reason` code) and `remainingQuota`. A lead that a Sales Agent already works counts as succeeded, uses no capacity and stays with that Sales Agent. Rate limited to 30 requests per account, 60 per client IP and 1,000 across all callers every 60 seconds; over a limit it returns `429` with `Retry-After`. When the limit cannot be checked it returns `503` with code `200144` and assigns nothing.
* **`PUT /v2.0/working-leads/{leadId}/stop`** — [Stop Sales Agent working a lead](https://developer.lofty.com/api-reference/sales-agents/stop-working-lead.md). Stops follow-up on the lead, the same as stopping it in the CRM; the lead's timeline names you. To resume, assign the lead again, which takes a capacity slot again.

### Changed

* **`GET /v2.0/sales-agents/current`** — now [List usable Sales Agents](https://developer.lofty.com/api-reference/sales-agents/get-current-users-sales-agent.md). Returns `salesAgents`, an array with your own Sales Agent and the team Sales Agent you borrow (empty when you have none), instead of one `salesAgent` object. Each entry adds `salesAgentType`, `ownerUserId`, `ownerName`, `salesAgentIdentity`, `planType` and the channel switches `websiteChannel`, `textChannel`, `emailChannel` and `callChannel`. Removed: `userId`, `agentName`, `agentHeadUrl`, `followUpRole`, `agentExperience`, `email`, `hasQuotaSeat`, `borrowLevel`, `borrowId`.
* **`GET /v2.0/sales-agents/quota`** — returns `quotas`, one entry per usable Sales Agent, instead of one `quota` object. Each entry adds `salesAgentType`, `ownerUserId`, `ownerName` and `assistantName`. Removed: `hasQuotaAvailable`, `usagePercentage`, `isBorrowed`, `borrowLevel`, `borrowedFrom`.
* **`GET /v2.0/sales-agents/by-lead`** — `salesAgent` adds `workingStatus` (`working`, `stopped` or `not_working`), `workingStartedAt`, `salesAgentType` (`other` for a Sales Agent you cannot use), `ownerUserId`, `ownerName` and `planType`. A lead that no Sales Agent works returns `not_working` with every Sales Agent field `null`. Removed: `userId`, `agentName`, `agentHeadUrl`, `followUpRole`, `agentExperience`, `email`, `createdAt`, `updatedAt`, `borrowLevel`, `borrowId`.
* **`GET /v2.0/working-leads`** — no longer accepts `aiStage`: a non-empty value returns `400`. `createdAt` is replaced by **`workingStartedAt`**, when the Sales Agent started its latest follow-up of the lead. This is a different value, not a rename. Each lead now names its Sales Agent (`salesAgentType`, `ownerUserId`, `ownerName`, `assistantName`). `sort` and `desc` are no longer documented; they had no effect.

### MCP

* [`search_sales_agent`](https://developer.lofty.com/mcp/tools/search-sales-agent) has the kinds `pool`, `quota`, `current` and `by_lead`. `is_in_pool`, `mute_status` and `settings` return an error naming the replacement, and `plan_tasks` was removed.
* [`manage_sales_agent`](https://developer.lofty.com/mcp/tools/manage-sales-agent) has the actions `assign` (was `add_to_pool`) and `stop` (was `mute`); the old names are still accepted. `assign` takes `sales_agent` (`personal` or `team`) instead of `ai_assistant_id`. `unmute` and `ai_number_sms` were removed.


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