Skip to main content
Retired endpointsBreaking changesNew endpointsField changesMCP

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 for the whole flow.

Retired

New

  • POST /v2.0/working-leads/assign — Assign leads to Sales Agent. 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. 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. 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 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 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.