How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

GitLab Packages API

Use this API to manage the [packages](https://docs.gitlab.com/user/packages/package_registry/) storedin a project or a group.

GitLab Packages API is one of 189 APIs that GitLab publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

This API exposes 16 JSON Schema definitions.

Tagged areas include Packages. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, authentication docs, an API reference, rate-limit docs, an AsyncAPI specification, and 16 JSON Schemas.

This API exposes 23 operations across 19 paths, and defines 12 schemas. It is described by OpenAPI 3.2.0, at version 19.6.

Requests are made against a single base URL, https://{hostname}.

23 operations 19 paths 12 schemas 2 DELETE15 GET6 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
19.6
Base URL
https://gitlab.com/api/v4
Authentication
HTTP Bearer, OAuth 2.0, API Key
Terms of Service
Resource Areas
1

Authentication & Security 3

GitLab Packages API declares 3 security schemes for authenticating requests. It accepts HTTP bearer tokens (http). It supports OAuth 2.0 (oauth2) using the authorizationCode flow, exposing 9 scopes. An API key is passed in the header as PRIVATE-TOKEN (apiKey). By default, every request must be authenticated.

Paths & Operations 23

Across 19 paths, the API surfaces 23 operations — 2 DELETE, 15 GET, 6 PUT. Each is listed below with its method, path, parameters, and response codes.

Packages 23

Use this API to manage the packages stored in a project or a group.

GET
/api/v4/projects/{id}/packages
List all packages for a project
getApiV4ProjectsIdPackages 10 params → 200403404400
GET
/api/v4/projects/{id}/packages/{package_id}
Retrieve a project package
getApiV4ProjectsIdPackagesPackageId 2 params → 200403404400
DELETE
/api/v4/projects/{id}/packages/{package_id}
Delete a project package
deleteApiV4ProjectsIdPackagesPackageId 2 params → 204403404400
GET
/api/v4/projects/{id}/packages/{package_id}/pipelines
List all package pipelines
getApiV4ProjectsIdPackagesPackageIdPipelines 5 params → 200401403404400
GET
/api/v4/projects/{id}/packages/{package_id}/package_files
List all package files
getApiV4ProjectsIdPackagesPackageIdPackageFiles 6 params → 200404400
DELETE
/api/v4/projects/{id}/packages/{package_id}/package_files/{package_file_id}
Delete a package file
deleteApiV4ProjectsIdPackagesPackageIdPackageFilesPackageFileId 3 params → 204403404400
GET
/api/v4/projects/{id}/packages/{package_id}/package_files/{package_file_id}/download
Download a package file
getApiV4ProjectsIdPackagesPackageIdPackageFilesPackageFileIdDownload 4 params → 200401403404400
GET
/api/v4/packages/maven/{path}/{file_name}
Download the maven package file for the instance
getApiV4PackagesMavenPathFileName 2 params → 200401403404400
GET
/api/v4/groups/{id}/-/packages/maven/{path}/{file_name}
Download the maven package file for a group
getApiV4GroupsIdDashPackagesMavenPathFileName 3 params → 200302401403404400
GET
/api/v4/projects/{id}/packages/maven/{path}/{file_name}
Download the maven package file for a project
getApiV4ProjectsIdPackagesMavenPathFileName 3 params → 200302401403404400
PUT
/api/v4/projects/{id}/packages/maven/{path}/{file_name}
Upload the maven package file
putApiV4ProjectsIdPackagesMavenPathFileName 3 params body → 200400401403404422
PUT
/api/v4/projects/{id}/packages/maven/{path}/{file_name}/authorize
Workhorse authorize the maven package file upload
putApiV4ProjectsIdPackagesMavenPathFileNameAuthorize 3 params → 200400401403404
GET
/api/v4/groups/{id}/packages
List all packages for a group
getApiV4GroupsIdPackages 11 params → 200401404400
GET
/api/v4/projects/{id}/packages/go/{module_name}/@v/list
List
getApiV4ProjectsIdPackagesGoModuleNameVList 2 params → 200404400
GET
/api/v4/projects/{id}/packages/go/{module_name}/@v/{module_version}.info
Version metadata
getApiV4ProjectsIdPackagesGoModuleNameVModuleVersionInfo 3 params → 200404400
GET
/api/v4/projects/{id}/packages/go/{module_name}/@v/{module_version}.mod
Download module file
getApiV4ProjectsIdPackagesGoModuleNameVModuleVersionMod 3 params → 200404400
GET
/api/v4/projects/{id}/packages/go/{module_name}/@v/{module_version}.zip
Download module source
getApiV4ProjectsIdPackagesGoModuleNameVModuleVersionZip 3 params → 200404400
PUT
/api/v4/projects/{id}/packages/generic/{package_name}/{package_version}/{file_name}/authorize
Workhorse authorize generic package file
putApiV4ProjectsIdPackagesGenericPackageNamePackageVersionFileNameAuthorize 4 params body → 200401403404400
PUT
/api/v4/projects/{id}/packages/generic/{package_name}/{package_version}/{path}/{file_name}/authorize
Workhorse authorize generic package file
putApiV4ProjectsIdPackagesGenericPackageNamePackageVersionPathFileNameAuthorize 5 params body → 200401403404400
PUT
/api/v4/projects/{id}/packages/generic/{package_name}/{package_version}/{file_name}
Upload package file
putApiV4ProjectsIdPackagesGenericPackageNamePackageVersionFileName 4 params body → 200201400401403404
GET
/api/v4/projects/{id}/packages/generic/{package_name}/{package_version}/{file_name}
Download package file
getApiV4ProjectsIdPackagesGenericPackageNamePackageVersionFileName 5 params → 200401403404400
PUT
/api/v4/projects/{id}/packages/generic/{package_name}/{package_version}/{path}/{file_name}
Upload package file
putApiV4ProjectsIdPackagesGenericPackageNamePackageVersionPathFileName 5 params body → 200201400401403404
GET
/api/v4/projects/{id}/packages/generic/{package_name}/{package_version}/{path}/{file_name}
Download package file
getApiV4ProjectsIdPackagesGenericPackageNamePackageVersionPathFileName 6 params → 200401403404400

Schemas 12

The contract defines 12 schemas that model the data the API accepts and returns. The most detailed are APIEntitiesPackage (16 properties), APIEntitiesPackagePipeline (11 properties), APIEntitiesUserBasic (10 properties), APIEntitiesPackageFile (9 properties). Each schema is shown below with its type and property counts.

APIEntitiesCustomAttribute
object
2 properties
putApiV4ProjectsIdPackagesGenericPackageNamePackageVersionPathFileNameRequest
object
3 properties 1 required
APIEntitiesPackagePipeline
object
11 properties
APIEntitiesPackageVersion
object
5 properties
putApiV4ProjectsIdPackagesGenericPackageNamePackageVersionPathFileNameAuthorizeRequest
object
1 property
APIEntitiesGoModuleVersion
object
2 properties
putApiV4ProjectsIdPackagesGenericPackageNamePackageVersionFileNameAuthorizeRequest
object
1 property
putApiV4ProjectsIdPackagesMavenPathFileNameRequest
object
1 property 1 required
putApiV4ProjectsIdPackagesGenericPackageNamePackageVersionFileNameRequest
object
3 properties 1 required
APIEntitiesPackage
object
16 properties
APIEntitiesPackageFile
object
9 properties
APIEntitiesUserBasic
object
10 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

gitlab-packages-api-openapi.yml Raw ↑

Other APIs GitLab publishes across the network.

GitLab Orbit gRPC API
GitLab GraphQL API
GitLab Applications API
GitLab Authorization API
GitLab Broadcast Messages API
GitLab Groups API
GitLab Metadata API
GitLab Project Webhooks API
GitLab Projects API
GitLab Tokens API
GitLab User Info API
GitLab Webhook Configuration API
Where this information came from

This is an independent, third-party profile of GitLab Packages API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.