Add chosen contacts to a campaign
add_contacts_to_campaignAdds the people you picked to a campaign, as Add to campaign on the Contacts page does, a draft included: each is checked against the campaign's safety rules and the answer names who was added, who was skipped and why. People added to a draft are counted in start_campaign's preview and get their first message when it starts; nothing is sent by adding (on a started campaign a step due today is drafted, never sent). confirmOverCap: true only when your person accepts going over today's cap (the answer says over_daily_cap with the numbers otherwise). Pass the same idempotency_key when retrying; a repeat adds nobody twice.
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>",
"clientIds": "<clientIds>",
"idempotency_key": "<idempotency_key>"
},
"name": "add_contacts_to_campaign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clientIds | Yes | ||
| campaign_id | Yes | ||
| confirmOverCap | No | ||
| idempotency_key | Yes | Your id for this operation (8-128 of A-Z a-z 0-9 . _ : -). Reuse it on every retry of the same operation; use a new one for a new operation. |