[GH-ISSUE #1524] [QUESTION]: How can I sign in as a default role user via API? #979

Closed
opened 2026-02-22 18:22:31 -05:00 by yindo · 2 comments
Owner

Originally created by @Kevinoup on GitHub (May 23, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1524

What would you like to see?

I’m experiencing some difficulties utilizing the APIs provided by AnythingLLM. Firstly, I’m trying to figure out how to sign in as a default-level role user using API. But I can't find it.

Next, I’d like to create a new user with a specific role and add them to a workspace. Once the new user is created through API, how do I initiate this new user a chat or query session by API?

Lastly, if I want to retrieve the chat or query records for a specific user within a workspace, what’s the best approach using AnythingLLM’s API? Can I specify the user ID or username to filter the results and only retrieve their chat or query history, rather than getting all records from all users in that workspace?

Any guidance on these issues would be greatly appreciated.

Originally created by @Kevinoup on GitHub (May 23, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1524 ### What would you like to see? I’m experiencing some difficulties utilizing the APIs provided by AnythingLLM. Firstly, I’m trying to figure out how to sign in as a default-level role user using API. But I can't find it. Next, I’d like to create a new user with a specific role and add them to a workspace. Once the new user is created through API, how do I initiate this new user a chat or query session by API? Lastly, if I want to retrieve the chat or query records for a specific user within a workspace, what’s the best approach using AnythingLLM’s API? Can I specify the user ID or username to filter the results and only retrieve their chat or query history, rather than getting all records from all users in that workspace? Any guidance on these issues would be greatly appreciated.
yindo added the question label 2026-02-22 18:22:31 -05:00
yindo closed this issue 2026-02-22 18:22:31 -05:00
Author
Owner

@Kevinoup commented on GitHub (May 25, 2024):

@timothycarambat Hi, thanks for changed the title. But I don't believe this is a question; rather, I think it as missing features or potentially a bug, since the API lacks functionalities at the user level for login, retrieve chats, or executing queries.

@Kevinoup commented on GitHub (May 25, 2024): @timothycarambat Hi, thanks for changed the title. But I don't believe this is a question; rather, I think it as missing features or potentially a bug, since the API lacks functionalities at the user level for login, retrieve chats, or executing queries.
Author
Owner

@timothycarambat commented on GitHub (May 25, 2024):

Ah then this is the same issue as https://github.com/Mintplex-Labs/anything-llm/issues/512, basically the API needs to be a user themselves as well as "impersonate" a user via the API

@timothycarambat commented on GitHub (May 25, 2024): Ah then this is the same issue as https://github.com/Mintplex-Labs/anything-llm/issues/512, basically the API needs to be a user themselves as well as "impersonate" a user via the API
yindo changed title from [QUESTION]: How can I sign in as a default role user via API? to [GH-ISSUE #1524] [QUESTION]: How can I sign in as a default role user via API? 2026-06-05 14:38:16 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#979