Skip to main content
GitHub Docs
Version:
Enterprise Server 3.15
Search GitHub Docs
Search
Select language: current language is English
Open Search Bar
Close Search Bar
Open Menu
Open Sidebar
REST API
/
Packages
Home
REST API
API Version:
2022-11-28 (latest)
Quickstart
About the REST API
About the REST API
Comparing GitHub's APIs
API Versions
Breaking changes
OpenAPI description
Using the REST API
Getting started
Rate limits
Pagination
Libraries
Best practices
Troubleshooting
Timezones
CORS and JSONP
Issue event types
GitHub event types
Authentication
Authenticating
Keeping API credentials secure
Endpoints for GitHub App installation tokens
Endpoints for GitHub App user tokens
Endpoints for fine-grained PATs
Permissions for GitHub Apps
Permissions for fine-grained PATs
Guides
Script with JavaScript
Script with Ruby
Discover resources for a user
Delivering deployments
Rendering data as graphs
Working with comments
Building a CI server
Get started - Git database
Get started - Checks
Encrypt secrets
Actions
Artifacts
Cache
OIDC
Permissions
Secrets
Self-hosted runner groups
Self-hosted runners
Variables
Workflow jobs
Workflow runs
Workflows
Activity
Events
Feeds
Notifications
Starring
Watching
Announcement banners
Organization
Apps
GitHub Apps
Installations
OAuth authorizations
Webhooks
Billing
Billing
Branches
Branches
Protected branches
Checks
Check runs
Check suites
Code scanning
Code scanning
Code security settings
Configurations
Codes of conduct
Codes of conduct
Collaborators
Collaborators
Invitations
Commits
Commits
Commit comments
Commit statuses
Dependabot
Alerts
Secrets
Dependency graph
Dependency review
Dependency submission
Software bill of materials (SBOM)
Deploy keys
Deploy keys
Deployments
Deployment branch policies
Deployments
Environments
Protection rules
Deployment statuses
Emojis
Emojis
Enterprise administration
Admin stats
Announcement
Audit log
Billing
Code security and analysis
Global webhooks
LDAP
License
Manage GHES
Organization pre-receive hooks
Organizations
Pre-receive environments
Pre-receive hooks
Repository pre-receive hooks
SCIM
Users
Gists
Gists
Comments
Git database
Blobs
Commits
References
Tags
Trees
Gitignore
Gitignore
Issues
Assignees
Comments
Events
Issues
Labels
Milestones
Timeline
Licenses
Licenses
Markdown
Markdown
Meta
Meta
Metrics
Statistics
Migrations
Organizations
Users
OAuth app authorizations
OAuth app authorizations
Organizations
Custom properties
Custom roles
Members
Organization roles
Organizations
Outside collaborators
Personal access tokens
Rule suites
Rules
Security managers
Webhooks
Packages
Packages
Pages
Pages
Projects (classic)
Boards
Cards
Collaborators
Columns
Pull requests
Pull requests
Review comments
Review requests
Reviews
Rate limit
Rate limit
Reactions
Reactions
Releases
Releases
Release assets
Repositories
Autolinks
Contents
Custom properties
Forks
Git LFS
Repositories
Rule suites
Rules
Tags
Webhooks
Search
Search
Secret scanning
Secret scanning
Security advisories
Global security advisories
Teams
Teams
Discussion comments
Discussions
External groups
Members
Users
Emails
Followers
GPG keys
Git SSH keys
Social accounts
SSH signing keys
Users
The REST API is now versioned.
For more information, see "
About API versioning
."
REST API
/
Packages
REST API endpoints for packages
Use the REST API to interact with GitHub Packages.
REST API endpoints for packages
Get list of conflicting packages during Docker migration for organization
List packages for an organization
Get a package for an organization
Delete a package for an organization
Restore a package for an organization
List package versions for a package owned by an organization
Get a package version for an organization
Delete package version for an organization
Restore package version for an organization
Get list of conflicting packages during Docker migration for authenticated-user
List packages for the authenticated user's namespace
Get a package for the authenticated user
Delete a package for the authenticated user
Restore a package for the authenticated user
List package versions for a package owned by the authenticated user
Get a package version for the authenticated user
Delete a package version for the authenticated user
Restore a package version for the authenticated user
Get list of conflicting packages during Docker migration for user
List packages for a user
Get a package for a user
Delete a package for a user
Restore a package for a user
List package versions for a package owned by a user
Get a package version for a user
Delete package version for a user
Restore package version for a user