Lead finder endpoints
Lead finder endpoints: read and change a campaign's lead finder settings, turn it on, and list the leads it added and the companies it looked at, each with its score and reasons.
These endpoints run the lead finder: a campaign that opts in finds companies that match its brain through Looot, scores each lead, verifies the address and adds the leads above its cut-off, inside a daily budget. Every route answers 503 lead_finder_disabled while the lead finder is unavailable. Gates and scopes are in the scope map; error codes are under lead finder refusals.
Amounts are in US dollars and days are UTC days.
Campaign settings
GET /campaigns/:id/lead-finder returns the campaign's lead finder, here switched on and part way through its day:
{
"available": true,
"enabled": true,
"daily_budget_usd": 2,
"min_score": 60,
"per_company": 2,
"explore_percent": 10,
"stop_reason": "",
"enabled_by": "8d1c...",
"enabled_at": "2026-11-25T08:02:11Z",
"profile_status": "ready",
"profile": {
"summary": "B2B software companies whose sales teams run outbound",
"queries": ["B2B SaaS companies selling to sales teams", "sales engagement software vendors"],
"countries": ["US", "GB"],
"employees_min": 51,
"employees_max": 500,
"titles": ["Head of Sales", "VP Sales", "Founder"],
"industries": ["software"],
"hiring_roles": ["Sales Development Representative"],
"avoid": ["agencies"]
},
"today": {
"day": "2026-11-25",
"status": "running",
"spent_usd": 0.41,
"companies_seen": 22,
"companies_qualified": 6,
"leads_added": 9,
"note": ""
},
"totals": { "leads_added": 120, "companies_seen": 800 },
"limits": { "budget_min_usd": 0.1, "budget_max_usd": 50, "per_company_max": 3 },
"next_run_at": "2026-11-25T10:14:00Z",
"last_error": ""
}A campaign that never turned it on reads as off with the defaults, profile: null and profile_status: "none".
availableisfalsewhen the lead finder cannot be turned on in this workspace, for example without a paid plan that includes integrations.daily_budget_usdis the most the campaign's lookups may spend in one UTC day, $0.10 to $50 (default 2).min_scoreis the cut-off, 0 to 100 (default 60).per_companyis how many people it adds per company, 1 to 3 (default 2).explore_percentis the test sample share, 0 to 25 (default 10).profile_statusisnone(not built yet),readyorthin(the brain gave nothing to search for).profileis the target profile built from the campaign's brain, ornull; it is read-only.stop_reasonis""while nothing holds the campaign back, elseenabler_lost_send,plan,thin_brain,consent_countries,no_brain,campaign_endedorsource_error. The guide says what each means.todayis the current UTC day.statusis""when nothing ran today, elserunning,done,budget_reached,target_reached,no_capacity,sources_exhausted,out_of_credits,model_limitorerror.noteis a sentence about the day when there is one, for example that the workspace reached its plan's contact limit.spent_usdis what the daily budget is checked against: settled spend plus what was set aside for lookups that had not settled when a pass ended. A set-aside amount may stay counted for the rest of the UTC day after its lookup settles, sospent_usdcan be higher than what the lookups cost, never lower.limitsare the bounds of the settings, for a client to show.next_run_atis when the next pass is due, set only while the lead finder is on.
A client should show an unknown stop_reason or status by its name rather than refuse it.
PUT /campaigns/:id/lead-finder takes any of {enabled, daily_budget_usd, min_score, per_company, explore_percent} and returns the same shape as GET. A field left out keeps its stored value, so a retry lands on the same state. enabled may only be false, which turns the lead finder off; enabled: true answers 400 lead_finder_enable_route, because turning it on has its own route. A value outside its range answers 400, and the message names the field. Settings writes are audited on the campaign.
{ "daily_budget_usd": 5, "min_score": 60, "per_company": 1, "explore_percent": 0 }Turn it on
POST /campaigns/:id/lead-finder/enable turns the lead finder on for the campaign, records the caller as the member it works as (for a key or an app, the member who created it), and makes its first pass due at once. It returns the same shape as GET. Set the budget and limits with PUT first.
Adding leads to a campaign that is sending mails them without anyone reviewing them first, so this route needs send_campaigns, use_integrations and manage_contacts for a signed-in member, with a recent confirmation (POST /auth/reauth), and SEND_CAMPAIGNS, INTEGRATIONS and BULK_CONTACTS for a key or an app. The member behind a key or an app must also hold send_campaigns, use_integrations and manage_contacts, and the workspace needs a paid plan that includes integrations. Turning it on also turns on the campaign's keep running for new leads. It sets state, so a repeat is safe without an Idempotency-Key.
| Code | Status | When |
|---|---|---|
lead_finder_plan_required | 403 | The workspace has no paid plan that includes integrations |
agent_workspace_unclaimed | 403 | The workspace was opened by an AI agent and nobody has claimed it yet |
forbidden | 403 | The member behind a key or an app lacks send_campaigns, use_integrations or manage_contacts |
lead_finder_no_brain | 409 | The campaign has no brain, or its brain has neither an offer nor an audience |
campaign_not_found | 404 | No campaign with that id in this workspace |
lead_finder_disabled | 503 | The lead finder is not available |
A member limited to selected campaigns cannot turn it on: every lead finder route answers them 403 member_access_restricted. The lead finder rechecks the member it works as on every pass. When they leave the workspace, lose send_campaigns, use_integrations or manage_contacts, are limited to selected campaigns, or are banned, it turns itself off with stop_reason: "enabler_lost_send".
Leads
GET /campaigns/:id/lead-finder/leads?limit=&cursor= lists the people the lead finder added, newest first, as data plus pagination. limit is 1 to 200 (default 50). A bad cursor or limit answers 400.
{
"data": [
{
"id": "5b7e...",
"email": "[email protected]",
"name": "Jane Cooper",
"contact_id": "c41a...",
"title": "VP Sales",
"company": { "domain": "acme.io", "name": "Acme" },
"score": 100,
"score_version": 2,
"explore": false,
"parts": {
"fit": { "points": 80, "max": 100, "known": true, "raw": 80 },
"signals": { "points": 10, "max": 25, "known": true },
"similar": { "points": 0, "max": 15, "known": false },
"person": { "points": 10, "max": 10, "known": true }
},
"reasons": [
{ "code": "fit", "text": "Sells software to sales teams of the size the offer targets.", "points": 80, "url": "" },
{ "code": "hiring", "text": "Hiring for a related role: Account Executive.", "points": 10, "url": "https://jobs.example.com/acme/ae" },
{ "code": "title_match", "text": "Title matches a target title: VP Sales.", "points": 6, "url": "" },
{ "code": "seniority", "text": "Senior decision maker: VP Sales.", "points": 4, "url": "" }
],
"enrolled_at": "2026-11-25T09:41:00Z",
"outcome": {
"first_sent_at": "2026-11-25T14:02:00Z",
"replied_at": null,
"reply_class": "",
"reply_intent": "",
"positive": false,
"meeting_booked": false,
"bounced": false,
"unsubscribed": false
}
}
],
"pagination": { "next_cursor": null, "has_more": false }
}scoreis 0 to 100 andscore_versionnames the formula that made it.partsbreaks it down: each part has thepointsit earned, itsmax, and whether it isknown. In version 2 the score is the points of every part added up, at most 100, and the fit part's points are the fit verdict; version 1 averaged the known parts, with fit out of 50.rawis the fit verdict from 0 to 100. See how a lead is scored.exploreistruefor a test sample lead: its company was taken forward although its own score was under the cut-off, and the lead was added whatever its own score.reasonsare short sentences with their points;urlis an evidence link for a signal, else"". Codes arefit,hiring,hiring_role,funding,similar_industry,similar_size,similar_country,title_matchandseniority.outcomeis read live from the campaign: when the first email went out, a reply with its class and intent, whether the reply was positive, a meeting booked after the lead was added, a bounce and an unsubscribe.nameis the contact's first and last name. It is left out when the contact has none.- For a caller who may not view contacts (
view_contacts/READ_CONTACTS),emailis""andnameis left out. contact_idisnullonce the contact was deleted.
Companies
GET /campaigns/:id/lead-finder/companies?status=&limit=&cursor= lists every company the campaign looked at, newest first, including the skipped ones, with the same pagination. status is one of found, rejected, qualified, searched or enrolled. A bad cursor, limit or status answers 400.
{
"data": [
{
"id": "e2f0...",
"domain": "acme.io",
"name": "Acme",
"status": "enrolled",
"reject_code": "",
"score": 90,
"score_version": 2,
"parts": {
"fit": { "points": 80, "max": 100, "known": true, "raw": 80 },
"signals": { "points": 10, "max": 25, "known": true },
"similar": { "points": 0, "max": 15, "known": false }
},
"reasons": [
{ "code": "fit", "text": "Sells software to sales teams of the size the offer targets.", "points": 80, "url": "" },
{ "code": "hiring", "text": "Hiring for a related role: Account Executive.", "points": 10, "url": "https://jobs.example.com/acme/ae" }
],
"facts": {
"industry": "software",
"employees": 151,
"employees_min": 51,
"employees_max": 250,
"country": "US",
"description": "Sales engagement software for B2B teams."
},
"people_found": 3,
"people_enrolled": 2,
"spent_usd": 0.07,
"created_at": "2026-11-25T09:30:00Z"
}
],
"pagination": { "next_cursor": null, "has_more": false }
}statusisfound(from the company search, not judged yet),rejected(skipped),qualified(passed the fit check),searched(people looked for, nobody added) orenrolled(at least one person added). When the target profile is built again, aqualifiedcompany goes back tofoundand is judged again.reject_codesays why arejectedcompany was skipped:low_fit,low_score,unjudged(the fit check gave no verdict for it, even when asked about it alone),lookup_failed(its lookups were refused on every attempt),existing,suppressed,personal_domain,own_domain,no_country,consent_country,outside_country,outside_sizeorhard_rule. The guide's cut-off and what it skips say when each applies. A client should show an unknown code by its name.scoreis the company's own score over fit, signals and similar, ornullwhen it was not scored.partshas nopersonpart.factsis what the lead finder knew about the company when it judged it:industry,country,description(the company search's own words about the company, provider text), and its size.employees_minandemployees_maxare the size band, equal for an exact count, withemployees_maxleft out for an open band such as 10,000 or more;employeesis one number within that band. A key it did not know is left out, and a client should ignore a key it does not recognize.spent_usdcounts the company's settled lookups plus what was set aside for lookups that had not settled, so it can be higher than what its lookups cost, never lower. The workspace is charged only for settled costs.
Realtime
CAMPAIGN_LEAD_FINDER_UPDATED fires when a campaign's lead finder is turned on or its settings change, and after a pass that changed it. It carries org_id and campaign_id only and requires view_campaigns; read the state again with GET /campaigns/:id/lead-finder. See realtime.
Follow-up endpoints
Follow-up endpoints: read and change a campaign's follow-up settings, list the conversations being followed after a replied lead went quiet, read one with its touches, start one by hand, and stop it.
Deliverability and ops endpoints
Ingest bounce and complaint events, manage the suppression list, replay dead-lettered tasks, and set warmup routing, reply templates and outreach settings.