Skip to main content
A working lead is a lead that a Sales Agent (Lofty’s AI assistant) is following up. This guide shows how to find the Sales Agents you can use, check their capacity, assign leads, check and list the leads they work, and stop follow-up on a lead. You can use up to two Sales Agents: your own (salesAgentType personal) and the team Sales Agent you borrow from your team owner (team). A team owner’s own Sales Agent is the team Sales Agent. Responses name a Sales Agent by salesAgentType, ownerUserId, ownerName and assistantName. A Sales Agent you cannot use, such as another member’s personal Sales Agent, shows up as other. Sales Agent settings cannot be read or changed through the API. Change them in the Lofty CRM.

List the Sales Agents you can use

Send a GET request to /v2.0/sales-agents/current. See List usable Sales Agents.
The response holds a salesAgents array, your own Sales Agent first. It is empty when you have no usable Sales Agent. Each entry carries status (ACTIVE or INACTIVE), planType and the four channel switches: websiteChannel, textChannel, emailChannel and callChannel.

Check capacity

Send a GET request to /v2.0/sales-agents/quota. See Get Sales Agent quota.
The response holds a quotas array with one entry per usable Sales Agent: totalQuota, usedQuota and remainingQuota. Capacity is concurrent. One lead takes one slot, however many messages it gets. usedQuota is the number of leads worked now, not cumulative usage. A slot frees up only when a lead is finished or stopped, or when more capacity is bought; capacity never resets on a schedule. A borrowed team Sales Agent reports the team owner’s capacity.

Assign leads to a Sales Agent

Send a POST request to /v2.0/working-leads/assign with 1 to 100 lead IDs. See Assign leads to Sales Agent.
  • Without salesAgent, each lead goes by ownership: a team lead to the team Sales Agent, a personal lead to your personal one.
  • With salesAgent set to personal or team, every lead that is not worked yet goes to that Sales Agent. If you have no such Sales Agent, the whole request is refused with 400.
The response reports each lead:
  • succeededLeads — leads a Sales Agent now works. A lead that was already worked counts as succeeded with alreadyWorking: true. It uses no capacity and stays with the Sales Agent working it, even when salesAgent names another one; the entry names the Sales Agent actually working it.
  • failedLeads — leads that were not assigned, each with a reason code and a readable message.
  • remainingQuota — the capacity left on each of your Sales Agents after the request.
Assign is the only Sales Agent endpoint that uses capacity. It is rate limited to 30 requests per account, 60 per client IP and 1000 across all callers every 60 seconds. Over any of these limits it returns 429 with a Retry-After header. When the rate limit cannot be checked, the request is refused with 503 (code 200144) and no lead is assigned; retry later.

Check whether a Sales Agent works a lead

Send a GET request to /v2.0/sales-agents/by-lead with a leadId query parameter. See Get Sales Agent by lead.
The response’s salesAgent object has a workingStatus: workingStartedAt is when the Sales Agent started its latest follow-up of the lead. A lead you cannot access returns 403.

List working leads

Send a GET request to /v2.0/working-leads. Page with limit (1 to 100, default 20) and offset (default 0); offset + limit must not exceed 10000. See List working leads.
The response holds workingLeads and metadata (total, count, offset, limit). Each lead names the Sales Agent working it and has workingStartedAt, when that Sales Agent started its latest follow-up.
The list comes from a search index that trails the actual state. A lead that was just stopped can stay listed for a short while, with its Sales Agent fields and workingStartedAt set to null. Use Get Sales Agent by lead for a lead’s current state.
Filtering by AI stage is no longer supported. A request with a non-empty aiStage returns 400.

Stop follow-up on a lead

Send a PUT request to /v2.0/working-leads/{leadId}/stop. It takes no request body. See Stop Sales Agent working a lead.
This is the same action as stopping the Sales Agent in the CRM, and the lead’s timeline records you as the person who stopped it. The response’s success field reports whether the request was accepted. To resume follow-up, assign the lead again. That takes a capacity slot again, like a new lead.

Retired endpoints

These endpoints were retired in December 2026. They still answer, but every call returns 410 Gone with error code 200128 (ENDPOINT_RETIRED) and a message naming the replacement.