> ## Documentation Index
> Fetch the complete documentation index at: https://quintsecurity.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Event Statistics

> Get 24-hour aggregate statistics for events in your organization.

<Note>
  Requires `Authorization: Bearer` header with a deploy token (`qt_deploy_*`) or Supabase JWT.
</Note>

## Response

Returns aggregate event statistics for the last 24 hours.

<RequestExample>
  ```bash cURL theme={null}
  curl https://api.quintai.dev/v1/events/stats \
    -H "Authorization: Bearer qt_deploy_YOUR_TOKEN"
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      "https://api.quintai.dev/v1/events/stats",
      headers={"Authorization": "Bearer qt_deploy_YOUR_TOKEN"},
  )
  print(response.json())
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "total_events": 1247,
    "period": "24h",
    "by_action_type": {
      "PROCESS_EXEC": 892,
      "FILE_READ": 201,
      "FILE_WRITE": 134,
      "NETWORK_CONNECT": 20
    },
    "by_risk_level": {
      "none": 980,
      "low": 187,
      "medium": 62,
      "high": 15,
      "critical": 3
    }
  }
  ```
</ResponseExample>
