SonarQube Cloud
89 actions · 1 auth method
PreviewCode ManagementDeveloper Tools
Authentication
Personal Access Token (Bearer)
SonarQube Cloud Personal Access Token sent as `Authorization: Bearer <token>` on every request. Generated from My accoun…Guides: Connector Profile, Link Account
Actions
89 actions
Action
Description
Authentication Logout
Logout a user.
Authentication Validate
Check credentials. Returns true for anonymous user.
Ce Activity Status
Returns CE activity related metrics.Requires ‘Administer’ permission on the specified project.
Ce Component
Get the pending tasks, in-progress tasks and the last executed task of a given component (usually a project). Requires `…
Components Search
Search for top-level components (projects) in the organization, filterable by name pattern and qualifier. Use this to fi…
Components Show
Returns a component (file, directory, project) and its ancestors. The ancestors are ordered from the parent to the root…
Components Tree
Navigate through components based on the chosen strategy.Requires the following permission: ‘Browse’ on the specified pr…
Duplications Show
Get duplications. Require Browse permission on file’s project
Favorites Add
Add a project as favorite for the authenticated user.Only 100 components can be added as favorite.Requires authenticatio…
Favorites Remove
Remove a component (project, directory, file etc.) as favorite for the authenticated user.Requires authentication.
Favorites Search
Search for the authenticated user favorites.Requires authentication.
Hotspots Search
Search for Security Hotspots.
Issues Authors
Search SCM accounts which match a given query.Requires authentication.
Issues Search
Search for issues.Requires the ‘Browse’ permission on the specified project(s).
Issues Tags
List tags matching a given query
Languages List
List supported programming languages
Measures Component
Return component with specified measures. The componentId or the component parameter must be provided.Requires the follo…
Measures Component Tree
Recursively walk a project’s directory/file tree and return the specified measures (e.g. coverage, complexity, ncloc) fo…
Measures Search History
Search measures history of a component.Measures are ordered chronologically.Pagination applies to the number of measures…
Metrics Search
Search for metrics
Metrics Types
List all available metric types.
Notifications Add
Add a notification for the authenticated user.Requires one of the following permissions: Authentication if no login is p…
Notifications List
List notifications of the authenticated user
Notifications Remove
Remove a notification for the authenticated user
Permissions Add Project Creator To Template
Add a project creator to a permission template.Requires the permission ‘Administer’ on the organization.
Permissions Add User
Add permission to a user. This service defaults to global permissions, but can be limited to project permissions by prov…
Permissions Add User To Template
Add a user to a permission template. Requires the permission ‘Administer’ on the organization.
Permissions Apply Template
Apply a permission template to one project.The project id or project key must be provided.The template id or name must b…
Permissions Bulk Apply Template
Apply a permission template to many projects in one call — use this to roll out (or re-roll-out) a template across a…
Permissions Create Template
Create a new permission template — a reusable named bundle of permissions that can be applied to projects (via `permissi…
Permissions Delete Template
Delete a permission template.Requires the permission ‘Administer’ on the organization.
Permissions Remove Project Creator From Template
Remove a project creator from a permission template.Requires the permission ‘Administer’ on the organization.
Permissions Remove User
Remove permission from a user. This service defaults to global permissions, but can be limited to project permissions by…
Permissions Remove User From Template
Remove a user from a permission template. Requires the permission ‘Administer’ on the organization.
Permissions Search Templates
List the permission templates configured for the organization (each template is a reusable named bundle of permissions t…
Permissions Set Default Template
Set a permission template as default.Requires the permission ‘Administer’ on the organization.
Permissions Update Template
Update a permission template.Requires the permission ‘Administer’ on the organization.
Project Analyses Create Event
Pin a version tag or release marker (an “event”) onto a specific Sonar analysis. Use this to attach things like
v1.2.3…Project Analyses Delete
Delete a project analysis.Requires the permission ‘Administer’ on the project of the specified analysis.
Project Analyses Delete Event
Remove a version tag / release marker (an “event”) that was previously pinned to a Sonar analysis. Use this to clear a v…
Project Analyses Search
Search a project analyses and attached events.Requires the following permission: ‘Browse’ on the specified project
Project Analyses Unset Baseline
Unset any manually-set New Code Period baseline on a project or a long-lived branch.Unsetting a manual baseline restores…
Project Analyses Update Event
Rename an existing version tag / release marker (an “event”) on a Sonar analysis — e.g. change
v1.2.3 to v1.2.4. Req…Project Badges Ai Code Assurance
Generate a badge for project’s AI assurance as an SVG.Requires ‘Browse’ permission on the specified project.
Project Badges Measure
Generate badge for project’s measure as an SVG.Requires a security token for private projects.
Project Badges Quality Gate
Generate badge for project’s quality gate as an SVG.Requires a security token for private projects.
Project Branches Delete
Delete a non-main branch of a project.Requires ‘Administer’ rights on the specified project.
Project Branches List
List the branches of a project.The statistics are the overall counts on long branches, and the count of issues detected…
Project Branches Rename
Rename the main branch of a project.Requires ‘Administer’ permission on the specified project.
Project Links Create
Create a new project link.Requires ‘Administer’ permission on the specified project, or global ‘Administer’ permission.
Project Links Delete
Delete existing project link.Requires ‘Administer’ permission on the specified project, or global ‘Administer’ permissio…
Project Links Search
List links of a project. Exactly one of
projectId or projectKey must be provided. Requires Administer or Browse…Project Pull Requests Delete
Delete a pull request.Requires ‘Administer’ rights on the specified project.
Project Pull Requests List
List the pull requests of a project.One of the following permissions is required: ‘Browse’ rights on the specified proje…
Project Tags Search
Search tags
Project Tags Set
Set tags on a project.Requires the following permission: ‘Administer’ rights on the specified project
Projects Bulk Delete
Delete one or several projects.Only the 1’000 first items in project filters are taken into account.Requires ‘Administer…
Projects Create
Create a project.Requires ‘Create Projects’ permission
Projects Delete
Delete a project. Requires ‘Administer System’ permission or ‘Administer’ permission on the project.
Projects Search
Search for projects. Results are filtered to projects the caller has access to.
Projects Update Key
Update a project or module key and all its sub-components keys.Requires the permission ‘Administer’ on the specified pro…
Projects Update Visibility
Updates visibility of a project.Requires ‘Project administer’ permission on the specified project
Qualityprofiles Backup
Backup a quality profile in XML form. The exported profile can be restored through api/qualityprofiles/restore.
Qualityprofiles Changelog
Get the history of changes on a quality profile: rule activation/deactivation, change in parameters/severity. Events are…
Qualityprofiles Copy
Copy a quality profile. Requires to be logged in and the ‘Administer Quality Profiles’ permission.
Qualityprofiles Create
Create a quality profile.Requires to be logged in and the ‘Administer Quality Profiles’ permission.
Qualityprofiles Delete
Delete a quality profile and all its descendants. The default quality profile cannot be deleted. Requires one of the fol…
Qualityprofiles Inheritance
Show a quality profile’s ancestors and children. Provide either
key alone, or the trio language + qualityProfile +…Qualityprofiles Projects
List projects with their association status regarding a quality profile
Qualityprofiles Search
Search quality profiles
Rules Repositories
List available rule repositories
Rules Search
Search for a collection of relevant rules matching a specified query.Since 5.5, following fields in the response have be…
Rules Show
Get detailed information about a ruleSince 5.5, following fields in the response have been deprecated :“effortToFixDescr…
Rules Tags
List rule tags
Rules Update
Update an existing rule.Requires the ‘Administer Quality Profiles’ permission
Settings List Definitions
List settings definitions.Requires ‘Browse’ permission when a component is specifiedTo access licensed settings, authent…
Settings Reset
Remove a setting value.The settings defined in conf/sonar.properties are read-only and can’t be changed.Requires the per…
User Groups Add User
Add a user to a group. SonarCloud identifies the group by
name + organization only; numeric group id is not accept…User Groups Create
Create a group.Requires the following permission: ‘Administer System’.
User Groups Delete
Delete a group. The default groups cannot be deleted. SonarCloud identifies the group by
name + organization only; n…User Groups Search
Search for user groups.Requires the following permission: ‘Administer System’.
User Groups Update
Update a group.Requires the following permission: ‘Administer System’.
User Groups Users
Given a group name, list the users in that group (with selection/membership flags). Use this when the question is “who i…
User Tokens Generate
Generate a user access token. Please keep your tokens secret. They enable you to authenticate and analyze projects. The…
User Tokens Revoke
Revoke an access token of the authenticated user.
User Tokens Search
List the access tokens of the authenticated user. Field ‘lastConnectionDate’ is only updated every hour, so it may not b…
Users Groups
Given a user login, list every group that user is a member of. Use this when the question is “which groups does user X b…
Webservices List
List web services
Webservices Response Example
Display web service response example
Getting Started
Create or Select a Project
Set up a new project or select an existing one. See the Projects Guide.
Configure the Connector
Enable the connector and set up a connector profile in your project. See Managing Connectors.
Connector Profile
SonarQube Cloud - Personal Access Token (Bearer)
Link an Account
Connect an account using StackOne Hub or Auth Link.
Link Account
SonarQube Cloud - Personal Access Token (Bearer)
Use Actions
Invoke actions using one of the methods below:
- MCP – Model Context Protocol for AI assistants
- A2A – Agent-to-Agent protocol
- AI Toolset (TypeScript) – TypeScript SDK for AI agents
- AI Toolset (Python) – Python SDK for AI agents
- Actions RPC – Direct API calls
- Playground – Test actions in the dashboard