Stats
The stats endpoint returns a comprehensive dashboard summary of your GTD system, including task counts, completion rates, habit streaks, and productivity insights.
GET /api/v1/stats
Get dashboard statistics for the authenticated user.
Response
{
"tasks": {
"total": 142,
"completed": 98,
"completion_rate": 0.69,
"today": {
"total": 8,
"completed": 3
},
"overdue": 2,
"by_urgency": {
"Urgent": 12,
"Not Urgent": 25,
"Habit": 5
},
"by_importance": {
"Important": 18,
"Not Important": 15,
"Moved the Needle": 9
},
"by_state": {
"Flow": 10,
"Quick": 15,
"Easy": 8,
"Personal": 9
}
},
"habits": {
"total": 6,
"active_streaks": [
{
"habit_id": "clx9a0b1c...",
"name": "Morning meditation",
"current_streak": 14,
"longest_streak": 30
}
],
"today_completed": 4,
"today_total": 6
},
"projects": {
"total": 8,
"by_status": {
"Ongoing": 4,
"Deadline": 2,
"Fav": 1,
"Completed": 1,
"Moved the Needle": 0,
"Archived": 0
}
},
"bottlenecks": {
"total": 3,
"priority_count": 1
},
"reviews": {
"last_weekly": "2026-03-15",
"last_monthly": "2026-03-01"
}
}
Response Fields
| Field | Type | Description |
|---|---|---|
tasks.total | number | Total number of tasks |
tasks.completed | number | Number of completed tasks |
tasks.completion_rate | number | Overall completion rate (0-1) |
tasks.today.total | number | Tasks scheduled for today |
tasks.today.completed | number | Tasks completed today |
tasks.overdue | number | Number of overdue incomplete tasks |
tasks.by_urgency | object | Task counts grouped by urgency level |
tasks.by_importance | object | Task counts grouped by importance level |
tasks.by_state | object | Task counts grouped by state |
habits.total | number | Total number of habits |
habits.active_streaks | array | Current and longest streaks per habit |
habits.today_completed | number | Habits completed today |
habits.today_total | number | Total habits due today |
projects.total | number | Total number of projects |
projects.by_status | object | Project counts grouped by status |
bottlenecks.total | number | Total number of bottlenecks |
bottlenecks.priority_count | number | Bottlenecks marked as PRIORITY |
reviews.last_weekly | string | Date of the most recent weekly review |
reviews.last_monthly | string | Date of the most recent monthly review |