API for getting a project token

Hello!

I am using SonarQube version 8.2 (build 32929) and sonar scanner version 4.7.0.

In the sonar API it is possible to create a project.
api/projects/create

Is it possible to create a token for a specific project using the API? Without referring to the server part of SonarQube. Analog to api/user_tokens/generate only for the project.

Thanks, anyway.

1 Like

Hi,

Welcome to the community!

Your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

8.2 → 8.9.10 → 9.7.1 (last step optional)

You may find the Upgrade Guide helpful. If you have questions about upgrading, feel free to open a new thread for that here.

If your question persists after upgrade, please come back to us.

 
Ann

Hi! I have the same exact question, and I’m on SonarQube community edition, Version 8.9.9 (build 56886).

Is it possible to create a token for a specific project using the API (similar to how it can be done when creating a project through the user experience)?.

Hi @jmink_braingu,

Not in 8.9(.*). You’ll need to upgrade to the latest version for that functionality. If you’re LTS-only, the good news is that 9.9 LTS will be released on 7 Feb.

 
HTH,
Ann

Understood and thank you!

1 Like