• API Overview
Example API Reference
  • Overview
    • Get GitHub Actions cache usage for an enterpriseget
    • Get GitHub Actions cache usage policy for an enterpriseget
    • Set GitHub Actions cache usage policy for an enterprisepatch
    • Get default workflow permissions for an enterpriseget
    • Set default workflow permissions for an enterpriseput
    • Get GitHub Actions cache usage for an organizationget
    • List repositories with GitHub Actions cache usage for an organizationget
    • Get GitHub Actions permissions for an organizationget
    • Set GitHub Actions permissions for an organizationput
    • List selected repositories enabled for GitHub Actions in an organizationget
    • Set selected repositories enabled for GitHub Actions in an organizationput
    • Enable a selected repository for GitHub Actions in an organizationput
    • Disable a selected repository for GitHub Actions in an organizationdel
    • Get allowed actions for an organizationget
    • Set allowed actions for an organizationput
    • Get default workflow permissions for an organizationget
    • Set default workflow permissions for an organizationput
    • List required workflowsget
    • Create a required workflowpost
    • Get a required workflowget
    • Delete a required workflowdel
    • Update a required workflowpatch
    • List selected repositories for a required workflowget
    • Sets repositories for a required workflowput
    • Add a repository to a required workflowput
    • Remove a selected repository from required workflowdel
    • List self-hosted runner groups for an organizationget
    • Create a self-hosted runner group for an organizationpost
    • Get a self-hosted runner group for an organizationget
    • Delete a self-hosted runner group from an organizationdel
    • Update a self-hosted runner group for an organizationpatch
    • List repository access to a self-hosted runner group in an organizationget
    • Set repository access for a self-hosted runner group in an organizationput
    • Add repository access to a self-hosted runner group in an organizationput
    • Remove repository access to a self-hosted runner group in an organizationdel
    • List self-hosted runners in a group for an organizationget
    • Set self-hosted runners in a group for an organizationput
    • Add a self-hosted runner to a group for an organizationput
    • Remove a self-hosted runner from a group for an organizationdel
    • List self-hosted runners for an organizationget
    • List runner applications for an organizationget
    • Create a registration token for an organizationpost
    • Create a remove token for an organizationpost
    • Get a self-hosted runner for an organizationget
    • Delete a self-hosted runner from an organizationdel
    • List labels for a self-hosted runner for an organizationget
    • Add custom labels to a self-hosted runner for an organizationpost
    • Set custom labels for a self-hosted runner for an organizationput
    • Remove all custom labels from a self-hosted runner for an organizationdel
    • Remove a custom label from a self-hosted runner for an organizationdel
    • List organization secretsget
    • Get an organization public keyget
    • Get an organization secretget
    • Create or update an organization secretput
    • Delete an organization secretdel
    • List selected repositories for an organization secretget
    • Set selected repositories for an organization secretput
    • Add selected repository to an organization secretput
    • Remove selected repository from an organization secretdel
    • List organization variablesget
    • Create an organization variablepost
    • Get an organization variableget
    • Delete an organization variabledel
    • Update an organization variablepatch
    • List selected repositories for an organization variableget
    • Set selected repositories for an organization variableput
    • Add selected repository to an organization variableput
    • Remove selected repository from an organization variabledel
    • List repository required workflowsget
    • Get a required workflow entity for a repositoryget
    • List artifacts for a repositoryget
    • Get an artifactget
    • Delete an artifactdel
    • Download an artifactget
    • Get GitHub Actions cache usage for a repositoryget
    • Get GitHub Actions cache usage policy for a repositoryget
    • Set GitHub Actions cache usage policy for a repositorypatch
    • List GitHub Actions caches for a repositoryget
    • Delete GitHub Actions caches for a repository (using a cache key)del
    • Delete a GitHub Actions cache for a repository (using a cache ID)del
    • Get a job for a workflow runget
    • Download job logs for a workflow runget
    • Re-run a job from a workflow runpost
    • Get the customization template for an OIDC subject claim for a repositoryget
    • Set the customization template for an OIDC subject claim for a repositoryput
    • List repository organization secretsget
    • List repository organization variablesget
    • Get GitHub Actions permissions for a repositoryget
    • Set GitHub Actions permissions for a repositoryput
    • Get the level of access for workflows outside of the repositoryget
    • Set the level of access for workflows outside of the repositoryput
    • Get allowed actions for a repositoryget
    • Set allowed actions for a repositoryput
    • Get default workflow permissions for a repositoryget
    • Set default workflow permissions for a repositoryput
    • List workflow runs for a required workflowget
    • List self-hosted runners for a repositoryget
    • List runner applications for a repositoryget
    • Create a registration token for a repositorypost
    • Create a remove token for a repositorypost
    • Get a self-hosted runner for a repositoryget
    • Delete a self-hosted runner from a repositorydel
    • List labels for a self-hosted runner for a repositoryget
    • Add custom labels to a self-hosted runner for a repositorypost
    • Set custom labels for a self-hosted runner for a repositoryput
    • Remove all custom labels from a self-hosted runner for a repositorydel
    • Remove a custom label from a self-hosted runner for a repositorydel
    • List workflow runs for a repositoryget
    • Get a workflow runget
    • Delete a workflow rundel
    • Get the review history for a workflow runget
    • List workflow run artifactsget
    • Get a workflow run attemptget
    • List jobs for a workflow run attemptget
    • Download workflow run attempt logsget
    • Cancel a workflow runpost
    • List jobs for a workflow runget
    • Download workflow run logsget
    • Delete workflow run logsdel
    • Get pending deployments for a workflow runget
    • Review pending deployments for a workflow runpost
    • Re-run a workflowpost
    • Re-run failed jobs from a workflow runpost
    • List repository secretsget
    • Get a repository public keyget
    • Get a repository secretget
    • Create or update a repository secretput
    • Delete a repository secretdel
    • List repository variablesget
    • Create a repository variablepost
    • Get a repository variableget
    • Delete a repository variabledel
    • Update a repository variablepatch
    • List repository workflowsget
    • Get a workflowget
    • Disable a workflowput
    • Create a workflow dispatch eventpost
    • Enable a workflowput
    • List workflow runs for a workflowget
    • List environment secretsget
    • Get an environment public keyget
    • Get an environment secretget
    • Create or update an environment secretput
    • Delete an environment secretdel
    • List environment variablesget
    • Create an environment variablepost
    • Get an environment variableget
    • Delete an environment variabledel
    • Update an environment variablepatch
    • List public eventsget
    • Get feedsget
    • List public events for a network of repositoriesget
    • List notifications for the authenticated userget
    • Mark notifications as readput
    • Get a threadget
    • Mark a thread as readpatch
    • Get a thread subscription for the authenticated userget
    • Set a thread subscriptionput
    • Delete a thread subscriptiondel
    • List public organization eventsget
    • List repository eventsget
    • List repository notifications for the authenticated userget
    • Mark repository notifications as readput
    • List stargazersget
    • List watchersget
    • Get a repository subscriptionget
    • Set a repository subscriptionput
    • Delete a repository subscriptiondel
    • List repositories starred by the authenticated userget
    • Check if a repository is starred by the authenticated userget
    • Star a repository for the authenticated userput
    • Unstar a repository for the authenticated userdel
    • List repositories watched by the authenticated userget
    • List events for the authenticated userget
    • List organization events for the authenticated userget
    • List public events for a userget
    • List events received by the authenticated userget
    • List public events received by a userget
    • List repositories starred by a userget
    • List repositories watched by a userget
    • Get the authenticated appget
    • Create a GitHub App from a manifestpost
    • Get a webhook configuration for an appget
    • Update a webhook configuration for an apppatch
    • List deliveries for an app webhookget
    • Get a delivery for an app webhookget
    • Redeliver a delivery for an app webhookpost
    • List installation requests for the authenticated appget
    • List installations for the authenticated appget
    • Get an installation for the authenticated appget
    • Delete an installation for the authenticated appdel
    • Create an installation access token for an apppost
    • Suspend an app installationput
    • Unsuspend an app installationdel
    • Delete an app authorizationdel
    • Check a tokenpost
    • Delete an app tokendel
    • Reset a tokenpatch
    • Create a scoped access tokenpost
    • Get an appget
    • List repositories accessible to the app installationget
    • Revoke an installation access tokendel
    • Get an organization installation for the authenticated appget
    • Get a repository installation for the authenticated appget
    • List app installations accessible to the user access tokenget
    • List repositories accessible to the user access tokenget
    • Add a repository to an app installationput
    • Remove a repository from an app installationdel
    • Get a user installation for the authenticated appget
    • Get GitHub Advanced Security active committers for an enterpriseget
    • Get GitHub Advanced Security active committers for an organizationget
    • Create a check runpost
    • Get a check runget
    • Update a check runpatch
    • List check run annotationsget
    • Rerequest a check runpost
    • Create a check suitepost
    • Update repository preferences for check suitespatch
    • Get a check suiteget
    • List check runs in a check suiteget
    • Rerequest a check suitepost
    • List check runs for a Git referenceget
    • List check suites for a Git referenceget
    • List code scanning alerts for an enterpriseget
    • List code scanning alerts for an organizationget
    • List code scanning alerts for a repositoryget
    • Get a code scanning alertget
    • Update a code scanning alertpatch
    • List instances of a code scanning alertget
    • List code scanning analyses for a repositoryget
    • Get a code scanning analysis for a repositoryget
    • Delete a code scanning analysis from a repositorydel
    • Get a code scanning default setup configurationget
    • Update a code scanning default setup configurationpatch
    • Upload an analysis as SARIF datapost
    • Get information about a SARIF uploadget
    • Get all codes of conductget
    • Get a code of conductget
    • Get emojisget
    • List Dependabot alerts for an enterpriseget
    • List Dependabot alerts for an organizationget
    • List organization secretsget
    • Get an organization public keyget
    • Get an organization secretget
    • Create or update an organization secretput
    • Delete an organization secretdel
    • List selected repositories for an organization secretget
    • Set selected repositories for an organization secretput
    • Add selected repository to an organization secretput
    • Remove selected repository from an organization secretdel
    • List Dependabot alerts for a repositoryget
    • Get a Dependabot alertget
    • Update a Dependabot alertpatch
    • List repository secretsget
    • Get a repository public keyget
    • Get a repository secretget
    • Create or update a repository secretput
    • Delete a repository secretdel
    • Get a diff of the dependencies between commitsget
    • Export a software bill of materials (SBOM) for a repository.get
    • Create a snapshot of dependencies for a repositorypost
    • List gists for the authenticated userget
    • Create a gistpost
    • List public gistsget
    • List starred gistsget
    • Get a gistget
    • Delete a gistdel
    • Update a gistpatch
    • List gist commentsget
    • Create a gist commentpost
    • Get a gist commentget
    • Delete a gist commentdel
    • Update a gist commentpatch
    • List gist commitsget
    • List gist forksget
    • Fork a gistpost
    • Check if a gist is starredget
    • Star a gistput
    • Unstar a gistdel
    • Get a gist revisionget
    • List gists for a userget
    • Create a blobpost
    • Get a blobget
    • Create a commitpost
    • Get a commitget
    • List matching referencesget
    • Get a referenceget
    • Create a referencepost
    • Delete a referencedel
    • Update a referencepatch
    • Create a tag objectpost
    • Get a tagget
    • Create a treepost
    • Get a treeget
    • Get all gitignore templatesget
    • Get a gitignore templateget
    • List issues assigned to the authenticated userget
    • List organization issues assigned to the authenticated userget
    • List assigneesget
    • Check if a user can be assignedget
    • List repository issuesget
    • Create an issuepost
    • List issue comments for a repositoryget
    • Get an issue commentget
    • Delete an issue commentdel
    • Update an issue commentpatch
    • List issue events for a repositoryget
    • Get an issue eventget
    • Get an issueget
    • Update an issuepatch
    • Add assignees to an issuepost
    • Remove assignees from an issuedel
    • Check if a user can be assigned to a issueget
    • List issue commentsget
    • Create an issue commentpost
    • List issue eventsget
    • List labels for an issueget
    • Add labels to an issuepost
    • Set labels for an issueput
    • Remove all labels from an issuedel
    • Remove a label from an issuedel
    • Lock an issueput
    • Unlock an issuedel
    • List timeline events for an issueget
    • List labels for a repositoryget
    • Create a labelpost
    • Get a labelget
    • Delete a labeldel
    • Update a labelpatch
    • List milestonesget
    • Create a milestonepost
    • Get a milestoneget
    • Delete a milestonedel
    • Update a milestonepatch
    • List labels for issues in a milestoneget
    • List user account issues assigned to the authenticated userget
    • Get all commonly used licensesget
    • Get a licenseget
    • Get the license for a repositoryget
    • Render a Markdown documentpost
    • Render a Markdown document in raw modepost
    • GitHub API Rootget
    • Get GitHub Enterprise Server meta informationget
    • Get Octocatget
    • Get the Zen of GitHubget
    • List organization migrationsget
    • Start an organization migrationpost
    • Get an organization migration statusget
    • Download an organization migration archiveget
    • Delete an organization migration archivedel
    • Unlock an organization repositorydel
    • List repositories in an organization migrationget
    • List user migrationsget
    • Start a user migrationpost
    • Download a user migration archiveget
    • List repositories for a user migrationget
    • Get the customization template for an OIDC subject claim for an organizationget
    • Set the customization template for an OIDC subject claim for an organizationput
    • List organizationsget
    • Deprecated - List custom repository roles in an organizationget
    • Get an organizationget
    • Delete an organizationdel
    • Update an organizationpatch
    • Get announcement banner for organizationget
    • Remove announcement banner from organizationdel
    • Set announcement banner for organizationpatch
    • Get the audit log for an organizationget
    • List custom repository roles in an organizationget
    • Create a custom repository rolepost
    • Get a custom repository roleget
    • Delete a custom repository roledel
    • Update a custom repository rolepatch
    • List organization webhooksget
    • Create an organization webhookpost
    • Get an organization webhookget
    • Delete an organization webhookdel
    • Update an organization webhookpatch
    • Get a webhook configuration for an organizationget
    • Update a webhook configuration for an organizationpatch
    • List deliveries for an organization webhookget
    • Get a webhook delivery for an organization webhookget
    • Redeliver a delivery for an organization webhookpost
    • Ping an organization webhookpost
    • List app installations for an organizationget
    • List organization membersget
    • Check organization membership for a userget
    • Remove an organization memberdel
    • Get organization membership for a userget
    • Set organization membership for a userput
    • Remove organization membership for a userdel
    • List outside collaborators for an organizationget
    • Convert an organization member to outside collaboratorput
    • Remove outside collaborator from an organizationdel
    • List public organization membersget
    • Check public organization membership for a userget
    • Set public organization membership for the authenticated userput
    • Remove public organization membership for the authenticated userdel
    • List repository fine-grained permissions for an organizationget
    • List security manager teamsget
    • Add a security manager teamput
    • Remove a security manager teamdel
    • Enable or disable a security feature for an organizationpost
    • List organization memberships for the authenticated userget
    • Get an organization membership for the authenticated userget
    • Update an organization membership for the authenticated userpatch
    • List organizations for the authenticated userget
    • List organizations for a userget
    • Get list of conflicting packages during Docker migration for organizationget
    • List packages for an organizationget
    • Get a package for an organizationget
    • Delete a package for an organizationdel
    • Restore a package for an organizationpost
    • List package versions for a package owned by an organizationget
    • Get a package version for an organizationget
    • Delete package version for an organizationdel
    • Restore package version for an organizationpost
    • Get list of conflicting packages during Docker migration for authenticated-userget
    • List packages for the authenticated user's namespaceget
    • Get a package for the authenticated userget
    • Delete a package for the authenticated userdel
    • Restore a package for the authenticated userpost
    • List package versions for a package owned by the authenticated userget
    • Get a package version for the authenticated userget
    • Delete a package version for the authenticated userdel
    • Restore a package version for the authenticated userpost
    • Get list of conflicting packages during Docker migration for userget
    • List packages for a userget
    • Get a package for a userget
    • Delete a package for a userdel
    • Restore a package for a userpost
    • List package versions for a package owned by a userget
    • Get a package version for a userget
    • Delete package version for a userdel
    • Restore package version for a userpost
    • List organization projectsget
    • Create an organization projectpost
    • Get a project cardget
    • Delete a project carddel
    • Update an existing project cardpatch
    • Move a project cardpost
    • Get a project columnget
    • Delete a project columndel
    • Update an existing project columnpatch
    • List project cardsget
    • Create a project cardpost
    • Move a project columnpost
    • Get a projectget
    • Delete a projectdel
    • Update a projectpatch
    • List project collaboratorsget
    • Add project collaboratorput
    • Remove user as a collaboratordel
    • Get project permission for a userget
    • List project columnsget
    • Create a project columnpost
    • List repository projectsget
    • Create a repository projectpost
    • Create a user projectpost
    • List user projectsget
    • Get rate limit status for the authenticated userget
    • List reactions for a team discussion commentget
    • Create reaction for a team discussion commentpost
    • Delete team discussion comment reactiondel
    • List reactions for a team discussionget
    • Create reaction for a team discussionpost
    • Delete team discussion reactiondel
    • List reactions for a commit commentget
    • Create reaction for a commit commentpost
    • Delete a commit comment reactiondel
    • List reactions for an issue commentget
    • Create reaction for an issue commentpost
    • Delete an issue comment reactiondel
    • List reactions for an issueget
    • Create reaction for an issuepost
    • Delete an issue reactiondel
    • List reactions for a pull request review commentget
    • Create reaction for a pull request review commentpost
    • Delete a pull request comment reactiondel
    • List reactions for a releaseget
    • Create reaction for a releasepost
    • Delete a release reactiondel
    • List reactions for a team discussion comment (Legacy)get
    • Create reaction for a team discussion comment (Legacy)post
    • List reactions for a team discussion (Legacy)get
    • Create reaction for a team discussion (Legacy)post
    • List organization repositoriesget
    • Create an organization repositorypost
    • Get a repositoryget
    • Delete a repositorydel
    • Update a repositorypatch
    • List all autolinks of a repositoryget
    • Create an autolink reference for a repositorypost
    • Get an autolink reference of a repositoryget
    • Delete an autolink reference from a repositorydel
    • List branchesget
    • Get a branchget
    • Get branch protectionget
    • Update branch protectionput
    • Delete branch protectiondel
    • Get admin branch protectionget
    • Set admin branch protectionpost
    • Delete admin branch protectiondel
    • Get pull request review protectionget
    • Delete pull request review protectiondel
    • Update pull request review protectionpatch
    • Get commit signature protectionget
    • Create commit signature protectionpost
    • Delete commit signature protectiondel
    • Get status checks protectionget
    • Remove status check protectiondel
    • Update status check protectionpatch
    • Get all status check contextsget
    • Add status check contextspost
    • Set status check contextsput
    • Remove status check contextsdel
    • Get access restrictionsget
    • Delete access restrictionsdel
    • Get apps with access to the protected branchget
    • Add app access restrictionspost
    • Set app access restrictionsput
    • Remove app access restrictionsdel
    • Get teams with access to the protected branchget
    • Add team access restrictionspost
    • Set team access restrictionsput
    • Remove team access restrictionsdel
    • Get users with access to the protected branchget
    • Add user access restrictionspost
    • Set user access restrictionsput
    • Remove user access restrictionsdel
    • Rename a branchpost
    • List CODEOWNERS errorsget
    • List repository collaboratorsget
    • Check if a user is a repository collaboratorget
    • Add a repository collaboratorput
    • Remove a repository collaboratordel
    • Get repository permissions for a userget
    • List commit comments for a repositoryget
    • Get a commit commentget
    • Delete a commit commentdel
    • Update a commit commentpatch
    • List commitsget
    • List branches for HEAD commitget
    • List commit commentsget
    • Create a commit commentpost
    • List pull requests associated with a commitget
    • Get a commitget
    • Get the combined status for a specific referenceget
    • List commit statuses for a referenceget
    • Compare two commitsget
    • Get repository contentget
    • Create or update file contentsput
    • Delete a filedel
    • List repository contributorsget
    • List deploymentsget
    • Create a deploymentpost
    • Get a deploymentget
    • Delete a deploymentdel
    • List deployment statusesget
    • Create a deployment statuspost
    • Get a deployment statusget
    • Create a repository dispatch eventpost
    • List environmentsget
    • Get an environmentget
    • Create or update an environmentput
    • Delete an environmentdel
    • List deployment branch policiesget
    • Create a deployment branch policypost
    • Get a deployment branch policyget
    • Update a deployment branch policyput
    • Delete a deployment branch policydel
    • List forksget
    • Create a forkpost
    • List repository webhooksget
    • Create a repository webhookpost
    • Get a repository webhookget
    • Delete a repository webhookdel
    • Update a repository webhookpatch
    • Get a webhook configuration for a repositoryget
    • Update a webhook configuration for a repositorypatch
    • List deliveries for a repository webhookget
    • Get a delivery for a repository webhookget
    • Redeliver a delivery for a repository webhookpost
    • Ping a repository webhookpost
    • Test the push repository webhookpost
    • List repository invitationsget
    • Delete a repository invitationdel
    • Update a repository invitationpatch
    • List deploy keysget
    • Create a deploy keypost
    • Get a deploy keyget
    • Delete a deploy keydel
    • List repository languagesget
    • Enable Git LFS for a repositoryput
    • Disable Git LFS for a repositorydel
    • Sync a fork branch with the upstream repositorypost
    • Merge a branchpost
    • Get a GitHub Enterprise Server Pages siteget
    • Create a GitHub Enterprise Server Pages sitepost
    • Update information about a GitHub Enterprise Server Pages siteput
    • Delete a GitHub Enterprise Server Pages sitedel
    • List GitHub Enterprise Server Pages buildsget
    • Request a GitHub Enterprise Server Pages buildpost
    • Get latest Pages buildget
    • Get GitHub Enterprise Server Pages buildget
    • Create a GitHub Pages deploymentpost
    • Get a repository READMEget
    • Get a repository README for a directoryget
    • List releasesget
    • Create a releasepost
    • Get a release assetget
    • Delete a release assetdel
    • Update a release assetpatch
    • Generate release notes content for a releasepost
    • Get the latest releaseget
    • Get a release by tag nameget
    • Get a releaseget
    • Delete a releasedel
    • Update a releasepatch
    • List release assetsget
    • Upload a release assetpost
    • List repository cache replication statusget
    • Get the weekly commit activityget
    • Get the last year of commit activityget
    • Get all contributor commit activityget
    • Get the weekly commit countget
    • Get the hourly commit count for each dayget
    • Create a commit statuspost
    • List repository tagsget
    • List tag protection states for a repositoryget
    • Create a tag protection state for a repositorypost
    • Delete a tag protection state for a repositorydel
    • Download a repository archive (tar)get
    • List repository teamsget
    • Get all repository topicsget
    • Replace all repository topicsput
    • Transfer a repositorypost
    • Check if vulnerability alerts are enabled for a repositoryget
    • Enable vulnerability alertsput
    • Disable vulnerability alertsdel
    • Download a repository archive (zip)get
    • Create a repository using a templatepost
    • List public repositoriesget
    • List repositories for the authenticated userget
    • Create a repository for the authenticated userpost
    • List repository invitations for the authenticated userget
    • Decline a repository invitationdel
    • Accept a repository invitationpatch
    • List repositories for a userget
    • Search codeget
    • Search commitsget
    • Search issues and pull requestsget
    • Search labelsget
    • Search repositoriesget
    • Search topicsget
    • Search usersget
    • List secret scanning alerts for an enterpriseget
    • List secret scanning alerts for an organizationget
    • List secret scanning alerts for a repositoryget
    • Get a secret scanning alertget
    • Update a secret scanning alertpatch
    • List locations for a secret scanning alertget
    • Get an external groupget
    • List external groups in an organizationget
    • List teamsget
    • Create a teampost
    • Get a team by nameget
    • Delete a teamdel
    • Update a teampatch
    • List discussionsget
    • Create a discussionpost
    • Get a discussionget
    • Delete a discussiondel
    • Update a discussionpatch
    • List discussion commentsget
    • Create a discussion commentpost
    • Get a discussion commentget
    • Delete a discussion commentdel
    • Update a discussion commentpatch
    • List a connection between an external group and a teamget
    • Remove the connection between an external group and a teamdel
    • Update the connection between an external group and a teampatch
    • List team membersget
    • Get team membership for a userget
    • Add or update team membership for a userput
    • Remove team membership for a userdel
    • List team projectsget
    • Check team permissions for a projectget
    • Add or update team project permissionsput
    • Remove a project from a teamdel
    • List team repositoriesget
    • Check team permissions for a repositoryget
    • Add or update team repository permissionsput
    • Remove a repository from a teamdel
    • List child teamsget
    • Get a team (Legacy)get
    • Delete a team (Legacy)del
    • Update a team (Legacy)patch
    • List discussions (Legacy)get
    • Create a discussion (Legacy)post
    • Get a discussion (Legacy)get
    • Delete a discussion (Legacy)del
    • Update a discussion (Legacy)patch
    • List discussion comments (Legacy)get
    • Create a discussion comment (Legacy)post
    • Get a discussion comment (Legacy)get
    • Delete a discussion comment (Legacy)del
    • Update a discussion comment (Legacy)patch
    • List team members (Legacy)get
    • Get team member (Legacy)get
    • Add team member (Legacy)put
    • Remove team member (Legacy)del
    • Get team membership for a user (Legacy)get
    • Add or update team membership for a user (Legacy)put
    • Remove team membership for a user (Legacy)del
    • List team projects (Legacy)get
    • Check team permissions for a project (Legacy)get
    • Add or update team project permissions (Legacy)put
    • Remove a project from a team (Legacy)del
    • List team repositories (Legacy)get
    • Check team permissions for a repository (Legacy)get
    • Add or update team repository permissions (Legacy)put
    • Remove a repository from a team (Legacy)del
    • List child teams (Legacy)get
    • List teams for the authenticated userget
    • Get the authenticated userget
    • Update the authenticated userpatch
    • List email addresses for the authenticated userget
    • Add an email address for the authenticated userpost
    • Delete an email address for the authenticated userdel
    • List followers of the authenticated userget
    • List the people the authenticated user followsget
    • Check if a person is followed by the authenticated userget
    • Follow a userput
    • Unfollow a userdel
    • List GPG keys for the authenticated userget
    • Create a GPG key for the authenticated userpost
    • Get a GPG key for the authenticated userget
    • Delete a GPG key for the authenticated userdel
    • List public SSH keys for the authenticated userget
    • Create a public SSH key for the authenticated userpost
    • Get a public SSH key for the authenticated userget
    • Delete a public SSH key for the authenticated userdel
    • List public email addresses for the authenticated userget
    • List social accounts for the authenticated userget
    • Add social accounts for the authenticated userpost
    • Delete social accounts for the authenticated userdel
    • List SSH signing keys for the authenticated userget
    • Create a SSH signing key for the authenticated userpost
    • Get an SSH signing key for the authenticated userget
    • Delete an SSH signing key for the authenticated userdel
    • List usersget
    • Get a userget
    • List followers of a userget
    • List the people a user followsget
    • Check if a user follows another userget
    • List GPG keys for a userget
    • Get contextual information for a userget
    • List public keys for a userget
    • List social accounts for a userget
    • List SSH signing keys for a userget
    • List global webhooksget
    • Create a global webhookpost
    • Get a global webhookget
    • Delete a global webhookdel
    • Update a global webhookpatch
    • Ping a global webhookpost
    • List public keysget
    • Delete a public keydel
    • Update LDAP mapping for a teampatch
    • Sync LDAP mapping for a teampost
    • Update LDAP mapping for a userpatch
    • Sync LDAP mapping for a userpost
    • Create an organizationpost
    • Update an organization namepatch
    • List pre-receive environmentsget
    • Create a pre-receive environmentpost
    • Get a pre-receive environmentget
    • Delete a pre-receive environmentdel
    • Update a pre-receive environmentpatch
    • Start a pre-receive environment downloadpost
    • Get the download status for a pre-receive environmentget
    • List pre-receive hooksget
    • Create a pre-receive hookpost
    • Get a pre-receive hookget
    • Delete a pre-receive hookdel
    • Update a pre-receive hookpatch
    • List personal access tokensget
    • Delete a personal access tokendel
    • Create a userpost
    • Delete a userdel
    • Update the username for a userpatch
    • Create an impersonation OAuth tokenpost
    • Delete an impersonation OAuth tokendel
    • Get the global announcement bannerget
    • Remove the global announcement bannerdel
    • Set the global announcement bannerpatch
    • Get license informationget
    • Get all statisticsget
    • Get comment statisticsget
    • Get gist statisticsget
    • Get hooks statisticsget
    • Get issue statisticsget
    • Get milestone statisticsget
    • Get organization statisticsget
    • Get pages statisticsget
    • Get pull request statisticsget
    • Get repository statisticsget
    • Get users statisticsget
    • Get GitHub Actions permissions for an enterpriseget
    • Set GitHub Actions permissions for an enterpriseput
    • List selected organizations enabled for GitHub Actions in an enterpriseget
    • Set selected organizations enabled for GitHub Actions in an enterpriseput
    • Enable a selected organization for GitHub Actions in an enterpriseput
    • Disable a selected organization for GitHub Actions in an enterprisedel
    • Get allowed actions for an enterpriseget
    • Set allowed actions for an enterpriseput
    • List self-hosted runner groups for an enterpriseget
    • Create a self-hosted runner group for an enterprisepost
    • Get a self-hosted runner group for an enterpriseget
    • Delete a self-hosted runner group from an enterprisedel
    • Update a self-hosted runner group for an enterprisepatch
    • List organization access to a self-hosted runner group in an enterpriseget
    • Set organization access for a self-hosted runner group in an enterpriseput
    • Add organization access to a self-hosted runner group in an enterpriseput
    • Remove organization access to a self-hosted runner group in an enterprisedel
    • List self-hosted runners in a group for an enterpriseget
    • Set self-hosted runners in a group for an enterpriseput
    • Add a self-hosted runner to a group for an enterpriseput
    • Remove a self-hosted runner from a group for an enterprisedel
    • List self-hosted runners for an enterpriseget
    • List runner applications for an enterpriseget
    • Create a registration token for an enterprisepost
    • Create a remove token for an enterprisepost
    • Get a self-hosted runner for an enterpriseget
    • Delete a self-hosted runner from an enterprisedel
    • List labels for a self-hosted runner for an enterpriseget
    • Add custom labels to a self-hosted runner for an enterprisepost
    • Set custom labels for a self-hosted runner for an enterpriseput
    • Remove all custom labels from a self-hosted runner for an enterprisedel
    • Remove a custom label from a self-hosted runner for an enterprisedel
    • Get the audit log for an enterpriseget
    • Get code security and analysis features for an enterpriseget
    • Update code security and analysis features for an enterprisepatch
    • Enable or disable a security featurepost
    • Get the status of services running on all replica nodesget
    • Get all GHES release version for all nodesget
    • List pre-receive hooks for an organizationget
    • Get a pre-receive hook for an organizationget
    • Remove pre-receive hook enforcement for an organizationdel
    • Update pre-receive hook enforcement for an organizationpatch
    • List pre-receive hooks for a repositoryget
    • Get a pre-receive hook for a repositoryget
    • Remove pre-receive hook enforcement for a repositorydel
    • Update pre-receive hook enforcement for a repositorypatch
    • List provisioned SCIM groups for an enterpriseget
    • Provision a SCIM enterprise grouppost
    • Get SCIM provisioning information for an enterprise groupget
    • Set SCIM information for a provisioned enterprise groupput
    • Delete a SCIM group from an enterprisedel
    • Update an attribute for a SCIM enterprise grouppatch
    • List SCIM provisioned identities for an enterpriseget
    • Provision a SCIM enterprise userpost
    • Get SCIM provisioning information for an enterprise userget
    • Set SCIM information for a provisioned enterprise userput
    • Delete a SCIM user from an enterprisedel
    • Update an attribute for a SCIM enterprise userpatch
    • Get the configuration statusget
    • Start a configuration processpost
    • Get the maintenance statusget
    • Enable or disable maintenance modepost
    • Get settingsget
    • Set settingsput
    • Get all authorized SSH keysget
    • Add an authorized SSH keypost
    • Remove an authorized SSH keydel
    • Create a GitHub licensepost
    • Upgrade a licensepost
    • Promote a user to be a site administratorput
    • Demote a site administratordel
    • Suspend a userput
    • Unsuspend a userdel
    • List your grantsget
    • Get a single grantget
    • Delete a grantdel
    • List your authorizationsget
    • Create a new authorizationpost
    • Get-or-create an authorization for a specific appput
    • Get-or-create an authorization for a specific app and fingerprintput
    • Get a single authorizationget
    • Delete an authorizationdel
    • Update an existing authorizationpatch
    • List pull requestsget
    • Create a pull requestpost
    • List review comments in a repositoryget
    • Get a review comment for a pull requestget
    • Delete a review comment for a pull requestdel
    • Update a review comment for a pull requestpatch
    • Get a pull requestget
    • Update a pull requestpatch
    • List review comments on a pull requestget
    • Create a review comment for a pull requestpost
    • Create a reply for a review commentpost
    • List commits on a pull requestget
    • List pull requests filesget
    • Check if a pull request has been mergedget
    • Merge a pull requestput
    • Get all requested reviewers for a pull requestget
    • Request reviewers for a pull requestpost
    • Remove requested reviewers from a pull requestdel
    • List reviews for a pull requestget
    • Create a review for a pull requestpost
    • Get a review for a pull requestget
    • Update a review for a pull requestput
    • Delete a pending review for a pull requestdel
    • List comments for a pull request reviewget
    • Dismiss a review for a pull requestput
    • Submit a review for a pull requestpost
    • Update a pull request branchput

GitHub v3 REST API

Current Version: 1.1.4

GitHub's v3 REST API.

Servers

  • {protocol}://{hostname}/api/v3

External Docs

GitHub Enterprise Developer Docs

Was this page helpful?

On this page

  • Servers
  • External Docs