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 get410 Gone with error code 200128 (ENDPOINT_RETIRED) and a message naming the replacement. See Working Leads for the whole flow.Retired
New
POST /v2.0/working-leads/assign— Assign leads to Sales Agent. TakesleadIds(1 to 100) and an optionalsalesAgent(personalorteam); without it, each lead goes by ownership. ReturnssucceededLeads,failedLeads(each with areasoncode) andremainingQuota. 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 returns429withRetry-After. When the limit cannot be checked it returns503with code200144and assigns nothing.PUT /v2.0/working-leads/{leadId}/stop— Stop Sales Agent working a lead. 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. ReturnssalesAgents, an array with your own Sales Agent and the team Sales Agent you borrow (empty when you have none), instead of onesalesAgentobject. Each entry addssalesAgentType,ownerUserId,ownerName,salesAgentIdentity,planTypeand the channel switcheswebsiteChannel,textChannel,emailChannelandcallChannel. Removed:userId,agentName,agentHeadUrl,followUpRole,agentExperience,email,hasQuotaSeat,borrowLevel,borrowId.GET /v2.0/sales-agents/quota— returnsquotas, one entry per usable Sales Agent, instead of onequotaobject. Each entry addssalesAgentType,ownerUserId,ownerNameandassistantName. Removed:hasQuotaAvailable,usagePercentage,isBorrowed,borrowLevel,borrowedFrom.GET /v2.0/sales-agents/by-lead—salesAgentaddsworkingStatus(working,stoppedornot_working),workingStartedAt,salesAgentType(otherfor a Sales Agent you cannot use),ownerUserId,ownerNameandplanType. A lead that no Sales Agent works returnsnot_workingwith every Sales Agent fieldnull. Removed:userId,agentName,agentHeadUrl,followUpRole,agentExperience,email,createdAt,updatedAt,borrowLevel,borrowId.GET /v2.0/working-leads— no longer acceptsaiStage: a non-empty value returns400.createdAtis replaced byworkingStartedAt, 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).sortanddescare no longer documented; they had no effect.
MCP
search_sales_agenthas the kindspool,quota,currentandby_lead.is_in_pool,mute_statusandsettingsreturn an error naming the replacement, andplan_taskswas removed.manage_sales_agenthas the actionsassign(wasadd_to_pool) andstop(wasmute); the old names are still accepted.assigntakessales_agent(personalorteam) instead ofai_assistant_id.unmuteandai_number_smswere removed.