> ## Documentation Index
> Fetch the complete documentation index at: https://mako-docs.devinagiffy.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Dashboard Stats

> Get aggregated dashboard statistics

# Get Dashboard Stats

Returns aggregated statistics for the dashboard overview.

## Request

<ParamField header="Authorization" type="string" required>
  Bearer token from authentication
</ParamField>

## Response

<ResponseField name="totalTasks" type="number">
  Total number of tasks in the organization
</ResponseField>

<ResponseField name="pendingTasks" type="number">
  Number of tasks with status "pending"
</ResponseField>

<ResponseField name="completedToday" type="number">
  Number of tasks completed in the last 24 hours
</ResponseField>

<ResponseField name="overdueCount" type="number">
  Number of tasks past their due date
</ResponseField>

<ResponseField name="teamMoodAvg" type="number | null">
  Average team mood score (1-5) for the current week. Null if no mood data available.
</ResponseField>

<RequestExample>
  ```bash theme={null}
  curl -X GET "https://api.hitler.app/dashboard/stats" \
    -H "Authorization: Bearer YOUR_TOKEN"
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "totalTasks": 156,
    "pendingTasks": 23,
    "completedToday": 8,
    "overdueCount": 5,
    "teamMoodAvg": 3.8
  }
  ```
</ResponseExample>
