SonarCloud project identifier id/primary key not in API?

Im pulling some information for sonarcloud in our dashboard but I dont see sonarcloud primary key in the json response.

I cannot use project key because it can be updated
I cannot use project name because it can also be updated.

Is there a unique key/id that I can use to reference to specific project without fearing it will be renamed in the future?

Our internal IDs are kept internal, so that we have the freedom to change them if needed.

We recommend to use the project key as the identifier. It’s true that it may change, but that will only happen by an administrator of the project, so that should be within their control.

1 Like