Analytics API
A read-only summary of conversation activity over a rolling window. Requires an API key with the analytics.read permission.
Get analytics
GET /api/v1/rest/analytics ?days=30 &widget_id=?days= sets the window (default 30, max 365). ?widget_id= scopes to a single agent.
Response
{
"data": {
"window_days": 30,
"since": "2026-04-17T00:00:00Z",
"total_conversations": 412,
"truncated": false,
"by_outcome": { "completed": 360, "abandoned": 52 },
"by_widget": { "uuid": 412 },
"avg_duration_seconds": 168
}
}truncated: true means the sampling cap was hit and counts are partial for the window; narrow the range for exact numbers. avg_duration_seconds is null when no conversations had a duration.
For per-conversation detail, use the Conversations API.