segments_enrichments_run
Kicks off an enrichment as an async Celery task, processing every lead in the segment. Returns {task_sqid} immediately — poll jobs_get for progress.
automation_id is the automation sqid (preferred) or an enrichment type key (e.g. apply_formula, ai_research). When two automations share the same type on one segment, the type key is ambiguous — use the sqid from segments_automations_list instead.
Cost. Per-lead and proportional to the work done, so an AI enrichment costs many times what a validation does. Rates are in billing_pricelist; check billing_balance before running on large segments.
Method: POST /api/v1/workspaces/{workspace_sqid}/segments/{segment_sqid}/enrichments/run/{automation_id}/
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"automation_id": "<automation_id>",
"segment_sqid": "<segment_sqid>"
},
"name": "segments_enrichments_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| segment_sqid | Yes | ||
| automation_id | Yes |