How to use sonarqube cloud api to generate project-specific token

Hi
I have a question about project-specific tokens. How can I obtain them via web-api? Instead of using UI. Due to the fact that the token is associated with the person who generated it, once that person’s account is removed, all tokens he created will automatically be revoked. My goal is to prevent this from happening again by using web-api to generate tokens using service-account. Thank you

Hi,

The best way to master the API is to perform the desired action via the UI and eavesdrop to see which calls the UI made to accomplish the action.

You may also find this guide helpful.

 
HTH,
Ann

hi G Ann
i tried the way in the guide, but unfortunately, i can’t find the correct web API./

Hi,

What did you try to find the right API?

 
Ann