[GH-ISSUE #20064] issue: Create new API key (CRITICAL) #19075

Closed
opened 2026-04-20 01:24:01 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @richrich89 on GitHub (Dec 20, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/20064

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!).
  • I am using the latest version of Open WebUI.

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

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

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

  1. CLICK SETTINGS
    1. CLICK ACCOUNT
    1. CLICK CREATE API KEY - ERROR
  2. 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'

Logs & Screenshots

Image

Additional Information

No response

Originally created by @richrich89 on GitHub (Dec 20, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/20064 ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!). - [x] I am using the latest version of Open WebUI. ### 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 - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### 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 1. CLICK SETTINGS 2. 2. CLICK ACCOUNT 3. 3. CLICK CREATE API KEY - ERROR 4. 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' ### Logs & Screenshots <img width="1728" height="1117" alt="Image" src="https://github.com/user-attachments/assets/309f741f-b9f8-4d1e-85cc-7a343d065c3f" /> ### Additional Information _No response_
GiteaMirror added the bug label 2026-04-20 01:24:01 -05:00
Author
Owner

@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:

  1. #19853 issue: NOT ABLE TO CREATE A NEW API KEY:
    by Code-With-Samuel • Dec 10, 2025 • bug

  2. #19683 issue: Potential Issues in API Base URL & Key Resolution Logic (Needs Double Check)
    by flefevre • Dec 02, 2025 • bug

  3. #19797 issue: Failure to start due to missing user.api_key
    by aarononeal • Dec 07, 2025 • bug

  4. #19420 issue: Unable to create new api-keys - 403 forbidden
    by DominikStarke • Nov 24, 2025 • bug

  5. #19861 issue:
    by QuitHub • Dec 10, 2025 • bug

Show 5 more related issues
  1. #19877 issue:
    by dotmobo • Dec 11, 2025 • bug

  2. #20046 issue:
    by pierrelouisbescond • Dec 19, 2025 • bug

  3. #19815 issue: Error if Application Header is not set to json when using API
    by maurerle • Dec 08, 2025 • bug

  4. #14908 issue: 401 x-api-key header is required web search
    by deresolution20 • Jun 11, 2025 • bug

  5. #17907 issue: API Key rejected for /api/v1/files/ upload despite correct config in v0.6.32
    by sanctimon • Sep 29, 2025 • bug


💡 Tips:

  • If this is a duplicate, please consider closing this issue and adding any additional details to the existing one
  • If you found a solution in any of these issues, please share it here to help others

This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.

<!-- gh-comment-id:3678127737 --> @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: 1. [#19853](https://github.com/open-webui/open-webui/issues/19853) **issue: NOT ABLE TO CREATE A NEW API KEY:** *by Code-With-Samuel • Dec 10, 2025 • `bug`* 2. [#19683](https://github.com/open-webui/open-webui/issues/19683) **issue: Potential Issues in API Base URL & Key Resolution Logic (Needs Double Check)** *by flefevre • Dec 02, 2025 • `bug`* 3. [#19797](https://github.com/open-webui/open-webui/issues/19797) **issue: Failure to start due to missing user.api_key** *by aarononeal • Dec 07, 2025 • `bug`* 4. [#19420](https://github.com/open-webui/open-webui/issues/19420) **issue: Unable to create new api-keys - 403 forbidden** *by DominikStarke • Nov 24, 2025 • `bug`* 5. [#19861](https://github.com/open-webui/open-webui/issues/19861) **issue:** *by QuitHub • Dec 10, 2025 • `bug`* <details> <summary>Show 5 more related issues</summary> 6. [#19877](https://github.com/open-webui/open-webui/issues/19877) **issue:** *by dotmobo • Dec 11, 2025 • `bug`* 7. [#20046](https://github.com/open-webui/open-webui/issues/20046) **issue:** *by pierrelouisbescond • Dec 19, 2025 • `bug`* 8. [#19815](https://github.com/open-webui/open-webui/issues/19815) **issue: Error if Application Header is not set to json when using API** *by maurerle • Dec 08, 2025 • `bug`* 9. [#14908](https://github.com/open-webui/open-webui/issues/14908) **issue: 401 x-api-key header is required web search** *by deresolution20 • Jun 11, 2025 • `bug`* 10. [#17907](https://github.com/open-webui/open-webui/issues/17907) **issue: API Key rejected for /api/v1/files/ upload despite correct config in v0.6.32** *by sanctimon • Sep 29, 2025 • `bug`* </details> --- 💡 **Tips:** - If this is a duplicate, please consider closing this issue and adding any additional details to the existing one - If you found a solution in any of these issues, please share it here to help others *This comment was generated automatically by a bot.* Please react with a 👍 if this comment was helpful, or a 👎 if it was not.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#19075