leads_bulk_add_to_segment
The primary way to move prospects from the shared discovery database into the user's workspace. Provide the target segment sqid and a list of {company_guid, person_guid} pairs — person_guid may be null for company-only leads. The endpoint creates one Lead per pair (deduplicated against existing leads by email/linkedin), adds them to the segment, and returns num_created.
Cost. Charges ADD_LEAD_FROM_DISCOVERY per newly-created lead (not per duplicate skip); the current rate is in billing_pricelist. Pre-check with billing_balance for batches >1k.
Async. Currently synchronous for reasonable batch sizes (<500). For larger imports, prefer the CSV import wizard (imports_leads_create → _analyze_create → _execute_create) which returns a task_sqid and runs in the background.
Typical flow. companies_search → company_persons_list → pick the people you want → call this endpoint with their GUIDs.
Method: POST /api/v1/workspaces/{workspace_sqid}/segments/add-leads/
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "leads_bulk_add_to_segment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||