mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[GH-ISSUE #20064] issue: Create new API key (CRITICAL) #57741
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 @richrich89 on GitHub (Dec 20, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/20064
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
v0.6.41
Ollama Version (if applicable)
No response
Operating System
Apple Mac
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
when i click create new api key it generates a new API key "sk-...."
Actual Behavior
curl 'https://open-webui-development-db34.up.railway.app/api/v1/auths/api_key'
-H 'accept: /'
-H 'accept-language: en-GB,en;q=0.9'
-H 'authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjI2N2U2MjM2LWFmYzAtNDZmZC04ZWJhLWU2NTBhNTI4MzlkOSIsImV4cCI6MTc2ODY4NDQzMCwianRpIjoiYzNkMWZjNGQtYTdmNC00M2UzLTlmYjktNDkwOGVkYzdmMGE4In0.Ez83Py3F71xTJNOXuOecGdWe3QI1hzmKvFGOtlJ7sBI'
-H 'content-type: application/json'
-b 'token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjI2N2U2MjM2LWFmYzAtNDZmZC04ZWJhLWU2NTBhNTI4MzlkOSIsImV4cCI6MTc2ODY4NDQzMCwianRpIjoiYzNkMWZjNGQtYTdmNC00M2UzLTlmYjktNDkwOGVkYzdmMGE4In0.Ez83Py3F71xTJNOXuOecGdWe3QI1hzmKvFGOtlJ7sBI'
-H 'priority: u=1, i'
-H 'referer: https://open-webui-development-db34.up.railway.app/admin/settings/general'
-H 'sec-ch-ua: "Google Chrome";v="143", "Chromium";v="143", "Not A(Brand";v="24"'
-H 'sec-ch-ua-mobile: ?0'
-H 'sec-ch-ua-platform: "macOS"'
-H 'sec-fetch-dest: empty'
-H 'sec-fetch-mode: cors'
-H 'sec-fetch-site: same-origin'
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36'
Steps to Reproduce
-H 'accept: /'
-H 'accept-language: en-GB,en;q=0.9'
-H 'authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjI2N2U2MjM2LWFmYzAtNDZmZC04ZWJhLWU2NTBhNTI4MzlkOSIsImV4cCI6MTc2ODY4NDQzMCwianRpIjoiYzNkMWZjNGQtYTdmNC00M2UzLTlmYjktNDkwOGVkYzdmMGE4In0.Ez83Py3F71xTJNOXuOecGdWe3QI1hzmKvFGOtlJ7sBI'
-H 'content-type: application/json'
-b 'token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjI2N2U2MjM2LWFmYzAtNDZmZC04ZWJhLWU2NTBhNTI4MzlkOSIsImV4cCI6MTc2ODY4NDQzMCwianRpIjoiYzNkMWZjNGQtYTdmNC00M2UzLTlmYjktNDkwOGVkYzdmMGE4In0.Ez83Py3F71xTJNOXuOecGdWe3QI1hzmKvFGOtlJ7sBI'
-H 'priority: u=1, i'
-H 'referer: https://open-webui-development-db34.up.railway.app/admin/settings/general'
-H 'sec-ch-ua: "Google Chrome";v="143", "Chromium";v="143", "Not A(Brand";v="24"'
-H 'sec-ch-ua-mobile: ?0'
-H 'sec-ch-ua-platform: "macOS"'
-H 'sec-fetch-dest: empty'
-H 'sec-fetch-mode: cors'
-H 'sec-fetch-site: same-origin'
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36'
Logs & Screenshots
Additional Information
No response
@owui-terminator[bot] commented on GitHub (Dec 20, 2025):
🔍 Similar Issues Found
I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions:
#19853 issue: NOT ABLE TO CREATE A NEW API KEY:
by Code-With-Samuel • Dec 10, 2025 •
bug#19683 issue: Potential Issues in API Base URL & Key Resolution Logic (Needs Double Check)
by flefevre • Dec 02, 2025 •
bug#19797 issue: Failure to start due to missing user.api_key
by aarononeal • Dec 07, 2025 •
bug#19420 issue: Unable to create new api-keys - 403 forbidden
by DominikStarke • Nov 24, 2025 •
bug#19861 issue:
by QuitHub • Dec 10, 2025 •
bugShow 5 more related issues
#19877 issue:
by dotmobo • Dec 11, 2025 •
bug#20046 issue:
by pierrelouisbescond • Dec 19, 2025 •
bug#19815 issue: Error if Application Header is not set to json when using API
by maurerle • Dec 08, 2025 •
bug#14908 issue: 401 x-api-key header is required web search
by deresolution20 • Jun 11, 2025 •
bug#17907 issue: API Key rejected for /api/v1/files/ upload despite correct config in v0.6.32
by sanctimon • Sep 29, 2025 •
bug💡 Tips:
This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.