Create Project Analysis Tokens without use manual process

Hi All

I open this topic because I am trying to create a script to add a project to sonarqube and create a key for that project. My script already create the project in sonarqube using the sonarqube API, but I like to setup the Analyze also, I need to create a token and use that token in my cicd.
My question for you is how I can generate the token? I can’t find any endpoint in API for this.

Thanks for help!
Today you help me! Today I help you!!! :slight_smile:

Hey there.

You’re probably looking for POST api/user_tokens/generate