Skip to main content

GET /api/tasks/statistics

Returns aggregate task counts broken down by status and priority, plus the number of overdue tasks, for the authenticated user.

Authentication

Authorization: Bearer <access_token>

Query Parameters

None.

Response

200 OK — Returns a statistics object.
success
boolean
Always true for successful responses.
data
object

Example

curl -X GET "https://task-forge-gbd6h8gtg8hchve9.chilecentral-01.azurewebsites.net/api/tasks/statistics" \
  -H "Authorization: Bearer <access_token>"
Example response:
{
  "success": true,
  "data": {
    "total_tasks": 34,
    "completed_tasks": 18,
    "pending_tasks": 8,
    "in_progress_tasks": 6,
    "cancelled_tasks": 2,
    "overdue_tasks": 3,
    "by_priority": {
      "low": 5,
      "medium": 14,
      "high": 11,
      "urgent": 4
    }
  }
}

Build docs developers (and LLMs) love