Skip to main content

Generate a Weights & Biases API key

A Weights & Biases API key authenticates requests against the W&B GraphQL Public API on behalf of your account. The key inherits the full permissions of the user who mints it — W&B keys have no scopes, permission picker, or expiration.

1

Sign in to Weights & Biases

Go to the W&B sign-in page and complete Log In. You can sign in with Sign in with Apple, Sign in with GitHub, Sign in with Google, Sign in with Microsoft, or with your email and password using the Email and Password fields.

Weights & Biases sign-in dialog showing SSO options and the email/password form.
2

Open API keys from the avatar menu

Once signed in, click your profile avatar in the top-right corner to open the Toggle profile & account menu, then click API keys in the Account section of the dropdown. This lands you on the API keys panel of User settings (https://wandb.ai/settings#apikeys) where every key on your account is listed.

Weights & Biases avatar dropdown with the API keys entry under the Account section highlighted.
3

Create a new API key

In the API keys panel click + New key to open the Create new API key dialog. On Step 1 of 2 : Configure key, optionally enter a value in the Name (optional) field (the default is Untitled Key), then click Create API key to advance to Step 2.

  • Choose a descriptive name — the name appears in the API keys list so you can identify which key is used by StackOne when it’s time to rotate or revoke it.
Create new API key dialog on Step 1 of 2 Configure key with the Name field and Create API key button.
4

Copy the new key from the Your new API key dialog

On Step 2 the Your new API key dialog appears with the freshly minted key. Click Copy next to the API KEY value to copy the key to your clipboard, or click Copy and close to copy and dismiss the dialog in one step.

  • The dialog displays this warning in red: SAVE THIS KEY NOW. This is the only time you’ll see the complete key. The full key is displayed once and cannot be retrieved later.
  • Under Key information you can see the Key ID, Name, Created date, and Owner — StackOne only needs the value that is copied by the Copy button, not the Key ID.
  • Store the copied key in a secure location. If you lose it, open the API keys section again and use + New key to mint a replacement — the old key cannot be retrieved.
Your new API key dialog with the API KEY value and Copy button.
5

Paste the API key into StackOne Hub

In StackOne Hub, paste the copied value into the W&B API Key field. StackOne sends it as a bearer token on every request to the W&B GraphQL Public API at https://api.wandb.ai.

  • W&B API Key — the value you copied from the Your new API key dialog (starts with wandb_v1_). The key grants full access to your W&B account and should be kept secure.
  • W&B API keys have no scopes, permission picker, or expiration — a key inherits the full permissions of the user who minted it, so admin-only operations require an admin account.
  • To manage existing keys later, open the avatar menu → API keys; from there you can search by name or key ID, mint another + New key, or revoke keys you no longer need.

Linking the Account from the Hub

1

Navigate to the Hub

Use one of the three Linking Account Methods to access the Hub.
2

Fill out the fields

Fill out the following fields using details from your provider:
  • W&B API Key
3

Connect

  • Click Connect
  • If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider’s authorization flow.
  • Once authorization is successful, you will see a confirmation popup

If the account linking is successful, you will see the newly linked account in your Accounts page.