Skip to main content
Personal Access Tokens auto-expire 60 days from last use (or from creation if never used) — there is no permanent option. The token is renewed on every use, so an actively-used connector keeps a rolling 60-day window. For long-lived production team automation, SonarQube Cloud recommends Scoped Organization Tokens (created by org admins, not tied to a user account) — but those are an upgraded-plan feature. User tokens also inherit ALL permissions of the issuing user; create a dedicated service-account user for restricted scope.

Generate a Personal Access Token

Personal Access Tokens are managed from the Access Tokens page of your SonarQube Cloud account.

1

Open the Access Tokens page

Sign in to SonarQube Cloud, or sonarqube.us for the US region, then click your avatar and open My account > Access Tokens.

  • Select the Personal Tokens tab.
2

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.

1

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.
1

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.
2

Use Actions

Connect an AI platform to the linked account’s actions. See AI Platforms.Other ways to call actions are listed in Protocols & SDKs.

Next Steps

Webhooks setup

Configure receiving Events for SonarQube Cloud into StackOne.