get_campaign_leads_stats
Retrieve per-lead statistics for a campaign using cursor or offset pagination and filter by status to analyze lead outcomes.
Instructions
Get per-lead statistics for a campaign. Supports cursor-based pagination (getLeadsAfter/getLeadsBefore) for simple page-by-page access, OR offset-based pagination (skip/limit) and status filtering — when skip>0 or status is provided, all pages are fetched client-side and then filtered/sliced.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skip | No | Number of leads to skip for offset-based pagination. Triggers full fetch of all pages. | |
| limit | No | Max leads to return (default 25) | |
| status | No | Filter leads by status, e.g. 'replied', 'converted', 'notinterested'. Triggers full fetch of all pages. | |
| campaignId | Yes | The campaign ID | |
| getLeadsAfter | No | Lead ID to get results after (cursor-based forward pagination, single page) | |
| getLeadsBefore | No | Lead ID to get results before (cursor-based backward pagination, single page) |