feat: API to get all user's chat statistics for administrator #6692

Closed
opened 2025-11-11 17:03:30 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @lazyfai on GitHub (Oct 17, 2025).

Check Existing Issues

  • I have searched all existing open AND closed issues and discussions for similar requests. I have found none that is comparable to my request.

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

Originally created by @lazyfai on GitHub (Oct 17, 2025). ### Check Existing Issues - [x] I have searched all existing open AND closed issues and discussions for similar requests. I have found none that is comparable to my request. ### 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_
Author
Owner

@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): 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.
Author
Owner

@Classic298 commented on GitHub (Oct 17, 2025):

Please ammend your request here: https://github.com/open-webui/open-webui/issues/6692

@Classic298 commented on GitHub (Oct 17, 2025): Please ammend your request here: https://github.com/open-webui/open-webui/issues/6692
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#6692