Skip to main content
A 401 Invalid Authentication error means your API key is invalid or your W&B project entity or name is incorrect. Use the checks on this page to confirm both values are correct so requests can authenticate.

Verify your API key

Confirm that you have a valid, current API key before troubleshooting other causes.
  1. Create a new API key at User Settings.
  2. Store your API key securely.

Check your project configuration

Requests must specify the project as [YOUR-TEAM]/[YOUR-PROJECT] so the service can route them to the correct W&B team and project. Replace [YOUR-API-KEY] with your W&B API key, and replace [YOUR-TEAM]/[YOUR-PROJECT] with your W&B team and project. Python example:
Bash example:

Common mistakes

  • Using personal entity instead of team name.
  • Misspelling team or project name.
  • Missing forward slash between team and project.
  • Using an expired or deleted API key.

Troubleshoot remaining issues

  • Verify the team and project exist in your W&B account.
  • Ensure you have access to the specified team.
  • If the current API key isn’t working, create a new one.

Inference