# GitHub Container Registry Packages API

**Canonical:** https://apis.io/apis/github-container-registry/github-container-registry-packages-api/  
**Provider:** GitHub Container Registry — https://apis.io/providers/github-container-registry/  
**Base URL:** https://api.github.com  
**Documentation:** https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry

GitHub Container Registry Packages API is one of 2 APIs that [GitHub Container Registry](https://apis.io/providers/github-container-registry/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 2 JSON Schema definitions. Tagged areas include Packages. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a getting-started guide, pricing, and 2 JSON Schemas.

Manage packages for authenticated users and organizations.

## Operations (24)

| Method | Path | Summary |
|---|---|---|
| GET | `/orgs/{org}/packages` | List packages for an organization |
| GET | `/orgs/{org}/packages/{package_type}/{package_name}` | Get a package for an organization |
| DELETE | `/orgs/{org}/packages/{package_type}/{package_name}` | Delete a package for an organization |
| POST | `/orgs/{org}/packages/{package_type}/{package_name}/restore` | Restore a package for an organization |
| GET | `/orgs/{org}/packages/{package_type}/{package_name}/versions` | List package versions for a package owned by an organization |
| GET | `/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}` | Get a package version for an organization |
| DELETE | `/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}` | Delete package version for an organization |
| POST | `/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore` | Restore package version for an organization |
| GET | `/user/packages` | List packages for the authenticated user's namespace |
| GET | `/user/packages/{package_type}/{package_name}` | Get a package for the authenticated user |
| DELETE | `/user/packages/{package_type}/{package_name}` | Delete a package for the authenticated user |
| POST | `/user/packages/{package_type}/{package_name}/restore` | Restore a package for the authenticated user |
| GET | `/user/packages/{package_type}/{package_name}/versions` | List package versions for a package owned by the authenticated user |
| GET | `/user/packages/{package_type}/{package_name}/versions/{package_version_id}` | Get a package version for the authenticated user |
| DELETE | `/user/packages/{package_type}/{package_name}/versions/{package_version_id}` | Delete a package version for the authenticated user |
| POST | `/user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore` | Restore a package version for the authenticated user |
| GET | `/users/{username}/packages` | List packages for a user |
| GET | `/users/{username}/packages/{package_type}/{package_name}` | Get a package for a user |
| DELETE | `/users/{username}/packages/{package_type}/{package_name}` | Delete a package for a user |
| POST | `/users/{username}/packages/{package_type}/{package_name}/restore` | Restore a package for a user |
| GET | `/users/{username}/packages/{package_type}/{package_name}/versions` | List package versions for a package owned by a user |
| GET | `/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}` | Get a package version for a user |
| DELETE | `/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}` | Delete package version for a user |
| POST | `/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore` | Restore package version for a user |

## Machine-readable artifacts (9)

- **OpenAPI** — https://artifacts.apis.io/github-container-registry/openapi/github-container-registry-packages-api-openapi.yml
- **Documentation** — https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry
- **GettingStarted** — https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry#authenticating-to-the-container-registry
- **API Documentation** — https://docs.github.com/en/rest/packages/packages
- **Capabilities** — https://artifacts.apis.io/github-container-registry/capabilities/github-container-registry-capabilities.yml
- **Rules** — https://artifacts.apis.io/github-container-registry/rules/github-container-registry-rules.yml
- **Pricing** — https://docs.github.com/en/billing/managing-billing-for-github-packages/about-billing-for-github-packages
- **JSONSchema** — https://artifacts.apis.io/github-container-registry/json-schema/github-container-registry-package-version-schema.json
- **JSONSchema** — https://artifacts.apis.io/github-container-registry/json-schema/github-container-registry-package-schema.json

## Other GitHub Container Registry APIs (1)

- [GitHub Container Registry Merge Queue API](https://apis.io/apis/github-container-registry/github-container-registry-merge-queue-api/)

## Tags

Packages

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/github-container-registry/github-container-registry-packages-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/github-container-registry/.
