Skip to main content
GitHub Docs
All products
REST API
Version:
2022-11-28 (latest)
Quickstart
Overview
Resources in the REST API
API Versions
Media types
Other authentication methods
Troubleshooting
Libraries
OpenAPI description
GitHub App-enabled endpoints
Fine-grained personal access token-enabled endpoints
GitHub App permissions
Breaking changes
Fine-grained personal access token permissions
Guides
Using the API
Basics of authentication
Discover resources for a user
Delivering deployments
Rendering data as graphs
Working with comments
Pagination
Building a CI server
Integrator best practices
Get started - Git Database API
Get started - Checks API
REST API reference
Actions
Artifacts
Cache
OIDC
Permissions
Secrets
Self-hosted runner groups
Self-hosted runners
Workflow jobs
Workflow runs
Workflows
Activity
Events
Feeds
Notifications
Starring
Watching
Apps
GitHub Apps
Installations
Marketplace
OAuth Apps
Webhooks
Billing
Branches
Branches
Protected branches
Checks
Check Runs
Check Suites
Codes of conduct
Code Scanning
Codespaces
Codespaces
Organizations
Organization secrets
Machines
Repository secrets
User secrets
Collaborators
Collaborators
Invitations
Commits
Commits
Commit comments
Commit statuses
Dependabot
Alerts
Secrets
Dependency Graph
Dependency review
Dependency submission
Deploy keys
Deployments
Deployments
Environments
Deployment statuses
Deployment branch policies
Emojis
Enterprise administration
Admin stats
Billing
Gists
Gists
Comments
Git database
Blobs
Commits
References
Tags
Trees
Gitignore
Interactions
Organization
Repository
User
Issues
Issues
Assignees
Comments
Events
Labels
Milestones
Timeline
Licenses
Markdown
Meta
Metrics
Community
Statistics
Traffic
Migrations
Organizations
Source imports
Users
Organizations
Organizations
Blocking users
Custom Repository Roles
Members
Outside Collaborators
Security Managers
Webhooks
Packages
Pages
Projects (classic)
Boards
Cards
Collaborators
Columns
Pulls
Pulls
Review comments
Review requests
Reviews
Rate limit
Reactions
Releases
Releases
Release Assets
Repositories
Repositories
Autolinks
Contents
Forks
Git LFS
Tags
Search
Teams
Teams
Discussion comments
Discussions
Members
Users
Users
Blocking users
Emails
Followers
GPG Keys
Git SSH Keys
SSH signing keys
Repository webhooks
Repository Webhook Configuration
Repository Webhook Deliveries
Repository Webhooks
REST API
/
Deployments
Free, Pro, & Team
English
Search GitHub Docs
GitHub Docs
REST API
/
Deployments
REST API
Get started
Account and profile
Authentication
Repositories
Enterprise administrators
Billing and payments
Site policy
Organizations
Code security
Pull requests
GitHub Issues
GitHub Actions
GitHub Copilot
GitHub Codespaces
GitHub Packages
Search on GitHub
Developers
REST API
GraphQL API
GitHub CLI
GitHub Discussions
GitHub Sponsors
Building communities
GitHub Pages
Education
GitHub Desktop
GitHub Support
Atom
Electron
CodeQL
npm
Free, Pro, & Team
Free, Pro, & Team
Enterprise Cloud
Enterprise Server 3.7
Enterprise Server 3.6
Enterprise Server 3.5
Enterprise Server 3.4
Enterprise Server 3.3
GitHub AE
All Enterprise Server releases
About versions
English
English
简体中文
日本語
Español
Português do Brasil
Deutsch
Français
Русский
한국어
2022-11-28 (latest)
2022-11-28 (latest)
About REST API versions
Search GitHub Docs
The REST API is now versioned.
For more information, see "
About API versioning
."
Deployments
The deployments API allows you to create and delete deploy keys, deployments, and deployment environments.
Deployments
List deployments
Create a deployment
Get a deployment
Delete a deployment
Deployment branch policies
List deployment branch policies
Create a deployment branch policy
Get a deployment branch policy
Update a deployment branch policy
Delete a deployment branch policy
Deployment environments
List environments
Get an environment
Create or update an environment
Delete an environment
Deployment statuses
List deployment statuses
Create a deployment status
Get a deployment status