Skip to main content
GET
/
api
/
v1
/
campaigns
/
all-leads-activities
curl "https://server.smartlead.ai/api/v1/campaigns/all-leads-activities?api_key=YOUR_KEY&limit=50&event_time_from=2025-11-01&event_time_to=2025-11-30"
{
  "data": [
    {
      "lead_id": 2995276770,
      "email_lead_map_id": 2433664091,
      "campaign_id": 123,
      "campaign_name": "Q4 Outreach",
      "campaign_status": "ACTIVE",
      "status": "INPROGRESS",
      "current_seq_num": 2,
      "created_at": "2025-11-25T12:54:54.000Z",
      "activities": [
        {
          "stats_id": 12345,
          "message_id": "<abc123@mail.example.com>",
          "subject": "Quick question about your workflow",
          "email_body": "Hi John, I wanted to reach out...",
          "sent_time": "2025-11-26T10:00:00.000Z",
          "from_email": "sender@company.com",
          "to_email": "john@example.com",
          "email_seq_number": 1,
          "open_count": 3,
          "click_count": 1,
          "click_details": {},
          "reply_details": {
            "time": "2025-11-26T14:30:00.000Z",
            "reply_email_body": "Thanks for reaching out...",
            "message_id": "<reply123@example.com>"
          },
          "thread_replies": []
        }
      ]
    }
  ],
  "hasMore": true
}
Returns detailed activity data including sent emails, opens, clicks, replies, and thread conversations for leads across all campaigns. Useful for building activity feeds and tracking engagement.

Query Parameters

api_key
string
required
Your SmartLead API key
offset
number
default:"0"
Pagination offset (minimum: 0)
limit
number
default:"100"
Number of lead activities to return (minimum: 1, maximum: 1000)
event_time_from
string
Filter activities from this date/time. Accepts ISO 8601 format (e.g., 2025-11-25T00:00:00.000Z) or YYYY-MM-DD format
event_time_to
string
Filter activities until this date/time. Accepts ISO 8601 format or YYYY-MM-DD format. Must be used with event_time_from
curl "https://server.smartlead.ai/api/v1/campaigns/all-leads-activities?api_key=YOUR_KEY&limit=50&event_time_from=2025-11-01&event_time_to=2025-11-30"

Response Fields

data
array
Array of lead activity objects
hasMore
boolean
Whether there are more results available for pagination

Response Codes

200
Success
Activities retrieved successfully
400
Bad Request
Invalid date format for event_time_from or event_time_to
401
Unauthorized
Invalid or missing API key
422
Validation Error
Invalid query parameters (check limit and offset ranges)
500
Internal Server Error
Server error occurred
{
  "data": [
    {
      "lead_id": 2995276770,
      "email_lead_map_id": 2433664091,
      "campaign_id": 123,
      "campaign_name": "Q4 Outreach",
      "campaign_status": "ACTIVE",
      "status": "INPROGRESS",
      "current_seq_num": 2,
      "created_at": "2025-11-25T12:54:54.000Z",
      "activities": [
        {
          "stats_id": 12345,
          "message_id": "<abc123@mail.example.com>",
          "subject": "Quick question about your workflow",
          "email_body": "Hi John, I wanted to reach out...",
          "sent_time": "2025-11-26T10:00:00.000Z",
          "from_email": "sender@company.com",
          "to_email": "john@example.com",
          "email_seq_number": 1,
          "open_count": 3,
          "click_count": 1,
          "click_details": {},
          "reply_details": {
            "time": "2025-11-26T14:30:00.000Z",
            "reply_email_body": "Thanks for reaching out...",
            "message_id": "<reply123@example.com>"
          },
          "thread_replies": []
        }
      ]
    }
  ],
  "hasMore": true
}

Usage Notes

This endpoint is optimized for retrieving activity timelines. Use the event_time_from and event_time_to parameters to filter by date range for better performance.
The hasMore field indicates if there are additional results. Use the offset parameter to paginate through results.