Add leads
add_leadsAdd contacts to one of the user's campaigns. At most 25 per call — for a CSV or a longer list, call get_lead_import_link and give the user the link instead. Reports per-row outcomes, so duplicates, suppressed and invalid addresses are named individually rather than counted as one failure. Does NOT verify addresses; that is verify_lead_emails, which spends the user's credits. ON AN ACTIVE MULTIPLE LEADS CAMPAIGN THIS STARTS SENDING: the added leads, and any other not-yet-started ones, are queued for the next send window (with Email Validation on, only verified-valid ones). Ask the user first.
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": {
"campaign_id": "<campaign_id>",
"leads": "<leads>"
},
"name": "add_leads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| leads | Yes | The contacts to add, at most 25 per call. For a CSV or a list longer than that, call get_lead_import_link instead and give the user the link — it is faster and cannot mangle a row. | |
| campaign_id | Yes | The campaign to add them to. Get one from list_campaigns. | |
| idempotency_key | No | Optional. Send the SAME value when retrying a call you are unsure completed, so the leads are not added twice. |