Skip to main content

Dashboard Statistics

Page Outline

Returns aggregated statistics for the Model Studio dashboard, including model counts, training status distribution, and recent activity summaries.

Base Path: /api/v1/models

Method: GET

Path: /dashboard/stats

Auth: Requires a valid Bearer token (Authorization: Bearer <JWT>)

Query Parameters

ParameterTypeDefaultDescription
periodstring7dTime window for activity aggregation: 1d, 7d, 30d, 90d
model_typestringFilter stats by model type: auto or custom

Behavior

  • Aggregates counts across all models in the caller's organization.
  • The recent_activity list is limited to the 10 most recent events within the selected period.
  • Model counts are broken down by status (draft, training, ready, archived, failed).
  • Training success rate is calculated as completed / (completed + failed) over the selected period.
  • Audit logging is not triggered on dashboard stat reads.

Response

Returns a DashboardStats object.

{
"total_models": 134,
"status_breakdown": {
"draft": 12,
"training": 5,
"ready": 98,
"archived": 17,
"failed": 2
},
"model_type_breakdown": {
"auto": 110,
"custom": 24
},
"training_success_rate": 0.98,
"period": "7d",
"recent_activity": [
{
"event": "model.training_completed",
"model_id": "mdl-7f3a19bc",
"model_name": "My Churn Predictor",
"timestamp": "2026-03-13T14:22:10Z"
}
]
}