Workspace Analytics
Get an analytics overview of AI usage within a workspace.
Endpoints
| Method | Path | Description | Auth | Rate Limit |
|---|---|---|---|---|
| GET | /workspaces/:workspaceId/ai/analytics/overview | Analytics overview | JWT + Entitlement | 30/min |
Analytics Overview
Request
- Path params:
workspaceId— the workspace you want analytics for
Response
json
{
"data": {
"workspaceId": "cm5ws01",
"period": "2026-03",
"totalRuns": 142,
"totalTokensUsed": 285000,
"totalCreditsConsumed": 120,
"activeAgents": 3,
"activeTwins": 2,
"topFeatures": [
{ "featureKey": "example-feature-a", "runs": 65 },
{ "featureKey": "example-feature-b", "runs": 42 }
],
"dailyUsage": [
{ "date": "2026-03-17", "runs": 8, "tokensUsed": 16000 }
]
}
}Code Examples
Use the id of the workspace you want analytics for as $WORKSPACE_ID.
curl https://api.chainabit.com/api/v1/workspaces/$WORKSPACE_ID/ai/analytics/overview \
-H "Authorization: Bearer $TOKEN"