---
title: "Get Assistant Stats"
method: GET
path: "/analytics/assistant/{assistant_id}/stats"
tags: ["public"]
---

# Get Assistant Stats

`GET /analytics/assistant/{assistant_id}/stats`

## Request

- Base URL: `https://cloud.onyx.app/api`
- URL: `https://cloud.onyx.app/api/analytics/assistant/{assistant_id}/stats`
- Auth: HTTP bearer

Returns daily message and unique user counts for a user's assistant,
along with the overall total messages and total distinct users.

## Path parameters

- `assistant_id` integer, required

## Query parameters

- `start` string, date-time, nullable
- `end` string, date-time, nullable

## Response `200`

Successful Response

- AssistantStatsResponse
  - `daily_stats` AssistantDailyUsageResponse[], required
    - `date` string, date, required
    - `total_messages` integer, required
    - `total_unique_users` integer, required
  - `total_messages` integer, required
  - `total_unique_users` integer, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-28** `76bc90bf55b6`: 1 info
  - endpoint added
- **2026-01-06** `2d941ea53eb3`: 1 breaking
  - api path removed without deprecation
- **2025-08-21** `9321c45d93b5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/onyx-dot-app/apis/onyx-api/changes/analytics/assistant/:assistant_id/stats/get.md)

---

[API](https://skmtc.dev/onyx-dot-app/apis/onyx-api.md) - [All operations](https://skmtc.dev/onyx-dot-app/apis/onyx-api/llms.txt) - [OpenAPI document](https://skmtc.dev/onyx-dot-app/apis/onyx-api/revisions/76bc90bf55b6?raw)
