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

write Confirm

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

Parameters: move_leads_to_campaign
NameTypeDescription
lead_ids integer[] required integer[] Lead IDs from list_leads.
campaign_id integer required integer The campaign to add them to.

Request

cURL
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]}'
Python
result = client.call("mailshake", "move_leads_to_campaign", {"lead_ids":[1],"campaign_id":1})
Node.js
const result = await cotlet.call('mailshake', 'move_leads_to_campaign', {"lead_ids":[1],"campaign_id":1});
CLI
cotlet call mailshake move_leads_to_campaign --data '{"lead_ids":[1],"campaign_id":1}'

Example response

JSON

{
  "campaign_id": 4790,
  "moved": 2,
  "skipped": []
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.