Add leads to campaign
add_leads_to_campaignMove leads this account owns into a campaign this account owns, by explicit id. Updates membership only — sends nothing. Opted-out and suppressed leads are REJECTED with per-lead skip reasons even when listed explicitly; leads already in the target are deduplicated; the response includes the campaign's final lead count read back from the database. To pick the audience by filter instead of by id, use select_and_attach_leads (same attach semantics, driven by search_leads filters). If the target campaign was already reviewed, its earlier approval is stale (the launch step recounts recipients and refuses a token approved for a smaller audience), so a fresh review_campaign_readiness is required before launching.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lead_ids | Yes | Lead ids to move (from find_lead, list_leads or search_leads). | |
| campaign_id | Yes | The destination campaign. | |
| idempotency_key | No | Optional but recommended. Retrying the same key returns the same result instead of re-running the move; reusing it with different arguments is rejected as idempotency_conflict. |