AnythingLLM supports a multi-user mode that unlocks role-based access control, invite-based registration, and per-workspace permissions. The Admin API lets you manage all of this programmatically — create and update users, generate invite links, configure which users can access specific workspaces, and adjust instance-wide preferences. The User Management endpoints provide a lighter-weight way to list users and issue temporary login tokens for SSO-style integrations.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Mintplex-Labs/anything-llm/llms.txt
Use this file to discover all available pages before exploring further.
GET /v1/admin/is-multi-user-mode
Check whether the current AnythingLLM instance is running in multi-user mode. Use this before calling other admin endpoints to avoid unnecessary401 errors.
Response Fields
true if multi-user mode is active, false otherwise.GET /v1/admin/users
List all registered users on the instance.Response Fields
POST /v1/admin/users/new
Create a new user account with a username, password, and role.Body Parameters
Login username for the new account.
Initial password for the account.
User role:
"default" for standard users or "admin" for administrators.Response Fields
null on success or an error description.POST /v1/admin/users/{id}
Update an existing user’s settings. Only the fields you include are changed — all others remain as-is.Path Parameters
Database ID of the user to update.
Body Parameters
New login username.
New password.
New role:
"default" or "admin".1 to suspend the user (block login), 0 to reinstate.Response Fields
Whether the update was applied.
null on success or an error message.DELETE /v1/admin/users/{id}
Permanently delete a user account by its database ID.Path Parameters
Database ID of the user to delete.
Response Fields
Whether the deletion was successful.
null on success or an error message.GET /v1/admin/invites
List all invitation records on the instance, regardless of status (pending or claimed).
Response Fields
POST /v1/admin/invite/new
Generate a new invitation code. Optionally pre-assign the new user to specific workspaces.Body Parameters
Array of workspace database IDs to automatically grant the invitee access to when they register. Example:
[1, 2, 45].Response Fields
null on success or an error description.DELETE /v1/admin/invite/{id}
Deactivate (soft-delete) an invite by its ID. The invite code becomes invalid but the record is preserved for auditing.Path Parameters
Database ID of the invite to deactivate.
Response Fields
Whether the invite was deactivated.
null on success or an error message.POST /v1/admin/workspace-chats
Retrieve all chat messages from across the entire system, ordered by most recent. Results are paginated via an offset parameter.Body Parameters
Page offset for pagination. Each page returns up to the system default number of chats. Omit for the first page.
Response Fields
Request status.
null on success.POST /v1/admin/preferences
Update instance-wide multi-user preferences. Requires multi-user mode to be enabled. Only the keys you supply will be changed.Body Parameters
Support contact email shown to users within the interface.
Response Fields
Whether preferences were updated.
null on success or an error message.GET /v1/admin/workspaces/{workspaceId}/users
Retrieve the list of users who have explicit permission to access a specific workspace.Path Parameters
Database ID of the workspace to inspect.
Response Fields
POST /v1/admin/workspaces/{workspaceSlug}/manage-users
Add users to a workspace’s allowed list. By default this is an additive operation; passreset: true to replace the entire permission list.
Path Parameters
Slug of the workspace to modify.
Body Parameters
Array of user database IDs to grant access to the workspace.
When
true, the existing user list is cleared and replaced with the provided userIds. Defaults to false (additive).Response Fields
Whether the operation succeeded.
null on success or an error message.Updated list of users with access, each including
userId, username, and role ("admin" or "default").GET /v1/users
List all users on the instance. Available in the User Management API (does not require admin role in single-user mode).Response Fields
GET /v1/users/{id}/issue-auth-token
Issue a short-lived authentication token for a specific user. The returned token and login path can be used to implement SSO-style “log in as user” flows without requiring the user’s password.Path Parameters
Database ID of the user to issue a token for.
Response Fields
The temporary authentication token.
Ready-to-use login path including the token as a query parameter (e.g.
/sso/simple?token=1234567890).