Move leads to campaign
Add leads to another campaign, as the Add to Campaign action in Lead Catcher does.
POST https://cotlet.dev/api/v1/mailshake/campaigns/{campaign_id}/leads-to-campaign/move
Adds the people behind the leads to a running campaign, so they start its sequence. The target campaign must exist and not be a draft, and its prospect limit still applies (5,000 on the Email Outreach plan, 10,000 on Sales Engagement). Adding a person here does not pause them in the campaign they came from. Leads that did not fit come back in skipped. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| lead_ids integer[] required | integer[] | Lead IDs from list_leads. |
| campaign_id integer required | integer | The campaign to add them to. |
Request
curl -X POST https://cotlet.dev/api/v1/mailshake/campaigns/1/leads-to-campaign/move \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"lead_ids":[1]}' result = client.call("mailshake", "move_leads_to_campaign", {"lead_ids":[1],"campaign_id":1}) const result = await cotlet.call('mailshake', 'move_leads_to_campaign', {"lead_ids":[1],"campaign_id":1}); cotlet call mailshake move_leads_to_campaign --data '{"lead_ids":[1],"campaign_id":1}' Example response
{
"campaign_id": 4790,
"moved": 2,
"skipped": []
}