logo
CampaignsGet campaign with lead counts
Campaigns

Get campaign with lead counts

Returns full campaign details including lead counts (total and active leads).

curl -X GET "https://api.sendkit.ai/v1/campaigns/example_string" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "success": true,
  "data": {
    "_id": "665a1b2c3d4e5f6a7b8c9d0e",
    "name": "Q1 Outreach Campaign",
    "userId": "664f0a1b2c3d4e5f6a7b8c9d",
    "workspaceId": "664f0a1b2c3d4e5f6a7b8c9e",
    "status": "active",
    "mailboxes": [
      "665b1c2d3e4f5a6b7c8d9e0f"
    ],
    "mailboxRotation": "round-robin",
    "sequence": [
      {
        "type": "email",
        "name": "Initial Email",
        "order": 0,
        "subject": "Quick question, {{firstName}}",
        "body": "<p>Hi {{firstName}},</p>"
      }
    ],
    "sendingSchedule": {
      "timezone": "America/New_York",
      "startTime": "09:00",
      "endTime": "17:00",
      "workingDays": [
        1,
        2,
        3,
        4,
        5
      ]
    },
    "trackOpens": true,
    "trackClicks": true,
    "stopOnReply": true,
    "includeUnsubscribeLink": false,
    "emailIntervalMinutes": 15,
    "stats": {
      "sent": 150,
      "delivered": 145,
      "opened": 72,
      "clicked": 18,
      "replied": 12,
      "bounced": 5,
      "unsubscribed": 2
    },
    "leadCounts": {
      "total": 500,
      "active": 350
    },
    "startedAt": "2025-06-15T09:00:00.000Z",
    "completedAt": null,
    "createdAt": "2025-06-10T10:30:00.000Z",
    "updatedAt": "2025-06-20T14:00:00.000Z"
  }
}
GET
/v1/campaigns/{id}
GET
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
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

Responses

successboolean
dataobject

Full campaign object plus leadCounts