GitHub REST API

GitHub holds every repository in the network and the Actions that build it. 578 paths, 908 operations.

Operations 908

Showing the first 250 of 908. The full set is in the contract, and via get_provider_operations.

GET / APIs.io Engineering Platform GitHub API Root #
GET /admin/hooks APIs.io Engineering Platform List global webhooks #
POST /admin/hooks APIs.io Engineering Platform Create a global webhook #
GET /admin/hooks/{hook_id} APIs.io Engineering Platform Get a global webhook #
PATCH /admin/hooks/{hook_id} APIs.io Engineering Platform Update a global webhook #
DELETE /admin/hooks/{hook_id} APIs.io Engineering Platform Delete a global webhook #
POST /admin/hooks/{hook_id}/pings APIs.io Engineering Platform Ping a global webhook #
GET /admin/keys APIs.io Engineering Platform List public keys #
DELETE /admin/keys/{key_ids} APIs.io Engineering Platform Delete a public key #
PATCH /admin/ldap/teams/{team_id}/mapping APIs.io Engineering Platform Update LDAP mapping for a team #
POST /admin/ldap/teams/{team_id}/sync APIs.io Engineering Platform Sync LDAP mapping for a team #
PATCH /admin/ldap/users/{username}/mapping APIs.io Engineering Platform Update LDAP mapping for a user #
POST /admin/ldap/users/{username}/sync APIs.io Engineering Platform Sync LDAP mapping for a user #
POST /admin/organizations APIs.io Engineering Platform Create an organization #
PATCH /admin/organizations/{org} APIs.io Engineering Platform Update an organization name #
GET /admin/pre-receive-environments APIs.io Engineering Platform List pre-receive environments #
POST /admin/pre-receive-environments APIs.io Engineering Platform Create a pre-receive environment #
GET /admin/pre-receive-environments/{pre_receive_environment_id} APIs.io Engineering Platform Get a pre-receive environment #
PATCH /admin/pre-receive-environments/{pre_receive_environment_id} APIs.io Engineering Platform Update a pre-receive environment #
DELETE /admin/pre-receive-environments/{pre_receive_environment_id} APIs.io Engineering Platform Delete a pre-receive environment #
POST /admin/pre-receive-environments/{pre_receive_environment_id}/downloads APIs.io Engineering Platform Start a pre-receive environment download #
GET /admin/pre-receive-environments/{pre_receive_environment_id}/downloads/latest APIs.io Engineering Platform Get the download status for a pre-receive environment #
GET /admin/pre-receive-hooks APIs.io Engineering Platform List pre-receive hooks #
POST /admin/pre-receive-hooks APIs.io Engineering Platform Create a pre-receive hook #
GET /admin/pre-receive-hooks/{pre_receive_hook_id} APIs.io Engineering Platform Get a pre-receive hook #
PATCH /admin/pre-receive-hooks/{pre_receive_hook_id} APIs.io Engineering Platform Update a pre-receive hook #
DELETE /admin/pre-receive-hooks/{pre_receive_hook_id} APIs.io Engineering Platform Delete a pre-receive hook #
GET /admin/tokens APIs.io Engineering Platform List personal access tokens #
DELETE /admin/tokens/{token_id} APIs.io Engineering Platform Delete a personal access token #
POST /admin/users APIs.io Engineering Platform Create a user #
PATCH /admin/users/{username} APIs.io Engineering Platform Update the username for a user #
DELETE /admin/users/{username} APIs.io Engineering Platform Delete a user #
POST /admin/users/{username}/authorizations APIs.io Engineering Platform Create an impersonation OAuth token #
DELETE /admin/users/{username}/authorizations APIs.io Engineering Platform Delete an impersonation OAuth token #
GET /app APIs.io Engineering Platform Get the authenticated app #
POST /app-manifests/{code}/conversions APIs.io Engineering Platform Create a GitHub App from a manifest #
GET /app/hook/config APIs.io Engineering Platform Get a webhook configuration for an app #
PATCH /app/hook/config APIs.io Engineering Platform Update a webhook configuration for an app #
GET /app/hook/deliveries APIs.io Engineering Platform List deliveries for an app webhook #
GET /app/hook/deliveries/{delivery_id} APIs.io Engineering Platform Get a delivery for an app webhook #
POST /app/hook/deliveries/{delivery_id}/attempts APIs.io Engineering Platform Redeliver a delivery for an app webhook #
GET /app/installation-requests APIs.io Engineering Platform List installation requests for the authenticated app #
GET /app/installations APIs.io Engineering Platform List installations for the authenticated app #
GET /app/installations/{installation_id} APIs.io Engineering Platform Get an installation for the authenticated app #
DELETE /app/installations/{installation_id} APIs.io Engineering Platform Delete an installation for the authenticated app #
POST /app/installations/{installation_id}/access_tokens APIs.io Engineering Platform Create an installation access token for an app #
PUT /app/installations/{installation_id}/suspended APIs.io Engineering Platform Suspend an app installation #
DELETE /app/installations/{installation_id}/suspended APIs.io Engineering Platform Unsuspend an app installation #
GET /applications/grants APIs.io Engineering Platform List your grants #
GET /applications/grants/{grant_id} APIs.io Engineering Platform Get a single grant #
DELETE /applications/grants/{grant_id} APIs.io Engineering Platform Delete a grant #
DELETE /applications/{client_id}/grant APIs.io Engineering Platform Delete an app authorization #
POST /applications/{client_id}/token APIs.io Engineering Platform Check a token #
PATCH /applications/{client_id}/token APIs.io Engineering Platform Reset a token #
DELETE /applications/{client_id}/token APIs.io Engineering Platform Delete an app token #
POST /applications/{client_id}/token/scoped APIs.io Engineering Platform Create a scoped access token #
GET /apps/{app_slug} APIs.io Engineering Platform Get an app #
GET /authorizations APIs.io Engineering Platform List your authorizations #
POST /authorizations APIs.io Engineering Platform Create a new authorization #
PUT /authorizations/clients/{client_id} APIs.io Engineering Platform Get-or-create an authorization for a specific app #
PUT /authorizations/clients/{client_id}/{fingerprint} APIs.io Engineering Platform Get-or-create an authorization for a specific app and fingerprint #
GET /authorizations/{authorization_id} APIs.io Engineering Platform Get a single authorization #
PATCH /authorizations/{authorization_id} APIs.io Engineering Platform Update an existing authorization #
DELETE /authorizations/{authorization_id} APIs.io Engineering Platform Delete an authorization #
GET /codes_of_conduct APIs.io Engineering Platform Get all codes of conduct #
GET /codes_of_conduct/{key} APIs.io Engineering Platform Get a code of conduct #
GET /emojis APIs.io Engineering Platform Get emojis #
GET /enterprise/announcement APIs.io Engineering Platform Get the global announcement banner #
PATCH /enterprise/announcement APIs.io Engineering Platform Set the global announcement banner #
DELETE /enterprise/announcement APIs.io Engineering Platform Remove the global announcement banner #
GET /enterprise/settings/license APIs.io Engineering Platform Get license information #
GET /enterprise/stats/all APIs.io Engineering Platform Get all statistics #
GET /enterprise/stats/comments APIs.io Engineering Platform Get comment statistics #
GET /enterprise/stats/gists APIs.io Engineering Platform Get gist statistics #
GET /enterprise/stats/hooks APIs.io Engineering Platform Get hooks statistics #
GET /enterprise/stats/issues APIs.io Engineering Platform Get issue statistics #
GET /enterprise/stats/milestones APIs.io Engineering Platform Get milestone statistics #
GET /enterprise/stats/orgs APIs.io Engineering Platform Get organization statistics #
GET /enterprise/stats/pages APIs.io Engineering Platform Get pages statistics #
GET /enterprise/stats/pulls APIs.io Engineering Platform Get pull request statistics #
GET /enterprise/stats/repos APIs.io Engineering Platform Get repository statistics #
GET /enterprise/stats/users APIs.io Engineering Platform Get users statistics #
GET /enterprises/{enterprise}/actions/cache/usage APIs.io Engineering Platform Get GitHub Actions cache usage for an enterprise #
GET /enterprises/{enterprise}/actions/cache/usage-policy APIs.io Engineering Platform Get GitHub Actions cache usage policy for an enterprise #
PATCH /enterprises/{enterprise}/actions/cache/usage-policy APIs.io Engineering Platform Set GitHub Actions cache usage policy for an enterprise #
GET /enterprises/{enterprise}/actions/permissions APIs.io Engineering Platform Get GitHub Actions permissions for an enterprise #
PUT /enterprises/{enterprise}/actions/permissions APIs.io Engineering Platform Set GitHub Actions permissions for an enterprise #
GET /enterprises/{enterprise}/actions/permissions/organizations APIs.io Engineering Platform List selected organizations enabled for GitHub Actions in an enterprise #
PUT /enterprises/{enterprise}/actions/permissions/organizations APIs.io Engineering Platform Set selected organizations enabled for GitHub Actions in an enterprise #
PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id} APIs.io Engineering Platform Enable a selected organization for GitHub Actions in an enterprise #
DELETE /enterprises/{enterprise}/actions/permissions/organizations/{org_id} APIs.io Engineering Platform Disable a selected organization for GitHub Actions in an enterprise #
GET /enterprises/{enterprise}/actions/permissions/selected-actions APIs.io Engineering Platform Get allowed actions for an enterprise #
PUT /enterprises/{enterprise}/actions/permissions/selected-actions APIs.io Engineering Platform Set allowed actions for an enterprise #
GET /enterprises/{enterprise}/actions/permissions/workflow APIs.io Engineering Platform Get default workflow permissions for an enterprise #
PUT /enterprises/{enterprise}/actions/permissions/workflow APIs.io Engineering Platform Set default workflow permissions for an enterprise #
GET /enterprises/{enterprise}/actions/runner-groups APIs.io Engineering Platform List self-hosted runner groups for an enterprise #
POST /enterprises/{enterprise}/actions/runner-groups APIs.io Engineering Platform Create a self-hosted runner group for an enterprise #
GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id} APIs.io Engineering Platform Get a self-hosted runner group for an enterprise #
PATCH /enterprises/{enterprise}/actions/runner-groups/{runner_group_id} APIs.io Engineering Platform Update a self-hosted runner group for an enterprise #
DELETE /enterprises/{enterprise}/actions/runner-groups/{runner_group_id} APIs.io Engineering Platform Delete a self-hosted runner group from an enterprise #
GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations APIs.io Engineering Platform List organization access to a self-hosted runner group in an enterprise #
PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations APIs.io Engineering Platform Set organization access for a self-hosted runner group in an enterprise #
PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id} APIs.io Engineering Platform Add organization access to a self-hosted runner group in an enterprise #
DELETE /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id} APIs.io Engineering Platform Remove organization access to a self-hosted runner group in an enterprise #
GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners APIs.io Engineering Platform List self-hosted runners in a group for an enterprise #
PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners APIs.io Engineering Platform Set self-hosted runners in a group for an enterprise #
PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id} APIs.io Engineering Platform Add a self-hosted runner to a group for an enterprise #
DELETE /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id} APIs.io Engineering Platform Remove a self-hosted runner from a group for an enterprise #
GET /enterprises/{enterprise}/actions/runners APIs.io Engineering Platform List self-hosted runners for an enterprise #
GET /enterprises/{enterprise}/actions/runners/downloads APIs.io Engineering Platform List runner applications for an enterprise #
POST /enterprises/{enterprise}/actions/runners/registration-token APIs.io Engineering Platform Create a registration token for an enterprise #
POST /enterprises/{enterprise}/actions/runners/remove-token APIs.io Engineering Platform Create a remove token for an enterprise #
GET /enterprises/{enterprise}/actions/runners/{runner_id} APIs.io Engineering Platform Get a self-hosted runner for an enterprise #
DELETE /enterprises/{enterprise}/actions/runners/{runner_id} APIs.io Engineering Platform Delete a self-hosted runner from an enterprise #
GET /enterprises/{enterprise}/actions/runners/{runner_id}/labels APIs.io Engineering Platform List labels for a self-hosted runner for an enterprise #
POST /enterprises/{enterprise}/actions/runners/{runner_id}/labels APIs.io Engineering Platform Add custom labels to a self-hosted runner for an enterprise #
PUT /enterprises/{enterprise}/actions/runners/{runner_id}/labels APIs.io Engineering Platform Set custom labels for a self-hosted runner for an enterprise #
DELETE /enterprises/{enterprise}/actions/runners/{runner_id}/labels APIs.io Engineering Platform Remove all custom labels from a self-hosted runner for an enterprise #
DELETE /enterprises/{enterprise}/actions/runners/{runner_id}/labels/{name} APIs.io Engineering Platform Remove a custom label from a self-hosted runner for an enterprise #
GET /enterprises/{enterprise}/audit-log APIs.io Engineering Platform Get the audit log for an enterprise #
GET /enterprises/{enterprise}/code-scanning/alerts APIs.io Engineering Platform List code scanning alerts for an enterprise #
GET /enterprises/{enterprise}/code_security_and_analysis APIs.io Engineering Platform Get code security and analysis features for an enterprise #
PATCH /enterprises/{enterprise}/code_security_and_analysis APIs.io Engineering Platform Update code security and analysis features for an enterprise #
GET /enterprises/{enterprise}/dependabot/alerts APIs.io Engineering Platform List Dependabot alerts for an enterprise #
GET /enterprises/{enterprise}/secret-scanning/alerts APIs.io Engineering Platform List secret scanning alerts for an enterprise #
GET /enterprises/{enterprise}/settings/billing/advanced-security APIs.io Engineering Platform Get GitHub Advanced Security active committers for an enterprise #
POST /enterprises/{enterprise}/{security_product}/{enablement} APIs.io Engineering Platform Enable or disable a security feature #
GET /events APIs.io Engineering Platform List public events #
GET /feeds APIs.io Engineering Platform Get feeds #
GET /gists APIs.io Engineering Platform List gists for the authenticated user #
POST /gists APIs.io Engineering Platform Create a gist #
GET /gists/public APIs.io Engineering Platform List public gists #
GET /gists/starred APIs.io Engineering Platform List starred gists #
GET /gists/{gist_id} APIs.io Engineering Platform Get a gist #
PATCH /gists/{gist_id} APIs.io Engineering Platform Update a gist #
DELETE /gists/{gist_id} APIs.io Engineering Platform Delete a gist #
GET /gists/{gist_id}/comments APIs.io Engineering Platform List gist comments #
POST /gists/{gist_id}/comments APIs.io Engineering Platform Create a gist comment #
GET /gists/{gist_id}/comments/{comment_id} APIs.io Engineering Platform Get a gist comment #
PATCH /gists/{gist_id}/comments/{comment_id} APIs.io Engineering Platform Update a gist comment #
DELETE /gists/{gist_id}/comments/{comment_id} APIs.io Engineering Platform Delete a gist comment #
GET /gists/{gist_id}/commits APIs.io Engineering Platform List gist commits #
GET /gists/{gist_id}/forks APIs.io Engineering Platform List gist forks #
POST /gists/{gist_id}/forks APIs.io Engineering Platform Fork a gist #
GET /gists/{gist_id}/star APIs.io Engineering Platform Check if a gist is starred #
PUT /gists/{gist_id}/star APIs.io Engineering Platform Star a gist #
DELETE /gists/{gist_id}/star APIs.io Engineering Platform Unstar a gist #
GET /gists/{gist_id}/{sha} APIs.io Engineering Platform Get a gist revision #
GET /gitignore/templates APIs.io Engineering Platform Get all gitignore templates #
GET /gitignore/templates/{name} APIs.io Engineering Platform Get a gitignore template #
GET /installation/repositories APIs.io Engineering Platform List repositories accessible to the app installation #
DELETE /installation/token APIs.io Engineering Platform Revoke an installation access token #
GET /issues APIs.io Engineering Platform List issues assigned to the authenticated user #
GET /licenses APIs.io Engineering Platform Get all commonly used licenses #
GET /licenses/{license} APIs.io Engineering Platform Get a license #
GET /manage/v1/config/nodes APIs.io Engineering Platform Get GHES node metadata for all nodes #
GET /manage/v1/replication/status APIs.io Engineering Platform Get the status of services running on all replica nodes #
GET /manage/v1/version APIs.io Engineering Platform Get all GHES release versions for all nodes #
POST /markdown APIs.io Engineering Platform Render a Markdown document #
POST /markdown/raw APIs.io Engineering Platform Render a Markdown document in raw mode #
GET /meta APIs.io Engineering Platform Get GitHub Enterprise Server meta information #
GET /networks/{owner}/{repo}/events APIs.io Engineering Platform List public events for a network of repositories #
GET /notifications APIs.io Engineering Platform List notifications for the authenticated user #
PUT /notifications APIs.io Engineering Platform Mark notifications as read #
GET /notifications/threads/{thread_id} APIs.io Engineering Platform Get a thread #
PATCH /notifications/threads/{thread_id} APIs.io Engineering Platform Mark a thread as read #
GET /notifications/threads/{thread_id}/subscription APIs.io Engineering Platform Get a thread subscription for the authenticated user #
PUT /notifications/threads/{thread_id}/subscription APIs.io Engineering Platform Set a thread subscription #
DELETE /notifications/threads/{thread_id}/subscription APIs.io Engineering Platform Delete a thread subscription #
GET /octocat APIs.io Engineering Platform Get Octocat #
GET /organizations APIs.io Engineering Platform List organizations #
GET /organizations/{organization_id}/custom_roles APIs.io Engineering Platform Deprecated - List custom repository roles in an organization #
GET /orgs/{org} APIs.io Engineering Platform Get an organization #
PATCH /orgs/{org} APIs.io Engineering Platform Update an organization #
DELETE /orgs/{org} APIs.io Engineering Platform Delete an organization #
GET /orgs/{org}/actions/cache/usage APIs.io Engineering Platform Get GitHub Actions cache usage for an organization #
GET /orgs/{org}/actions/cache/usage-by-repository APIs.io Engineering Platform List repositories with GitHub Actions cache usage for an organization #
GET /orgs/{org}/actions/oidc/customization/sub APIs.io Engineering Platform Get the customization template for an OIDC subject claim for an organization #
PUT /orgs/{org}/actions/oidc/customization/sub APIs.io Engineering Platform Set the customization template for an OIDC subject claim for an organization #
GET /orgs/{org}/actions/permissions APIs.io Engineering Platform Get GitHub Actions permissions for an organization #
PUT /orgs/{org}/actions/permissions APIs.io Engineering Platform Set GitHub Actions permissions for an organization #
GET /orgs/{org}/actions/permissions/repositories APIs.io Engineering Platform List selected repositories enabled for GitHub Actions in an organization #
PUT /orgs/{org}/actions/permissions/repositories APIs.io Engineering Platform Set selected repositories enabled for GitHub Actions in an organization #
PUT /orgs/{org}/actions/permissions/repositories/{repository_id} APIs.io Engineering Platform Enable a selected repository for GitHub Actions in an organization #
DELETE /orgs/{org}/actions/permissions/repositories/{repository_id} APIs.io Engineering Platform Disable a selected repository for GitHub Actions in an organization #
GET /orgs/{org}/actions/permissions/selected-actions APIs.io Engineering Platform Get allowed actions for an organization #
PUT /orgs/{org}/actions/permissions/selected-actions APIs.io Engineering Platform Set allowed actions for an organization #
GET /orgs/{org}/actions/permissions/workflow APIs.io Engineering Platform Get default workflow permissions for an organization #
PUT /orgs/{org}/actions/permissions/workflow APIs.io Engineering Platform Set default workflow permissions for an organization #
GET /orgs/{org}/actions/runner-groups APIs.io Engineering Platform List self-hosted runner groups for an organization #
POST /orgs/{org}/actions/runner-groups APIs.io Engineering Platform Create a self-hosted runner group for an organization #
GET /orgs/{org}/actions/runner-groups/{runner_group_id} APIs.io Engineering Platform Get a self-hosted runner group for an organization #
PATCH /orgs/{org}/actions/runner-groups/{runner_group_id} APIs.io Engineering Platform Update a self-hosted runner group for an organization #
DELETE /orgs/{org}/actions/runner-groups/{runner_group_id} APIs.io Engineering Platform Delete a self-hosted runner group from an organization #
GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories APIs.io Engineering Platform List repository access to a self-hosted runner group in an organization #
PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories APIs.io Engineering Platform Set repository access for a self-hosted runner group in an organization #
PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id} APIs.io Engineering Platform Add repository access to a self-hosted runner group in an organization #
DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id} APIs.io Engineering Platform Remove repository access to a self-hosted runner group in an organization #
GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners APIs.io Engineering Platform List self-hosted runners in a group for an organization #
PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners APIs.io Engineering Platform Set self-hosted runners in a group for an organization #
PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id} APIs.io Engineering Platform Add a self-hosted runner to a group for an organization #
DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id} APIs.io Engineering Platform Remove a self-hosted runner from a group for an organization #
GET /orgs/{org}/actions/runners APIs.io Engineering Platform List self-hosted runners for an organization #
GET /orgs/{org}/actions/runners/downloads APIs.io Engineering Platform List runner applications for an organization #
POST /orgs/{org}/actions/runners/registration-token APIs.io Engineering Platform Create a registration token for an organization #
POST /orgs/{org}/actions/runners/remove-token APIs.io Engineering Platform Create a remove token for an organization #
GET /orgs/{org}/actions/runners/{runner_id} APIs.io Engineering Platform Get a self-hosted runner for an organization #
DELETE /orgs/{org}/actions/runners/{runner_id} APIs.io Engineering Platform Delete a self-hosted runner from an organization #
GET /orgs/{org}/actions/runners/{runner_id}/labels APIs.io Engineering Platform List labels for a self-hosted runner for an organization #
POST /orgs/{org}/actions/runners/{runner_id}/labels APIs.io Engineering Platform Add custom labels to a self-hosted runner for an organization #
PUT /orgs/{org}/actions/runners/{runner_id}/labels APIs.io Engineering Platform Set custom labels for a self-hosted runner for an organization #
DELETE /orgs/{org}/actions/runners/{runner_id}/labels APIs.io Engineering Platform Remove all custom labels from a self-hosted runner for an organization #
DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name} APIs.io Engineering Platform Remove a custom label from a self-hosted runner for an organization #
GET /orgs/{org}/actions/secrets APIs.io Engineering Platform List organization secrets #
GET /orgs/{org}/actions/secrets/public-key APIs.io Engineering Platform Get an organization public key #
GET /orgs/{org}/actions/secrets/{secret_name} APIs.io Engineering Platform Get an organization secret #
PUT /orgs/{org}/actions/secrets/{secret_name} APIs.io Engineering Platform Create or update an organization secret #
DELETE /orgs/{org}/actions/secrets/{secret_name} APIs.io Engineering Platform Delete an organization secret #
GET /orgs/{org}/actions/secrets/{secret_name}/repositories APIs.io Engineering Platform List selected repositories for an organization secret #
PUT /orgs/{org}/actions/secrets/{secret_name}/repositories APIs.io Engineering Platform Set selected repositories for an organization secret #
PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id} APIs.io Engineering Platform Add selected repository to an organization secret #
DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id} APIs.io Engineering Platform Remove selected repository from an organization secret #
GET /orgs/{org}/actions/variables APIs.io Engineering Platform List organization variables #
POST /orgs/{org}/actions/variables APIs.io Engineering Platform Create an organization variable #
GET /orgs/{org}/actions/variables/{name} APIs.io Engineering Platform Get an organization variable #
PATCH /orgs/{org}/actions/variables/{name} APIs.io Engineering Platform Update an organization variable #
DELETE /orgs/{org}/actions/variables/{name} APIs.io Engineering Platform Delete an organization variable #
GET /orgs/{org}/actions/variables/{name}/repositories APIs.io Engineering Platform List selected repositories for an organization variable #
PUT /orgs/{org}/actions/variables/{name}/repositories APIs.io Engineering Platform Set selected repositories for an organization variable #
PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id} APIs.io Engineering Platform Add selected repository to an organization variable #
DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id} APIs.io Engineering Platform Remove selected repository from an organization variable #
GET /orgs/{org}/announcement APIs.io Engineering Platform Get announcement banner for organization #
PATCH /orgs/{org}/announcement APIs.io Engineering Platform Set announcement banner for organization #
DELETE /orgs/{org}/announcement APIs.io Engineering Platform Remove announcement banner from organization #
GET /orgs/{org}/audit-log APIs.io Engineering Platform Get the audit log for an organization #
GET /orgs/{org}/code-scanning/alerts APIs.io Engineering Platform List code scanning alerts for an organization #
GET /orgs/{org}/custom-repository-roles APIs.io Engineering Platform List custom repository roles in an organization #
POST /orgs/{org}/custom-repository-roles APIs.io Engineering Platform Create a custom repository role #
GET /orgs/{org}/custom-repository-roles/{role_id} APIs.io Engineering Platform Get a custom repository role #
PATCH /orgs/{org}/custom-repository-roles/{role_id} APIs.io Engineering Platform Update a custom repository role #
DELETE /orgs/{org}/custom-repository-roles/{role_id} APIs.io Engineering Platform Delete a custom repository role #
GET /orgs/{org}/dependabot/alerts APIs.io Engineering Platform List Dependabot alerts for an organization #
GET /orgs/{org}/dependabot/secrets APIs.io Engineering Platform List organization secrets #
GET /orgs/{org}/dependabot/secrets/public-key APIs.io Engineering Platform Get an organization public key #
GET /orgs/{org}/dependabot/secrets/{secret_name} APIs.io Engineering Platform Get an organization secret #
PUT /orgs/{org}/dependabot/secrets/{secret_name} APIs.io Engineering Platform Create or update an organization secret #
DELETE /orgs/{org}/dependabot/secrets/{secret_name} APIs.io Engineering Platform Delete an organization secret #
GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories APIs.io Engineering Platform List selected repositories for an organization secret #
PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories APIs.io Engineering Platform Set selected repositories for an organization secret #
PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id} APIs.io Engineering Platform Add selected repository to an organization secret #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/github"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

github-openapi-original.yml Raw ↑
openapi: 3.0.3
info:
  version: 1.1.4
  title: GitHub v3 REST API
  description: GitHub's v3 REST API.
  license:
    name: MIT
    url: https://spdx.org/licenses/MIT
  termsOfService: https://docs.github.com/articles/github-terms-of-service
  contact:
    name: Support
    url: https://support.github.com/contact?tags=dotcom-rest-api
  x-github-plan: ghes
  x-github-release: 3.9
tags:
  - name: Actions
    description: Endpoints to manage GitHub Actions using the REST API.
  - name: Activity
    description: Activity APIs provide access to notifications, subscriptions, and timelines.
  - name: Apps
    description: Information for integrations and installations.
  - name: Billing
    description: Monitor charges and usage from Actions and Packages.
  - name: Checks
    description: Rich interactions with checks run by your integrations.
  - name: Code-Scanning
    description: Retrieve code scanning alerts from a repository.
  - name: Codes-Of-Conduct
    description: Insight into codes of conduct for your communities.
  - name: Dependabot
    description: Endpoints to manage Dependabot.
  - name: Dependency-Graph
    description: Endpoints to access Dependency Graph features.
  - name: Emojis
    description: List emojis available to use on GitHub.
  - name: Enterprise-Admin
    description: Enterprise Administration
  - name: Gists
    description: View, modify your gists.
  - name: Git
    description: Raw Git functionality.
  - name: Gitignore
    description: View gitignore templates
  - name: Issues
    description: Interact with GitHub Issues.
  - name: Licenses
    description: View various OSS licenses.
  - name: Markdown
    description: Render GitHub flavored markdown
  - name: Meta
    description: Endpoints that give information about the API.
  - name: Migrations
    description: Move projects to or from GitHub.
  - name: Oauth-Authorizations
    description: OAuth Authorizations API
  - name: Oidc
    description: Endpoints to manage GitHub OIDC configuration using the REST API.
  - name: Orgs
    description: Interact with GitHub Orgs.
  - name: Packages
    description: Manage packages for authenticated users and organizations.
  - name: Projects
    description: Interact with GitHub Projects.
  - name: Pulls
    description: Interact with GitHub Pull Requests.
  - name: Rate-Limit
    description: Check your current rate limit status
  - name: Reactions
    description: Interact with reactions to various GitHub entities.
  - name: Repos
    description: Interact with GitHub Repos.
  - name: Scim
    description: Provisioning of GitHub organization membership for SCIM-enabled providers.
  - name: Search
    description: Look for stuff on GitHub.
  - name: Secret-Scanning
    description: Retrieve secret scanning alerts from a repository.
  - name: Teams
    description: Interact with GitHub Teams.
  - name: Users
    description: Interact with and view information about users and also current user.
servers:
  - url: "{protocol}://{hostname}/api/v3"
    variables:
      hostname:
        description: Self-hosted Enterprise Server hostname
        default: HOSTNAME
      protocol:
        description: Self-hosted Enterprise Server protocol
        default: http
externalDocs:
  description: GitHub Enterprise Developer Docs
  url: https://docs.github.com/enterprise-server@3.9/rest/
paths:
  "/":
    get:
      summary: APIs.io Engineering Platform GitHub API Root
      description: Get Hypermedia links to resources accessible in GitHub's REST API
      tags:
        - Meta
      operationId: meta/root
      responses:
        '200':
          description: Response
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/root"
              examples:
                default:
                  "$ref": "#/components/examples/root"
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: true
        category: meta
        subcategory: meta
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/meta/meta#github-api-root
  "/admin/hooks":
    get:
      summary: APIs.io Engineering Platform List global webhooks
      description: ''
      operationId: enterprise-admin/list-global-webhooks
      tags:
        - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/global-webhooks#list-global-webhooks
      parameters:
        - "$ref": "#/components/parameters/per-page"
        - "$ref": "#/components/parameters/page"
      responses:
        '200':
          description: Response
          content:
            application/json:
              schema:
                type: array
                items:
                  "$ref": "#/components/schemas/global-hook"
              examples:
                default:
                  "$ref": "#/components/examples/global-hook-items"
          headers:
            Link:
              "$ref": "#/components/headers/link"
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: global-webhooks
    post:
      summary: APIs.io Engineering Platform Create a global webhook
      description: ''
      operationId: enterprise-admin/create-global-webhook
      tags:
        - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/global-webhooks#create-a-global-webhook
      responses:
        '201':
          description: Response
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/global-hook"
              examples:
                default:
                  "$ref": "#/components/examples/global-hook"
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: Must be passed as "web".
                config:
                  type: object
                  description: Key/value pairs to provide settings for this webhook.
                  properties:
                    url:
                      type: string
                      description: The URL to which the payloads will be delivered.
                    content_type:
                      type: string
                      description: The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.
                    secret:
                      type: string
                      description: If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://docs.github.com/enterprise-server@3.9/webhooks/event-payloads/#delivery-headers) header.
                    insecure_ssl:
                      type: string
                      description: Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**
                  required:
                    - url
                events:
                  type: array
                  description: 'The [events](https://docs.github.com/enterprise-server@3.9/webhooks/event-payloads) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.'
                  items:
                    type: string
                active:
                  type: boolean
                  description: Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.
                  default: true
              required:
                - name
                - config
            examples:
              default:
                value:
                  name: web
                  events:
                    - organization
                    - user
                  config:
                    url: https://example.com/webhook
                    content_type: json
                    secret: secret
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: global-webhooks
  "/admin/hooks/{hook_id}":
    get:
      summary: APIs.io Engineering Platform Get a global webhook
      description: ''
      operationId: enterprise-admin/get-global-webhook
      tags:
        - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/global-webhooks#get-a-global-webhook
      parameters:
        - "$ref": "#/components/parameters/hook-id"
      responses:
        '200':
          description: Response
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/global-hook"
              examples:
                default:
                  "$ref": "#/components/examples/global-hook"
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: global-webhooks
    patch:
      summary: APIs.io Engineering Platform Update a global webhook
      description: Parameters that are not provided will be overwritten with the default value or removed if no default exists.
      operationId: enterprise-admin/update-global-webhook
      tags:
        - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/global-webhooks#update-a-global-webhook
      parameters:
        - "$ref": "#/components/parameters/hook-id"
      responses:
        '200':
          description: Response
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/global-hook-2"
              examples:
                default:
                  "$ref": "#/components/examples/global-hook-2"
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                config:
                  type: object
                  description: Key/value pairs to provide settings for this webhook.
                  properties:
                    url:
                      type: string
                      description: The URL to which the payloads will be delivered.
                    content_type:
                      type: string
                      description: The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.
                    secret:
                      type: string
                      description: If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://docs.github.com/enterprise-server@3.9/webhooks/event-payloads/#delivery-headers) header.
                    insecure_ssl:
                      type: string
                      description: Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**
                  required:
                    - url
                events:
                  type: array
                  description: 'The [events](https://docs.github.com/enterprise-server@3.9/webhooks/event-payloads) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.'
                  items:
                    type: string
                active:
                  type: boolean
                  description: Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.
                  default: true
            examples:
              default:
                value:
                  events:
                    - organization
                  config:
                    url: https://example.com/webhook
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: global-webhooks
    delete:
      summary: APIs.io Engineering Platform Delete a global webhook
      description: ''
      operationId: enterprise-admin/delete-global-webhook
      tags:
        - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/global-webhooks#delete-a-global-webhook
      parameters:
        - "$ref": "#/components/parameters/hook-id"
      responses:
        '204':
          description: Response
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: global-webhooks
  "/admin/hooks/{hook_id}/pings":
    post:
      summary: APIs.io Engineering Platform Ping a global webhook
      description: This will trigger a [ping event](https://docs.github.com/enterprise-server@3.9/webhooks/#ping-event) to be sent to the webhook.
      operationId: enterprise-admin/ping-global-webhook
      tags:
        - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/global-webhooks#ping-a-global-webhook
      parameters:
        - "$ref": "#/components/parameters/hook-id"
      responses:
        '204':
          description: Response
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: global-webhooks
  "/admin/keys":
    get:
      summary: APIs.io Engineering Platform List public keys
      description: ''
      operationId: enterprise-admin/list-public-keys
      tags:
        - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/users#list-public-keys
      parameters:
        - "$ref": "#/components/parameters/per-page"
        - "$ref": "#/components/parameters/page"
        - "$ref": "#/components/parameters/direction"
        - name: sort
          in: query
          required: false
          schema:
            type: string
            enum:
              - created
              - updated
              - accessed
            default: created
        - name: since
          description: Only show public keys accessed after the given time.
          in: query
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Response
          content:
            application/json:
              schema:
                type: array
                items:
                  "$ref": "#/components/schemas/public-key-full"
              examples:
                default:
                  "$ref": "#/components/examples/enterprise-public-key-items"
          headers:
            Link:
              "$ref": "#/components/headers/link"
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: users
  "/admin/keys/{key_ids}":
    delete:
      summary: APIs.io Engineering Platform Delete a public key
      description: ''
      operationId: enterprise-admin/delete-public-key
      tags:
        - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/users#delete-a-public-key
      parameters:
        - "$ref": "#/components/parameters/key-ids"
      responses:
        '204':
          description: Response
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: users
  "/admin/ldap/teams/{team_id}/mapping":
    patch:
      summary: APIs.io Engineering Platform Update LDAP mapping for a team
      description: Updates the [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team. [LDAP synchronization](https://docs.github.com/enterprise-server@3.9/admin/identity-and-access-management/using-ldap-for-enterprise-iam/using-ldap#enabling-ldap-sync) must be enabled to map LDAP entries to a team. Use the [Create a team](https://docs.github.com/enterprise-server@3.9/rest/teams/teams/#create-a-team) endpoint to create a team with LDAP mapping.
      operationId: enterprise-admin/update-ldap-mapping-for-team
      tags:
        - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/ldap#update-ldap-mapping-for-a-team
      parameters:
        - "$ref": "#/components/parameters/team-id"
      responses:
        '200':
          description: Response
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/ldap-mapping-team"
              examples:
                default:
                  "$ref": "#/components/examples/ldap-mapping-team"
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                ldap_dn:
                  type: string
                  description: The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.
              required:
                - ldap_dn
            examples:
              default:
                value:
                  ldap_dn: cn=Enterprise Ops,ou=teams,dc=github,dc=com
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: ldap
  "/admin/ldap/teams/{team_id}/sync":
    post:
      summary: APIs.io Engineering Platform Sync LDAP mapping for a team
      description: Note that this API call does not automatically initiate an LDAP sync. Rather, if a `201` is returned, the sync job is queued successfully, and is performed when the instance is ready.
      operationId: enterprise-admin/sync-ldap-mapping-for-team
      tags:
        - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/ldap#sync-ldap-mapping-for-a-team
      parameters:
        - "$ref": "#/components/parameters/team-id"
      responses:
        '201':
          description: Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
              examples:
                default:
                  value:
                    status: queued
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: ldap
  "/admin/ldap/users/{username}/mapping":
    patch:
      summary: APIs.io Engineering Platform Update LDAP mapping for a user
      description: ''
      operationId: enterprise-admin/update-ldap-mapping-for-user
      tags:
        - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/ldap#update-ldap-mapping-for-a-user
      parameters:
        - "$ref": "#/components/parameters/username"
      responses:
        '200':
          description: Response
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/ldap-mapping-user"
              examples:
                default:
                  "$ref": "#/components/examples/ldap-mapping-user"
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                ldap_dn:
                  type: string
                  description: The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.
              required:
                - ldap_dn
            examples:
              default:
                value:
                  ldap_dn: uid=asdf,ou=users,dc=github,dc=com
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: ldap
  "/admin/ldap/users/{username}/sync":
    post:
      summary: APIs.io Engineering Platform Sync LDAP mapping for a user
      description: Note that this API call does not automatically initiate an LDAP sync. Rather, if a `201` is returned, the sync job is queued successfully, and is performed when the instance is ready.
      operationId: enterprise-admin/sync-ldap-mapping-for-user
      tags:
        - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/ldap#sync-ldap-mapping-for-a-user
      parameters:
        - "$ref": "#/components/parameters/username"
      responses:
        '201':
          description: Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
              examples:
                default:
                  value:
                    status: queued
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: ldap
  "/admin/organizations":
    post:
      summary: APIs.io Engineering Platform Create an organization
      description: ''
      operationId: enterprise-admin/create-org
      tags:
        - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/orgs#create-an-organization
      responses:
        '201':
          description: Response
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/organization-simple"
              examples:
                default:
                  "$ref": "#/components/examples/organization-simple"
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                login:
                  type: string
                  description: The organization's username.
                admin:
                  type: string
                  description: The login of the user who will manage this organization.
                profile_name:
                  type: string
                  description: The organization's display name.
              required:
                - login
                - admin
            examples:
              default:
                value:
                  login: github
                  profile_name: GitHub, Inc.
                  admin: monalisaoctocat
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: orgs
  "/admin/organizations/{org}":
    patch:
      summary: APIs.io Engineering Platform Update an organization name
      description: ''
      operationId: enterprise-admin/update-org-name
      tags:
        - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/orgs#update-an-organization-name
      parameters:
        - "$ref": "#/components/parameters/org"
      responses:
        '202':
          description: Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  url:
                    type: string
              examples:
                default:
                  value:
                    message: Job queued to rename organization. It may take a few minutes to complete.
                    url: https://<hostname>/api/v3/organizations/1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                login:
                  type: string
                  description: The organization's new name.
              required:
                - login
            examples:
              default:
                value:
                  login: the-new-octocats
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: orgs
  "/admin/pre-receive-environments":
    get:
      summary: APIs.io Engineering Platform List pre-receive environments
      description: ''
      operationId: enterprise-admin/list-pre-receive-environments
      tags:
        - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/pre-receive-environments#list-pre-receive-environments
      parameters:
        - "$ref": "#/components/parameters/per-page"
        - "$ref": "#/components/parameters/page"
        - "$ref": "#/components/parameters/direction"
        - name: sort
          in: query
          required: false
          schema:
            type: string
            enum:
              - created
              - updated
              - name
            default: created
      responses:
        '200':
          description: Response
          content:
            application/json:
              schema:
                type: array
                items:
                  "$ref": "#/components/schemas/pre-receive-environment"
              examples:
                default:
                  "$ref": "#/components/examples/pre-receive-environment-items"
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: pre-receive-environments
    post:
      summary: APIs.io Engineering Platform Create a pre-receive environment
      description: ''
      operationId: enterprise-admin/create-pre-receive-environment
      tags:
        - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/pre-receive-environments#create-a-pre-receive-environment
      responses:
        '201':
          description: Response
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/pre-receive-environment"
              examples:
                default:
                  "$ref": "#/components/examples/pre-receive-environment"
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: The new pre-receive environment's name.
                image_url:
                  type: string
                  description: URL from which to download a tarball of this environment.
              required:
                - name
                - image_url
            examples:
              default:
                value:
                  name: DevTools Hook Env
                  image_url: https://my_file_server/path/to/devtools_env.tar.gz
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: pre-receive-environments
  "/admin/pre-receive-environments/{pre_receive_environment_id}":
    get:
      summary: APIs.io Engineering Platform Get a pre-receive environment
      description: ''
      operationId: enterprise-admin/get-pre-receive-environment
      tags:
        - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/pre-receive-environments#get-a-pre-receive-environment
      parameters:
        - "$ref": "#/components/parameters/pre-receive-environment-id"
      responses:
        '200':
          description: Response
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/pre-receive-environment"
              examples:
                default:
                  "$ref": "#/components/examples/pre-receive-environment"
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: pre-receive-environments
    patch:
      summary: APIs.io Engineering Platform Update a pre-receive environment
      description: You cannot modify the default environment. If you attempt to modify the default environment, you will receive a `422 Unprocessable Entity` response.
      operationId: enterprise-admin/update-pre-receive-environment
      tags:
        - Enterprise-Admin
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/enterprise-admin/pre-receive-environments#update-a-pre-receive-environment
      parameters:
        - "$ref": "#/components/parameters/pre-receive-environment-id"
      responses:
        '200':
          description: Response
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/pre-receive-environment"
              examples:
                default-response:
                  "$ref": "#/components/examples/pre-receive-environment-default-response"
        '422':
          description: Client Errors
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        resource:
                          type: string
                        code:
                          type: string
                        message:
                          type: string
              examples:
                client-errors:
                  value:
                    message: Validation Failed
                    errors:
                      - resource: PreReceiveEnvironment
                        code: custom
                        message: Cannot modify or delete the default environment
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: This pre-receive environment's new name.
                image_url:
                  type: string
                  description: URL from which to download a tarball of this environment.
            examples:
              default:
                value:
                  name: DevTools Hook Env
                  image_url: https://my_file_server/path/to/devtools_env.tar.gz
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: false
        category: enterprise-admin
        subcategory: pre-receive-environments
    delete:
      summary: APIs.io Engineering Platform Delete a pre-receive environment
      description: |-
        If you attempt to delete an environmen

# --- truncated at 32 KB (7538 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/engineering-platform/refs/heads/main/openapi/_original/github-openapi-original.yml