Analytics Summary
Every metric summed over a range of UTC days (both ends inclusive; default: the 30 days ending today, at most 366), from the daily rollups, plus derived rates. Rollups are updated by the `analytics.rollup` job every few minutes (`as_of`). `sequence_id`, `channel` and `mailbox_id` repeat to match any of them.
API key access
analytics:read scope with an API key (ro_pat_...). A signed-in session uses the caller's role./api/v1/analytics/summaryAccess token from /api/v1/auth/login, or an API key (ro_pat_..., RO-176) from /api/v1/workspaces/current/api-keys: the key implies its workspace and needs the route's scope. MCP connectors (/api/v1/mcp only) may use an OAuth access token (ro_oat_..., RO-284).
In: header
Query Parameters
First UTC day (default: to minus 29 days)
dateLast UTC day (default: today)
dateRepeat to match any of
Repeat to match any of
Repeat to match any of
Header Parameters
Id of the workspace to act on (must be a member).
Response Body
curl -X GET "http://localhost:8000/api/v1/analytics/summary?from=2019-08-24&to=2019-08-24&sequence_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&channel=email&mailbox_id=497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "X-Workspace-Id: string"{
"from": "2019-08-24",
"to": "2019-08-24",
"timezone": "UTC",
"as_of": "2019-08-24T14:15:22Z",
"filters": {
"sequence_id": [
"497f6eca-6276-4993-bfeb-53cbbbba6f08"
],
"channel": [
"email"
],
"mailbox_id": [
"497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
},
"metrics": {
"property1": 0.1,
"property2": 0.1
},
"rates": {
"property1": 0,
"property2": 0
}
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Update Ai Column
Rename a column or change its prompt or options. Finished cells are kept and show `stale` until they run again.
Analytics Timeseries
The requested metrics per bucket (day, week from Monday, or month; UTC), zero-filled, split by `group_by`. At most 50 groups (largest totals of the first metric first; `truncated`). Default metrics: emails_sent, replies, replies_interested, bounces_hard, meetings_booked, calls_completed, opt_outs.