Skip to main content
Skip to content
GitHub
Docs
Search or ask Copilot
/
Menu
Collapse sidebar
Expand sidebar
Home
REST API
Actions
Permissions
REST API
API Version:
2026-03-10 (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
Actions concurrency groups
GitHub-hosted runners
OIDC
Permissions
About permissions for GitHub Actions
Get GitHub Actions permissions for an organization
Set GitHub Actions permissions for an organization
Get artifact and log retention settings for an organization
Set artifact and log retention settings for an organization
Get fork PR contributor approval permissions for an organization
Set fork PR contributor approval permissions for an organization
Get private repo fork PR workflow settings for an organization
Set private repo fork PR workflow settings for an organization
List selected repositories enabled for GitHub Actions in an organization
Set selected repositories enabled for GitHub Actions in an organization
Enable a selected repository for GitHub Actions in an organization
Disable a selected repository for GitHub Actions in an organization
Get allowed actions and reusable workflows for an organization
Set allowed actions and reusable workflows for an organization
Get self-hosted runners settings for an organization
Set self-hosted runners settings for an organization
List repositories allowed to use self-hosted runners in an organization
Set repositories allowed to use self-hosted runners in an organization
Add a repository to the list of repositories allowed to use self-hosted runners in an organization
Remove a repository from the list of repositories allowed to use self-hosted runners in an organization
Get default workflow permissions for an organization
Set default workflow permissions for an organization
Get GitHub Actions permissions for a repository
Set GitHub Actions permissions for a repository
Get the level of access for workflows outside of the repository
Set the level of access for workflows outside of the repository
Get artifact and log retention settings for a repository
Set artifact and log retention settings for a repository
Get fork PR contributor approval permissions for a repository
Set fork PR contributor approval permissions for a repository
Get private repo fork PR workflow settings for a repository
Set private repo fork PR workflow settings for a repository
Get allowed actions and reusable workflows for a repository
Set allowed actions and reusable workflows for a repository
Get default workflow permissions for a repository
Set default workflow permissions for a repository
Actions policies
Secrets
Self-hosted runner groups
Self-hosted runners
Variables
Workflow jobs
Workflow runs
Workflows
Activity
Events
Feeds
Notifications
Starring
Watching
Agent tasks
Agent tasks
Agents
Secrets
Variables
Apps
GitHub Apps
Installations
Marketplace
OAuth authorizations
Webhooks
Billing
Budgets
Billing usage
Branches
Branches
Protected branches
Campaigns
Security campaigns
Checks
Check runs
Check suites
Classroom
Classroom
Code quality
Code quality
Code scanning
Code scanning
Code security settings
Configurations
Codes of conduct
Codes of conduct
Codespaces
Codespaces
Organizations
Organization secrets
Machines
Repository secrets
User secrets
Collaborators
Collaborators
Invitations
Commits
Commits
Commit comments
Commit statuses
Copilot
Cloud agent repository management
Copilot cloud agent management
Copilot content exclusion management
Copilot usage metrics
Copilot user management
Copilot Spaces
Collaborators
Copilot Spaces
Resources
Credentials
Revocation
Dependabot
Alerts
Repository access
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