Generate a GitLab API Token

If your GitLab is self-hosted or you simply prefer to connect using a token, you'll first need an API token:

  1. In GitLab, navigate to User Settings > Preferences > Access Tokens and click Add new token.

  2. Provide a Token name, remove the date from Expiration date (ie. the token should not expire) and select all checkboxes in Select scopes (or at a minimum, select api or read_api scopes).

  3. Click Create personal access token and copy down the token.

Last updated

Was this helpful?