Add Lists to Campaign
add_lists_to_campaignAdd one or more lists to a DRAFT campaign's recipients, keeping the lists it already has. The API reports a campaign's lists by name, so the current lists are matched to list IDs by exact name; the tool refuses (changing nothing) if a name matches no list or several lists, if the campaign is not a draft, or if it sends to a segment (saving lists would replace the segment). Merges and de-duplicates, then saves the merged set. Set dry_run: true to see the resulting lists and approximate audience 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>",
"list_ids": "<list_ids>"
},
"name": "add_lists_to_campaign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Show the resulting list set without changing the campaign | |
| list_ids | Yes | List IDs to add or remove | |
| campaign_id | Yes | Draft campaign ID |