GitLab Projects API

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

Business capability
Software Construction Management BC-4200.40

Operations 83

POST /api/v4/projects/{id}/ai_agent/sessions Create an external agent session #
GET /api/v4/projects/{id}/ai_agent/sessions List external agent sessions for a project #
PATCH /api/v4/projects/{id}/ai_agent/sessions/{session_id} Complete or fail an external agent session #
POST /api/v4/projects/{id}/ai_agent/identities Register an external agent identity #
POST /api/v4/projects/{id}/ai_agent/audit_events Ingest external agent audit events #
GET /api/v4/projects/{id}/security_settings List all project security settings #
PUT /api/v4/projects/{id}/security_settings Update project security settings #
GET /api/v4/projects/{id}/terraform/state_protection_rules List all Terraform state protection rules for a project #
POST /api/v4/projects/{id}/terraform/state_protection_rules Create a Terraform state protection rule for a project #
PATCH /api/v4/projects/{id}/terraform/state_protection_rules/{terraform_state_protection_rule_id} Update a Terraform state protection rule for a project #
DELETE /api/v4/projects/{id}/terraform/state_protection_rules/{terraform_state_protection_rule_id} Delete a Terraform state protection rule #
GET /api/v4/projects/{id}/(-/)search Search a project #
GET /api/v4/users/{user_id}/projects List all personal projects for a user #
GET /api/v4/users/{user_id}/contributed_projects List all projects contributions for a user #
GET /api/v4/users/{user_id}/starred_projects List all projects starred by a user #
POST /api/v4/projects/{id}/restore Restore a project marked for deletion #
GET /api/v4/projects List all projects #
POST /api/v4/projects Create a project #
POST /api/v4/projects/user/{user_id} Create a project for a user #
GET /api/v4/projects/{id}/share_locations List all groups available to invite to a project #
GET /api/v4/projects/{id} Retrieve a project #
PUT /api/v4/projects/{id} Update a project #
DELETE /api/v4/projects/{id} Delete a project #
POST /api/v4/projects/{id}/fork Create a fork of a project #
DELETE /api/v4/projects/{id}/fork Delete a fork relationship #
GET /api/v4/projects/{id}/forks List all forks of a project #
GET /api/v4/projects/{id}/pages_access Verify Pages access to a project #
POST /api/v4/projects/{id}/archive Archive a project #
POST /api/v4/projects/{id}/unarchive Unarchive a project #
POST /api/v4/projects/{id}/star Star a project #
POST /api/v4/projects/{id}/unstar Unstar a project #
GET /api/v4/projects/{id}/starrers List all users who starred a project #
GET /api/v4/projects/{id}/languages Retrieve programming language usage information #
POST /api/v4/projects/{id}/fork/{forked_from_id} Create a fork relationship #
POST /api/v4/projects/{id}/share Share a project with a group #
DELETE /api/v4/projects/{id}/share/{group_id} Delete a shared project link in a group #
POST /api/v4/projects/{id}/import_project_members/{project_id} Import members #
GET /api/v4/projects/{id}/users List all members of a project #
GET /api/v4/projects/{id}/groups List all ancestor groups #
GET /api/v4/projects/{id}/invited_groups List all invited groups in a project #
POST /api/v4/projects/{id}/housekeeping Start the housekeeping task for a project #
POST /api/v4/projects/{id}/repository_size Start a task to recalculate repository size for a project #
PUT /api/v4/projects/{id}/transfer Transfer a project to another namespace #
GET /api/v4/projects/{id}/transfer_locations List all transferable namespaces for a project #
GET /api/v4/projects/{id}/storage Retrieve the path to repository storage #
GET /api/v4/projects/{id}/audit_events List all project audit events #
GET /api/v4/projects/{id}/audit_events/{audit_event_id} Retrieve a project audit event #
GET /api/v4/projects/{id}/statistics Retrieve the statistics of the last 30 days #
GET /api/v4/projects/{id}/packages/protection/rules List all package protection rules #
POST /api/v4/projects/{id}/packages/protection/rules Create a package protection rule #
PATCH /api/v4/projects/{id}/packages/protection/rules/{package_protection_rule_id} Update a package protection rule #
DELETE /api/v4/projects/{id}/packages/protection/rules/{package_protection_rule_id} Delete a package protection rule #
GET /api/v4/projects/{id}/registry/protection/tag/rules List all container registry protection tag rules #
POST /api/v4/projects/{id}/registry/protection/tag/rules Create a container registry protection tag rule #
PATCH /api/v4/projects/{id}/registry/protection/tag/rules/{protection_rule_id} Update a container registry protection tag rule #
DELETE /api/v4/projects/{id}/registry/protection/tag/rules/{protection_rule_id} Delete a container registry protection tag rule #
GET /api/v4/projects/{id}/registry/protection/repository/rules List all container repository protection rules #
POST /api/v4/projects/{id}/registry/protection/repository/rules Create a container repository protection rule #
PATCH /api/v4/projects/{id}/registry/protection/repository/rules/{protection_rule_id} Update a container repository protection rule #
DELETE /api/v4/projects/{id}/registry/protection/repository/rules/{protection_rule_id} Delete a container repository protection rule #
POST /api/v4/projects/{id}/create_ci_config Create a CI configuration merge request #
POST /api/v4/projects/{id}/uploads/authorize Workhorse authorize the file upload #
POST /api/v4/projects/{id}/uploads Create an upload #
GET /api/v4/projects/{id}/uploads List all uploads #
GET /api/v4/projects/{id}/uploads/{upload_id} Download an uploaded file by ID #
DELETE /api/v4/projects/{id}/uploads/{upload_id} Delete an uploaded file by ID #
GET /api/v4/projects/{id}/uploads/{secret}/{filename} Download an uploaded file by secret and filename #
DELETE /api/v4/projects/{id}/uploads/{secret}/{filename} Delete an uploaded file by secret and filename #
GET /api/v4/projects/{id}/issues List all project issues #
POST /api/v4/projects/{id}/issues Create an issue #
GET /api/v4/projects/{id}/issues_statistics Retrieve issues statistics for a project #
GET /api/v4/projects/{id}/issues/{issue_iid} Retrieve a project issue #
PUT /api/v4/projects/{id}/issues/{issue_iid} Update an issue #
DELETE /api/v4/projects/{id}/issues/{issue_iid} Delete an issue #
PUT /api/v4/projects/{id}/issues/{issue_iid}/reorder Update the order of an issue #
POST /api/v4/projects/{id}/issues/{issue_iid}/move Move an issue #
POST /api/v4/projects/{id}/issues/{issue_iid}/clone Clone an issue #
GET /api/v4/projects/{id}/issues/{issue_iid}/closed_by List all merge requests that close an issue on merge #
GET /api/v4/runners/{id}/projects Get projects associated with a runner #
GET /api/v4/projects/{id}/runners List all runners for a project #
POST /api/v4/projects/{id}/runners Assign a runner to a project #
DELETE /api/v4/projects/{id}/runners/{runner_id} Unassign a runner from a project #
POST /api/v4/projects/{id}/runners/reset_registration_token Reset the runner registration token for a project #

Documentation

Specifications

Schemas & Data

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:gitlab-projects-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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 REST Projects API
  description: GitLab REST API used to interact with a GitLab installation.
  termsOfService: https://handbook.gitlab.com/handbook/legal/api-terms/
  version: '19.6'
  license:
    name: CC BY-SA 4.0
    url: https://gitlab.com/gitlab-org/gitlab/-/blob/master/LICENSE
    x-gitlab-description: The license applies to the OpenAPI specification document itself. For terms governing use of the GitLab API, see the termsOfService field.
servers:
- url: https://{hostname}
  description: GitLab REST API
  variables:
    hostname:
      default: gitlab.com
      description: Your GitLab instance hostname
security:
- http: []
- oauth2: []
- apiKey: []
tags:


# --- truncated at 32 KB (341 KB total) ---
# Full source: https://artifacts.apis.io/gitlab/openapi/gitlab-projects-api-openapi.yml