How to (re)generate my Jenkins user token


  • How we can get the user APIToken?
  • How we can change the user APIToken?



An API Token is a Jenkins generated code that allow you to use se HTTP BASIC authentication in order to make operations using CLI or REST calls to the Jenkins API.

  • Go to your Jenkins instance and login with the user that you want to generate the APIToken for

  • Then open the user profile page

  • Click on Configure to open the user configuration page

  • In order to show the current APIToken click on Show API Token button

  • To generate a new APIToken click on Change API Tokenbutton

Have more questions? Submit a request


  • 0
    Discover Bank

    Is there a way to programmatically generate/rotate the same?


    Thank you

  • 0
    Andrey Kaliazin

    More generally - how to access/modify the user security parameters - API token, SSH private key etc, via ssh, jenkins cli, rest? 

    Just showing how to do it via GUI is not helpful really.

    Kind regards

  • 0
    Samrat Shaw

    I have written an article of how we an retrieve the token programmatically. 

    Might be helpful to other.

Please sign in to leave a comment.