GitLab Projects API

The Projects API from GitLab — 17 operation(s) for projects.

Business capability
Software Construction Management BC-4200.40

Operations 26

DELETE /api/v4/projects/{id}/repository/merged_branches Delete api V4 projects id repository merged branches #
GET /api/v4/projects/{id}/repository/branches/{branch} Get api V4 projects id repository branches branch #
DELETE /api/v4/projects/{id}/repository/branches/{branch} Delete api V4 projects id repository branches branch #
HEAD /api/v4/projects/{id}/repository/branches/{branch} Head api V4 projects id repository branches branch #
GET /api/v4/projects/{id}/repository/branches Get api V4 projects id repository branches #
POST /api/v4/projects/{id}/repository/branches Post api V4 projects id repository branches #
PUT /api/v4/projects/{id}/repository/branches/{branch}/unprotect Put api V4 projects id repository branches branch unprotect #
PUT /api/v4/projects/{id}/repository/branches/{branch}/protect Put api V4 projects id repository branches branch protect #
GET /api/v4/projects/{id}/badges/{badge_id} GitLab Gets a Badge of a Project #
PUT /api/v4/projects/{id}/badges/{badge_id} GitLab Updates a Badge of a Project #
DELETE /api/v4/projects/{id}/badges/{badge_id} GitLab Removes a Badge from the Project #
GET /api/v4/projects/{id}/badges GitLab Gets a List of Project Badges Viewable by the Authenticated User #
POST /api/v4/projects/{id}/badges GitLab Adds a Badge to a Project #
GET /api/v4/projects/{id}/badges/render GitLab Preview a Badge from a Project #
DELETE /api/v4/projects/{id}/access_requests/{user_id} GitLab Denies an Access Request for the Given User #
PUT /api/v4/projects/{id}/access_requests/{user_id}/approve GitLab Approves an Access Request for the Given User #
GET /api/v4/projects/{id}/access_requests GitLab Gets a List of Access Requests for a Project #
POST /api/v4/projects/{id}/access_requests GitLab Requests Access for the Authenticated User to a Project #
PUT /api/v4/projects/{id}/alert_management_alerts/{alert_iid}/metric_images/{metric_image_id} Put api V4 projects id alert management alerts alert iid metric images metric… #
DELETE /api/v4/projects/{id}/alert_management_alerts/{alert_iid}/metric_images/{metric_image_id} Delete api V4 projects id alert management alerts alert iid metric images… #
GET /api/v4/projects/{id}/alert_management_alerts/{alert_iid}/metric_images Get api V4 projects id alert management alerts alert iid metric images #
POST /api/v4/projects/{id}/alert_management_alerts/{alert_iid}/metric_images Post api V4 projects id alert management alerts alert iid metric images #
POST /api/v4/projects/{id}/alert_management_alerts/{alert_iid}/metric_images/authorize Post api V4 projects id alert management alerts alert iid metric images… #
GET /api/v4/projects/{id}/jobs GitLab List Jobs for a Project #
GET /api/v4/projects/{id}/jobs/{job_id} GitLab Get a Single Job by ID #
POST /api/v4/projects/{id}/jobs/{job_id}/play GitLab Run a Manual Job #

Documentation

Specifications

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/gitlab-projects-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

gitlab-projects-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: GitLab Projects API
  version: v4
  description: An OpenAPI definition for the GitLab REST API.
  termsOfService: https://about.gitlab.com/terms/
  license:
    name: CC BY-SA 4.0
    url: https://gitlab.com/gitlab-org/gitlab/-/blob/master/LICENSE
servers:
- url: https://www.gitlab.com/api/
security:
- ApiKeyAuth: []
tags:


# --- truncated at 32 KB (38 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/gitlab/refs/heads/main/openapi/gitlab-projects-api-openapi.yml