List leads
Search a campaign's leads within a date window.
Results are newest first and paged with a cursor: pass the response's search_after value to fetch the next page, and stop when it comes back null.
Filter by a supplier or a buyer, and narrow either to what happened to the lead there with supplier_outcome / buyer_outcome - the same words the response's supplier.outcome and buyers[].outcome use. A buyer filter excludes test leads.
Each lead carries its supplier and buyers with a nested client (keyed company), and each buyer an outcome and whether the lead was attempted there. Use select to return only the lead_data you need, and where to narrow by lead data - fields and the exact values they must have.
Request
- Base URL: https://api.leadprosper.io/public
- URL: https://api.leadprosper.io/public/v2/leads
- Auth: one of:
- HTTP bearer
- API key in query parameter api_token
Query parameters
Campaign id.
Start of the window, YYYY-MM-DD or YYYY-MM-DD HH:MM:SS.
End of the window, inclusive.
IANA timezone the window is read in. Defaults to UTC.
Only leads with this outcome.
Only leads from this supplier.
Narrow the supplier filter to what happened to the lead at that supplier, in the same words a lead's supplier.outcome reports. An outcome is a path: a family covers every reason under it, family/group narrows it, family/group/sub_group picks one. accepted, unsold and no_eligible_buyers are the lead's own verdict: unsold means at least one buyer was sent the lead and none took it, no_eligible_buyers that every buyer was ruled out (cap, filter, paused) before any was sent. A sub_group the response reads from the message or a lead field - a cap kind, a filter's field, a validation provider - is not filterable. Requires supplier.
Only leads that reached this buyer. Excludes test leads, so it cannot be combined with test=true.
Narrow the buyer filter to what happened to the lead at that buyer, in the same words a lead's buyers[].outcome reports. accepted, outbid and pinged are single outcomes; otherwise an outcome is a path: the family not_attempted or declined covers every reason under it, family/group narrows it (declined/buyer_rejected, not_attempted/cap), and family/group/sub_group picks one (declined/buyer_rejected/post, not_attempted/skipped/repost). A sub_group the response reads from the message - a cap kind, a filter's field - is not filterable. Requires buyer.
Return only these lead_data fields, comma-separated - e.g. email,state. Everything else about a lead is always returned. Omit for all fields.
Leads per page, up to 500. Default 100. Page with search_after rather than raising this.
Narrow by lead data, as the application's field filter does. conditions maps a lead_data field to the one exact value it must have. Use * to match the value against the system fields (name, email, phone, address, ip, sub ids, etc.). match says how the fields combine: all (every field must match, the default) or any (at least one). Matching is exact and case-insensitive. Sent as bracketed query parameters, e.g. where[match]=any&where[conditions][state]=CA&where[conditions][email]=ann@example.com.
Only test leads, or only live ones.
Only returned leads, or only unreturned ones.
Only reposted leads, or only original ones.
The search_after value from the previous page.
Response
Success
Changes
No recorded changes to this operation across all 1 revision of this API.