workspaces_stats
What the workspace dashboard shows for the selected range:
kpis.leads_added,kpis.messages_sent,kpis.connects_spent—{total, prev, delta_pct, spark}. Connects are account-wide.kpis.reply—{contacted, replied, interested, reply_rate, interested_rate, prev_reply_rate, delta_pct, spark}. Rates are percentages per lead: distinct leads with a REPLIED campaign step in the window (by reply time) ÷ distinct leads sent a delivered campaign message in the window; interested counts those replied leads whose status is now INTERESTED. The same definition ascampaigns_stats, over the workspace's active and paused campaigns (archived and cancelled ones are excluded).top_campaigns— up to 5 active or paused campaigns with ≥20 sends in the window, best reply rate first.
?days= is one of 0 (all time), 7, 14 (default), 30. For all time there is no previous window: prev, prev_reply_rate and delta_pct are null and spark is empty.
Method: GET /api/v1/workspaces/{workspace_sqid}/stats/
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "workspaces_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Window: 0 = all time, else the last N days (default 14). |