campaigns_stats
Per-step funnel breakdown and KPI cards for a single campaign. Returns funnel (each step's pending/created/approved/sent/failed/unsubscribed/replied counts + bounce_rate) and kpis: sent / read / bounced as {total, prev, delta_pct, spark}, and reply = {contacted, replied, interested, reply_rate, interested_rate, prev_reply_rate, delta_pct, spark}. Reply and interested rates are percentages per lead contacted, not per message. ?days= is one of 0 (all time), 7, 14 (default), 30; for all time prev, delta_pct and spark are null/empty. One call replaces fetching step_logs per step and counting by hand.
Method: GET /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/stats/
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sqid": "<sqid>"
},
"name": "campaigns_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | KPI window: 0 = all time, else the last N days (default 14). | |
| sqid | Yes |