push_leads
Add leads to an existing lead list (make one with create_lead_list), deduped server-side by LinkedIn URL. Give EITHER linkedinUrls (just URLs; names and titles enrich from LinkedIn at send time) OR leads (objects that carry per-lead field values, including custom personalization variables). Use leads whenever you have more than a URL, e.g. a company's funding round or industry that a sequence message should reference. In leads, keys inside custom become {{tokens}} and are registered for the workspace automatically, so you can push leads and then immediately write a message using them. Values MUST be nested under custom: a loose top-level key is accepted and then silently dropped, giving you a 200, a correct added count and no personalization. Returns { added, updated, skipped, failed }: added = new, updated = existing lead refreshed, skipped = in-request duplicate, failed = invalid URL; plus truncated and truncatedTokens when a value ran past the 500 character cap and was stored cut. Those two are the only signal that what you pushed is not what is stored: the import still succeeds and added is still correct, so check them whenever a variable carries a whole written message rather than a short phrase, and re-push a shortened version if the ending matters. Re-pushing an existing lead MERGES custom values rather than replacing them, so adding one new field later enriches leads instead of wiping the rest. LIMITS: up to 5000 leads per call; split larger audiences across calls.
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": {
"lead_list_id": "<lead_list_id>"
},
"name": "push_leads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| leads | No | Lead objects. linkedin_url is required on each; everything else is optional. Use this OR linkedinUrls. Up to 5000 per call. | |
| lead_list_id | Yes | List to add the leads to. | |
| linkedinUrls | No | LinkedIn profile URLs (https://www.linkedin.com/in/<slug>). Use this OR leads. Up to 5000 per call. | |
| idempotency_key | No | UUID for safe retry. |