Move or copy leads into a campaign for outreach. You can push specific leads by ID, all leads from a list, or all leads in your account.
Query Parameters
Request Body
Target campaign ID. Either campaignId or campaignName must be provided.
Target campaign name. If campaign doesn’t exist, a new one is created.
Whether to copy or move leads. Move removes them from the source.
Source list ID to push leads from
Specific lead IDs to push. Array of numbers, 1-10,000 items.
Set to true to push all leads. When true, listId and leadIds should not be provided.
Import settings for the campaign (e.g., block list handling)
Additional filters to apply when selecting leads
curl -X POST "https://server.smartlead.ai/api/v1/leads/push-to-campaign?api_key=YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"campaignId": 12345,
"action": "copy",
"leadList": {
"listId": 500
}
}'
Response Codes
Invalid request parameters or malformed request body
Invalid or missing API key
Request validation failed. Check parameter types and constraints.
{
"ok": true,
"data": {
"total_leads": 1250,
"pushed": 1200,
"duplicates": 50
}
}