instruction: Explain the endpoints for GitHub Actions - GitHub Docs Skip to main content GitHub Docs Version: Free, Pro, &amp... in github_api
output: endpoints for GitHub Actions - GitHub Docs Skip to main content GitHub Docs Version: Free, Pro, &amp; Team Search or ask Copilot Search or ask Copilot Select language: current language is English Search or ask Copilot Search or ask Copilot Open menu Open Sidebar REST API / Actions Home REST API API Version: 2022-11-28 (latest) Quickstart About the REST API About the REST API Comparing GitHub&#x27;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 GitHub-hosted runners OIDC Permissions Secrets Self-hosted runner groups Self-hosted runners Variables Workflow jobs Workflow runs Workflows Activity Events Feeds Notifications Starring Watching Apps GitHub Apps Installations Marketplace OAuth authorizations Webhooks Billing Billing Enhanced billing platform Branches Branches Protected branches Campaigns Security campaigns Checks Check runs Check suites Classroom Classroom 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 Copilot metrics Copilot user management 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 Emojis Gists Gists Comments Git database Blobs Commits References Tags Trees Gitignore Gitignore Interactions Organization Repository User Issues Assignees Comments Events Issues Issue dependencies Labels Milestones Sub-issues Timeline Licenses Licenses Markdown Markdown Meta Meta Metrics Community Statistics Traffic Migrations Organizations Source endpoints Users Models Catalog Embeddings Inference Organizations API Insights Artifact attestations Blocking users Custom properties Issue types Members Network configurations Organization roles Organizations Outside collaborators Personal access tokens Rule suites Rules Security managers Webhooks Packages Packages Pages Pages Private registries Organization configurations Projects (classic) Cards Collaborators Columns Boards 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 Repositories Rule suites Rules Tags Webhooks Search Search Secret scanning Push protection Secret scanning Security advisories Global security advisories Repository security advisories Teams Teams Discussion comments Discussions Members Users Attestations Blocking 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 / Actions REST API endpoints for GitHub Actions Use the REST API to interact with GitHub Actions for an organization or repository. REST API endpoints for GitHub Actions artifacts List artifacts for a repository Get an artifact Delete an artifact Download an artifact List workflow run artifacts REST API endpoints for GitHub Actions cache Get GitHub Actions cache usage for an organization List repositories with GitHub Actions cache usage for an organization Get GitHub Actions cache usage for a repository List GitHub Actions caches for a repository Delete GitHub Actions caches for a repository (using a cache key) Delete a GitHub Actions cache for a repository (using a cache ID) GitHub-hosted runners List GitHub-hosted runners for an organization Create a GitHub-hosted runner for an organization Get GitHub-owned images for GitHub-hosted runners in an organization Get partner images for GitHub-hosted runners in an organization Get limits on GitHub-hosted runners for an organization Get GitHub-hosted runners machine specs for an organization Get platforms for GitHub-hosted runners in an organization Get a GitHub-hosted runner for an organization Update a GitHub-hosted runner for an organization Delete a GitHub-hosted runner for an organization REST API endpoints for GitHub Actions OIDC Get the customization template for an OIDC subject claim for an organization Set the customization template for an OIDC subject claim for an organization Get the customization template for an OIDC subject claim for a repository Set the customization template for an OIDC subject claim for a repository REST API endpoints for GitHub Actions permissions 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 REST API endpoints for GitHub Actions Secrets List organization secrets Get an organization public key Get an organization secret Create or update an organization secret Delete an organization secret List selected repositories for an organization secret Set selected repositories for an organization secret Add selected repository to an organization secret Remove selected repository from an organization secret List repository organization secrets List repository secrets Get a repository public key Get a repository secret Create or update a repository secret Delete a repository secret List environment secrets Get an environment public key Get an environment secret Create or update an environment secret Delete an environment secret REST API endpoints for self-hosted runner groups List self-hosted runner groups for an organization Create a self-hosted runner group for an organization Get a self-hosted runner group for an organization Update a self-hosted runner group for an organization Delete a self-hosted runner group from an organization List GitHub-hosted runners in a group for an organization List repository access to a self-hosted runner group in an organization Set repository access for a self-hosted runner group in an organization Add repository access to a self-hosted runner group in an organization Remove repository access to a self-hosted runner group in an organization List self-hosted runners in a group for an organization Set self-hosted runners in a group for an organization Add a self-hosted runner to a group for an organization Remove a self-hosted runner from a group for an organization REST API endpoints for self-hosted runners List self-hosted runners for an organization List runner applications for an organization Create configuration for a just-in-time runner for an organization Create a registration token for an organization Create a remove token for an organization Get a self-hosted runner for an organization Delete a self-hosted runner from an organization List labels for a self-hosted runner for an organization Add custom labels to a self-hosted runner for an organization Set custom labels for a self-hosted runner for an organization Remove all custom labels from a self-hosted runner for an organization Remove a custom label from a self-hosted runner for an organization List self-hosted runners for a repository List runner applications for a repository Create configuration for a just-in-time runner for a repository Create a registration token for a repository Create a remove token for a repository Get a self-hosted runner for a repository Delete a self-hosted runner from a repository List labels for a self-hosted runner for a repository Add custom labels to a self-hosted runner for a repository Set custom labels for a self-hosted runner for a repository Remove all custom labels from a self-hosted runner for a repository Remove a custom label from a self-hosted runner for a repository REST API endpoints for GitHub Actions variables List organization variables Create an organization variable Get an organization variable Update an organization variable Delete an organization variable List selected repositories for an organization variable Set selected repositories for an organization variable Add selected repository to an organization variable Remove selected repository from an organization variable List repository organization variables List repository variables Create a repository variable Get a repository variable Update a repository variable Delete a repository variable List environment variables Create an environment variable Get an environment variable Update an environment variable Delete an environment variable REST API endpoints for workflow jobs Get a job for a workflow run Download job logs for a workflow run List jobs for a workflow run attempt List jobs for a workflow run REST API endpoints for workflow runs Re-run a job from a workflow run List workflow runs for a repository Get a workflow run Delete a workflow run Get the review history for a workflow run Approve a workflow run for a fork pull request Get a workflow run attempt Download workflow run attempt logs Cancel a workflow run Review custom deployment protection rules for a workflow run Force cancel a workflow run Download workflow run logs Delete workflow run logs Get pending deployments for a workflow run Review pending deployments for a workflow run Re-run a workflow Re-run failed jobs from a workflow run Get workflow run usage List workflow runs for a workflow REST API endpoints for workflows List repository workflows Get a workflow Disable a workflow Create a workflow dispatch event Enable a workflow Get workflow usage Help and support Get quick answers! Ask Copilot your question. Ask Copilot Did you find what you needed? Yes No Privacy policy Help us make these docs great! All GitHub docs are open source. See something that&#x27;s wrong or unclear? Submit a pull request. Make a contribution Learn how to contribute Still need help? Ask the GitHub community Contact support Legal © 2025 GitHub, Inc. Terms Privacy Status Pricing Expert services Blog