Generate a Personal Access Token
Personal Access Tokens are managed from the Access Tokens page of your SonarQube Cloud account.
Sign in to SonarQube Cloud
Sign in to SonarQube Cloud (or sonarqube.us for the US region).
Open the Access Tokens page
Click your avatar (top-right) → My account, then choose Access Tokens from the left sidebar.
- Direct URL: https://sonarcloud.io/account/access-tokens
- Make sure the Personal Tokens tab is selected (not Agent Apps).
Generate the token
Under Generate Tokens, enter a name and click Generate Token.
- Name — human-readable identifier (e.g.
stackone-connector) - Click Generate Token.
- Copy the token value immediately — it is only displayed once. Tokens are 40-character hex strings with no prefix (e.g.
0eaecdfe61a6b19cbbdfee4f560e51ab476b01af). - Scheduled expiry is automatic: 60 days from creation, then 60 days from last use. Use the token at least once every 60 days to keep it alive — or rotate.
Find your Organization Key
Almost every Web API endpoint requires your organization key.
Locate the organization slug
In SonarQube Cloud, the organization key is the slug in the URL when viewing your workspace.
- Look at the URL:
https://sonarcloud.io/organizations/<slug>— the segment after/organizations/is your organization key. - Or open My account → Organizations and copy the Key column for the organization you want to integrate.
Linking the Account from the Hub
Navigate to the Hub
Fill out the fields
- Personal Access Token
- Organization Key
- Region (Optional)
If the account linking is successful, you will see the newly linked account in your Accounts page.