Skip to main content
A 401 Invalid Authentication error means your API key is invalid or your W&B project entity/name is incorrect.

Verify your API key

  1. Create a new API key at User Settings.
  2. Store your API key securely.

Check your project configuration

Ensure your project is formatted correctly as <your-team>/<your-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

Still having issues?

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

Inference