mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 14:13:08 -05:00
feat: API to get all user's chat statistics for administrator #6692
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lazyfai on GitHub (Oct 17, 2025).
Check Existing Issues
Problem Description
While trying to make a tool to capture the usage statistics (who used most, which model used most, etc)
I try to get the chats using API endpoint (http://localhost:3000/api/chats), but even using the administrator login, the endpoint only returned the chats of the administrator itself.
Is there a ways to get ALL users' chats for statistical use?
Desired Solution you'd like
The API endpoint can support returning ALL users when calling by administrator login.
Alternatives Considered
No response
Additional Context
No response
@Classic298 commented on GitHub (Oct 17, 2025):
More underlying issue is that there is NO tracking of such statistics as of now.
Would require adding tracking and new database migration and a few UI components.
This is a duplicate issue and this feature request has been raised already elsewhere.
@Classic298 commented on GitHub (Oct 17, 2025):
Please ammend your request here: https://github.com/open-webui/open-webui/issues/6692