Bulk Enrich
POST
/api/leads/bulk-enrich
const url = 'http://localhost:8000/api/leads/bulk-enrich';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"action":"find_emails","lead_ids":[1]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8000/api/leads/bulk-enrich \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "action": "find_emails", "lead_ids": [ 1 ] }'Enrich a batch of leads in the background; returns a job_id immediately.
Reuses the batchable enrichment services (email_finder / website_scraper). Capped at 100 leads per call so a huge selection can’t hammer providers. Progress streams over ProgressBus (/api/events) keyed by job_id.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
BulkEnrichBody
object
action
Action
string
lead_ids
required
Lead Ids
Array<integer>
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Examplegenerated
exampleValidation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}