Create an API key
- Open Settings → API keys (administrators only).
- Give the key a name (for example GitLab CI) and a role: viewer, analyst or admin.
- Copy the key: it is shown only once. Store it in your secrets manager.
Revoke a key from the same page when it is no longer used. The API is part of the Premium and Professional plans and of the trial; see the API documentation.