logo
Campaign LeadsBulk action on campaign leads
Campaign Leads

Bulk action on campaign leads

Perform bulk operations on leads within a campaign. Two selection modes:

Explicit IDs: Provide leadIds array with campaign lead record IDs.

Select all: Set selectAll: true with optional filters and excludeIds.

Available actions:

ActionDescription
pausePause active leads (stops sending to them)
resumeResume paused leads (re-activates them)
removeRemove leads from campaign. Leads with no emails sent are hard-deleted; leads with email history are soft-deleted (status set to "removed")
curl -X POST "https://api.sendkit.ai/v1/campaigns/example_string/leads/action" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "action": "pause",
  "leadIds": [
    "666a1b2c3d4e5f6a7b8c9d01",
    "666a1b2c3d4e5f6a7b8c9d02"
  ]
}'
{
  "success": true,
  "data": {
    "action": "pause",
    "modifiedCount": 25
  }
}
POST
/v1/campaigns/{id}/leads/action
POST
API Key (header: X-Api-Key)
X-Api-Keystring
Required

Platform API key (sk_user_...) or Workspace API key (sk_...)

Platform API key (sk_user_...) or Workspace API key (sk_...)
Bearer Token
Bearer Tokenstring
Required

API key as Bearer token

API key as Bearer token
Content-Typestring
Required

The media type of the request body

Options: application/json
No request body parameters defined
Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-Api-Keystring
Required

API Key for authentication. Platform API key (sk_user_...) or Workspace API key (sk_...)

header
Authorizationstring
Required

Bearer token. API key as Bearer token

Path Parameters

idstring
Required

Resource ID

Body

application/json
datastring
Required

Raw application/json data

Responses

successboolean
dataobject