dockPI
← Back

DevOps Platform & Source Code Management

GitLab REST API

The GitLab REST API provides programmatic access to projects, repositories, merge requests, issues, CI/CD pipelines, runners, packages, and administrative resources. It enables development teams to automate workflows across the software development lifecycle on GitLab.com or supported self-managed deployments.

Key features

  • Create and manage projects, groups, repositories, and members.
  • Manage branches, commits, files, tags, and merge requests.
  • Trigger, monitor, retry, and cancel CI/CD pipelines and jobs.
  • Manage project variables and other supported CI/CD settings.
  • Retrieve issues, milestones, discussions, and project metadata.
  • Access container registry and package registry resources through supported APIs.
  • Manage runners and inspect pipeline execution information.
  • Configure project and group webhooks where supported.

Pricing

  • GitLab offers Free, Premium, and Ultimate tiers. REST API access is included with GitLab deployments and does not normally carry an independent per-request fee. GitLab.com paid subscriptions are billed per user, while CI/CD compute minutes, storage, and other usage-based resources can have separate allowances or charges. Self-managed GitLab Community Edition can be operated without a GitLab subscription, but infrastructure, storage, maintenance, and operational costs remain the operator's responsibility. Enterprise pricing and some deployment arrangements require a quote. Current pricing: https://about.gitlab.com/pricing/

Best use cases

  • Automating source code management and merge request workflows.
  • Building CI/CD orchestration dashboards.
  • Managing development projects across multiple teams.
  • Automating repository and pipeline configuration.
  • Integrating internal compliance and DevOps reporting.
  • Supporting self-hosted development infrastructure.

Authentication method

Supports personal access tokens, project access tokens, group access tokens, and OAuth 2.0 access tokens, subject to token type and endpoint permissions. Personal, project, and group tokens can use the PRIVATE-TOKEN header. OAuth access tokens can use Authorization: Bearer. Certain CI/CD endpoints accept job tokens or trigger tokens. GitLab webhooks support configured secret tokens, including X-Gitlab-Token verification, and newer webhook signing capabilities may depend on deployment version and configuration.

Similar APIs