O'Reilly logo

GitLab Cookbook by Jeroen van Baarsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Getting your private token for the API

GitLab has a powerful API system; almost all the actions you can perform in the web interface can also be done via the API. In order to use the API, you need to get your private token from GitLab. In this recipe, we will see where you can find your token and how you can regenerate an existing token.

How to do it…

In the following steps, we will create our private token for the API:

  1. Log in to your GitLab instance.
  2. Click on Profile settings.
    How to do it…
  3. Click on Account.
  4. Here, you can find your private token:
    How to do it…
  5. If you need to reset ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required