Enroll contacts in a campaign
enroll_contactsEnroll contacts by ids, tag, source/list, status, text or custom fields. Suppressed, replied, unsubscribed, bounced, address-less and blocked-domain contacts are skipped with a reason, and a contact in another running campaign is skipped (or moved with on_conflict=move). dry_run=true returns who would be enrolled and who skipped. Requires the manage_campaigns scope.
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>"
},
"name": "enroll_contacts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Text in name, email or title. | |
| tag | No | Every contact with this tag. | |
| list | No | Alias of source. | |
| fields | No | Exact-match filter on custom fields. | |
| source | No | Every contact from this source or list. | |
| status | No | Every contact with this status. | |
| dry_run | No | ||
| campaign_id | Yes | Campaign id. | |
| claim_check | No | Relay campaigns: pass, fail or held for every enrolled contact. | |
| contact_ids | No | Contact ids (up to 1000). | |
| on_conflict | No | skip (default) or move. | |
| per_contact | No | Relay campaigns: contact id -> { claim_check, evidence_url }, overrides the two fields above for that contact. | |
| evidence_url | No | Relay campaigns: the public link that backs the message, for every enrolled contact. | |
| idempotency_key | No | Optional. Repeating a call with the same key and the same arguments returns the first result instead of writing again, so retries are safe. |