Skip to content

Endpoints Access Roles

This document provides an overview of the public Alan API endpoints and describes who has access to individual endpoints. In general, all access rights to endpoints are controlled based on user roles. The roles are defined in the user management and assigned to users.

If a user does not have a required role, access to the endpoint is denied. Related UI elements are also hidden in the frontend.

Role Concept

Assumption: Every user has at least the alan-user role. A user can have multiple roles.

RoleDescription
alan-userCan chat and use existing experts and knowledge bases
alan-contributorLike user, can edit shared resources (experts, knowledge bases)
alan-editorLike contributor, can create, share and delete experts and knowledge bases
alan-adminHas access to admin functions such as data connectors, groups or tenant settings.
Please note: The alan-admin role does not automatically include the permissions of the other roles. An admin must be assigned separate roles to, for example, chat or edit or create experts and knowledge databases.

API Endpoints

The following table lists all public API endpoints and their required access roles.

PathMethodRoles
/chats/GETUser, Contributor, Editor
/chats/POSTUser, Contributor, Editor
/chats/GETUser, Contributor, Editor
/chats/PUTUser, Contributor, Editor
/chats/DELETEUser, Contributor, Editor
/chats/{chat_id}/generatePOSTUser, Contributor, Editor
/chats/{chat_id}/messages/GETUser, Contributor, Editor
/chats/{chat_id}/messages/GETUser, Contributor, Editor
/chats/{chat_id}/messages/PUTUser, Contributor, Editor
/chats/{chat_id}/regeneratePOSTUser, Contributor, Editor
/connectors/GETUser, Contributor, Editor
/connectors/POSTAdmin
/connectors/knowledge-basesGETUser, Contributor, Editor
/connectors/GETAdmin
/connectors/PUTAdmin
/connectors/DELETEAdmin
/connectors/{connector_id}/knowledge-basesPOSTEditor
/connectors/{connector_id}/knowledge-basesGETUser, Contributor, Editor
/connectors/{connector_id}/knowledge-bases/PUTContributor, Editor
/connectors/{connector_id}/knowledge-bases/GETUser, Contributor, Editor
/connectors/{connector_id}/knowledge-bases/DELETEEditor
/docsGET
/docsHEAD
/docs/oauth2-redirectGET
/docs/oauth2-redirectHEAD
/experts/GETUser, Contributor, Editor
/experts/POSTEditor
/experts/GETUser, Contributor, Editor
/experts/DELETEEditor
/experts/PUTContributor, Editor
/files/POSTUser, Contributor, Editor
/files/GETUser, Contributor, Editor
/files/PUTUser, Contributor, Editor
/files/GETUser, Contributor, Editor
/files/DELETEUser, Contributor, Editor
/files/{file_id}/chunksGETUser, Contributor, Editor
/files/{file_id}/contentGETUser, Contributor, Editor
/groups/GETAdmin
/groups/POSTAdmin
/groups/GETAdmin
/groups/DELETEAdmin
/groups/PUTAdmin
/health/GET
/llm/generate_streamPOSTUser, Contributor, Editor
/models/GETUser, Contributor, Editor
/notifications/GETUser, Contributor, Editor
/notifications/PUTUser, Contributor, Editor
/openapi.jsonGET
/openapi.jsonHEAD
/redocGET
/redocHEAD
/search/POSTUser, Contributor, Editor
/shares/GETUser, Contributor, Editor
/shares/POSTEditor
/shares/receivedGETUser, Contributor, Editor
/shares/recipientsGETUser, Contributor, Editor
/shares/search_recipientsGETUser, Contributor, Editor
/shares/DELETEEditor
/snapshots/POSTUser, Contributor, Editor
/snapshots/GETUser, Contributor, Editor
/snapshots/importPOSTUser, Contributor, Editor
/snapshots/GETUser, Contributor, Editor
/snapshots/DELETEUser, Contributor, Editor
/tenant/infoGETUser, Contributor, Editor
/tenant/licensesGETAdmin
/tenant/quotaGETAdmin
/tenant/settingsGETAdmin
/tenant/settingsPUTAdmin
/user/GETUser, Contributor, Editor
/user/api-keysPOSTUser, Contributor, Editor
/user/api-keysGETUser, Contributor, Editor
/user/api-keys/GETUser, Contributor, Editor
/user/api-keys/DELETEUser, Contributor, Editor
/user/api-keys/{key_id}/renewPOSTUser, Contributor, Editor
/user/issuerGETUser, Contributor, Editor
/user/settingsGETUser, Contributor, Editor
/user/settingsPUTUser, Contributor, Editor
/user/tokenGETUser, Contributor, Editor
/version/GETUser, Contributor, Editor