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.
The private token is used for all the API requests; it's a replacement for the username/password combination. You have to make sure that your private token is kept secure; the same way you have to make sure your username/password is secure.
When you have the feeling your token has been compromised, you...