Skip to main content
POST
Assign Lead to Sales Agent

Headers

Authorization
string
required

Bearer [access_token]

Content-Type
string
required

application/json

Body

application/json

Leads to hand to a Sales Agent

leadIds
integer<int64>[]
required

Leads to assign, 1 to 100

Example:
salesAgent
enum<string>

Optional: which of the caller's Sales Agents works every lead. Omit to pick by lead ownership (a team lead goes to the team Sales Agent, a personal lead to the personal one). The whole request is refused when the caller has no such Sales Agent

Available options:
personal,
team
Example:

"personal"

Response

Assign completed; check succeededLeads and failedLeads

Per-lead outcome of Assign, and the capacity left on the caller's Sales Agents

succeededLeads
object[]

Leads a Sales Agent now works, including leads that were already being worked; those stay with the Sales Agent working them even when salesAgent named another

failedLeads
object[]

Leads that were not assigned, each with a reason code

remainingQuota
(object | null)[] | null

Capacity left on each Sales Agent the caller may use, after this request. Null when no lead could be assigned (every lead failed with NO_ACCESS) and the capacity could not be read

Capacity left on each Sales Agent the caller may use, after this request. Null when no lead could be assigned (every lead failed with NO_ACCESS) and the capacity could not be read