GitHub Enterprise Orgs API

Interact with organizations.

Operations 145

GET /organizations List organizations #
GET /organizations/{organization_id}/custom_roles Closing down - List custom repository roles in an organization #
GET /organizations/{org}/org-properties/values Get all custom property values for an organization #
PATCH /organizations/{org}/org-properties/values Create or update custom property values for an organization #
GET /orgs/{org} Get an organization #
PATCH /orgs/{org} Update an organization #
DELETE /orgs/{org} Delete an organization #
GET /orgs/{org}/announcement Get announcement banner for organization #
PATCH /orgs/{org}/announcement Set announcement banner for organization #
DELETE /orgs/{org}/announcement Remove announcement banner from organization #
POST /orgs/{org}/artifacts/metadata/deployment-record Create an artifact deployment record #
POST /orgs/{org}/artifacts/metadata/deployment-record/cluster/{cluster} Set cluster deployment records #
POST /orgs/{org}/artifacts/metadata/deployment-record/cluster/{cluster}/jobs Create a cluster deployment records job #
GET /orgs/{org}/artifacts/metadata/deployment-record/cluster/{cluster}/jobs/{job_id} Get cluster deployment records job status #
POST /orgs/{org}/artifacts/metadata/storage-record Create artifact metadata storage record #
GET /orgs/{org}/artifacts/{subject_digest}/metadata/deployment-records List artifact deployment records #
GET /orgs/{org}/artifacts/{subject_digest}/metadata/storage-records List artifact storage records #
POST /orgs/{org}/attestations/bulk-list List attestations by bulk subject digests #
POST /orgs/{org}/attestations/delete-request Delete attestations in bulk #
DELETE /orgs/{org}/attestations/digest/{subject_digest} Delete attestations by subject digest #
GET /orgs/{org}/attestations/repositories List attestation repositories #
DELETE /orgs/{org}/attestations/{attestation_id} Delete attestations by ID #
GET /orgs/{org}/attestations/{subject_digest} List attestations #
GET /orgs/{org}/audit-log Get the audit log for an organization #
GET /orgs/{org}/blocks List users blocked by an organization #
GET /orgs/{org}/blocks/{username} Check if a user is blocked by an organization #
PUT /orgs/{org}/blocks/{username} Block a user from an organization #
DELETE /orgs/{org}/blocks/{username} Unblock a user from an organization #
GET /orgs/{org}/bypass-requests/push-rules List push rule bypass requests within an organization #
GET /orgs/{org}/credential-authorizations List SAML SSO authorizations for an organization #
POST /orgs/{org}/credential-authorizations/revoke-all Revoke all credential authorizations for an organization #
POST /orgs/{org}/credential-authorizations/revoke-credential-type Revoke a single credential type for an organization #
DELETE /orgs/{org}/credential-authorizations/{credential_id} Remove a SAML SSO authorization for an organization #
POST /orgs/{org}/credential-authorizations/{username}/revoke Revoke credential authorizations for a user in an organization #
POST /orgs/{org}/credential-authorizations/{username}/revoke-credential-type Revoke a single credential type for a user in an organization #
GET /orgs/{org}/custom-repository-roles List custom repository roles in an organization #
POST /orgs/{org}/custom-repository-roles Create a custom repository role #
GET /orgs/{org}/custom-repository-roles/{role_id} Get a custom repository role #
PATCH /orgs/{org}/custom-repository-roles/{role_id} Update a custom repository role #
DELETE /orgs/{org}/custom-repository-roles/{role_id} Delete a custom repository role #
POST /orgs/{org}/custom_roles Closing down - Create a custom role #
GET /orgs/{org}/custom_roles/{role_id} Closing down - Get a custom role #
PATCH /orgs/{org}/custom_roles/{role_id} Closing down - Update a custom role #
DELETE /orgs/{org}/custom_roles/{role_id} Closing down - Delete a custom role #
GET /orgs/{org}/failed_invitations List failed organization invitations #
GET /orgs/{org}/fine_grained_permissions Closing down - List fine-grained permissions for an organization #
GET /orgs/{org}/hooks List organization webhooks #
POST /orgs/{org}/hooks Create an organization webhook #
GET /orgs/{org}/hooks/{hook_id} Get an organization webhook #
PATCH /orgs/{org}/hooks/{hook_id} Update an organization webhook #
DELETE /orgs/{org}/hooks/{hook_id} Delete an organization webhook #
GET /orgs/{org}/hooks/{hook_id}/config Get a webhook configuration for an organization #
PATCH /orgs/{org}/hooks/{hook_id}/config Update a webhook configuration for an organization #
GET /orgs/{org}/hooks/{hook_id}/deliveries List deliveries for an organization webhook #
GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id} Get a webhook delivery for an organization webhook #
POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts Redeliver a delivery for an organization webhook #
POST /orgs/{org}/hooks/{hook_id}/pings Ping an organization webhook #
GET /orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id} Get route stats by actor #
GET /orgs/{org}/insights/api/subject-stats Get subject stats #
GET /orgs/{org}/insights/api/summary-stats Get summary stats #
GET /orgs/{org}/insights/api/summary-stats/users/{user_id} Get summary stats by user #
GET /orgs/{org}/insights/api/summary-stats/{actor_type}/{actor_id} Get summary stats by actor #
GET /orgs/{org}/insights/api/time-stats Get time stats #
GET /orgs/{org}/insights/api/time-stats/users/{user_id} Get time stats by user #
GET /orgs/{org}/insights/api/time-stats/{actor_type}/{actor_id} Get time stats by actor #
GET /orgs/{org}/insights/api/user-stats/{user_id} Get user stats #
GET /orgs/{org}/installations List app installations for an organization #
GET /orgs/{org}/invitations List pending organization invitations #
POST /orgs/{org}/invitations Create an organization invitation #
DELETE /orgs/{org}/invitations/{invitation_id} Cancel an organization invitation #
GET /orgs/{org}/invitations/{invitation_id}/teams List organization invitation teams #
GET /orgs/{org}/issue-fields List issue fields for an organization #
POST /orgs/{org}/issue-fields Create issue field for an organization #
PATCH /orgs/{org}/issue-fields/{issue_field_id} Update issue field for an organization #
DELETE /orgs/{org}/issue-fields/{issue_field_id} Delete issue field for an organization #
GET /orgs/{org}/issue-types List issue types for an organization #
POST /orgs/{org}/issue-types Create issue type for an organization #
PUT /orgs/{org}/issue-types/{issue_type_id} Update issue type for an organization #
DELETE /orgs/{org}/issue-types/{issue_type_id} Delete issue type for an organization #
GET /orgs/{org}/members List organization members #
GET /orgs/{org}/members/{username} Check organization membership for a user #
DELETE /orgs/{org}/members/{username} Remove an organization member #
GET /orgs/{org}/memberships/{username} Get organization membership for a user #
PUT /orgs/{org}/memberships/{username} Set organization membership for a user #
DELETE /orgs/{org}/memberships/{username} Remove organization membership for a user #
GET /orgs/{org}/organization-fine-grained-permissions List organization fine-grained permissions for an organization #
GET /orgs/{org}/organization-roles Get all organization roles for an organization #
POST /orgs/{org}/organization-roles Create a custom organization role #
DELETE /orgs/{org}/organization-roles/teams/{team_slug} Remove all organization roles for a team #
PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id} Assign an organization role to a team #
DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id} Remove an organization role from a team #
DELETE /orgs/{org}/organization-roles/users/{username} Remove all organization roles for a user #
PUT /orgs/{org}/organization-roles/users/{username}/{role_id} Assign an organization role to a user #
DELETE /orgs/{org}/organization-roles/users/{username}/{role_id} Remove an organization role from a user #
GET /orgs/{org}/organization-roles/{role_id} Get an organization role #
PATCH /orgs/{org}/organization-roles/{role_id} Update a custom organization role #
DELETE /orgs/{org}/organization-roles/{role_id} Delete a custom organization role #
GET /orgs/{org}/organization-roles/{role_id}/teams List teams that are assigned to an organization role #
GET /orgs/{org}/organization-roles/{role_id}/users List users that are assigned to an organization role #
GET /orgs/{org}/outside_collaborators List outside collaborators for an organization #
PUT /orgs/{org}/outside_collaborators/{username} Convert an organization member to outside collaborator #
DELETE /orgs/{org}/outside_collaborators/{username} Remove outside collaborator from an organization #
GET /orgs/{org}/personal-access-token-requests List requests to access organization resources with fine-grained personal… #
POST /orgs/{org}/personal-access-token-requests Review requests to access organization resources with fine-grained personal… #
POST /orgs/{org}/personal-access-token-requests/{pat_request_id} Review a request to access organization resources with a fine-grained personal… #
GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories List repositories requested to be accessed by a fine-grained personal access… #
GET /orgs/{org}/personal-access-tokens List fine-grained personal access tokens with access to organization resources #
POST /orgs/{org}/personal-access-tokens Update the access to organization resources via fine-grained personal access… #
POST /orgs/{org}/personal-access-tokens/{pat_id} Update the access a fine-grained personal access token has to organization… #
GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories List repositories a fine-grained personal access token has access to #
GET /orgs/{org}/properties/installations Get registered app installations for external custom properties #
POST /orgs/{org}/properties/installations Register an app installation for external custom properties #
GET /orgs/{org}/properties/installations/schema Get all external custom properties for a GitHub App installation in an… #
PATCH /orgs/{org}/properties/installations/values Create or update external custom property values for organization repositories #
PATCH /orgs/{org}/properties/installations/values/{property_name} Create or update external custom property values for a property across… #
DELETE /orgs/{org}/properties/installations/values/{property_name} Remove all external custom property values for a property across all… #
GET /orgs/{org}/properties/schema Get all custom properties for an organization #
PATCH /orgs/{org}/properties/schema Create or update custom properties for an organization #
GET /orgs/{org}/properties/schema/{custom_property_name} Get a custom property for an organization #
PUT /orgs/{org}/properties/schema/{custom_property_name} Create or update a custom property for an organization #
DELETE /orgs/{org}/properties/schema/{custom_property_name} Remove a custom property for an organization #
GET /orgs/{org}/properties/values List custom property values for organization repositories #
PATCH /orgs/{org}/properties/values Create or update custom property values for organization repositories #
GET /orgs/{org}/public_members List public organization members #
GET /orgs/{org}/public_members/{username} Check public organization membership for a user #
PUT /orgs/{org}/public_members/{username} Set public organization membership for the authenticated user #
DELETE /orgs/{org}/public_members/{username} Remove public organization membership for the authenticated user #
GET /orgs/{org}/repository-fine-grained-permissions List repository fine-grained permissions for an organization #
GET /orgs/{org}/rulesets/{ruleset_id}/history Get organization ruleset history #
GET /orgs/{org}/rulesets/{ruleset_id}/history/{version_id} Get organization ruleset version #
GET /orgs/{org}/security-managers List security manager teams #
PUT /orgs/{org}/security-managers/teams/{team_slug} Add a security manager team #
DELETE /orgs/{org}/security-managers/teams/{team_slug} Remove a security manager team #
GET /orgs/{org}/settings/immutable-releases Get immutable releases settings for an organization #
PUT /orgs/{org}/settings/immutable-releases Set immutable releases settings for an organization #
GET /orgs/{org}/settings/immutable-releases/repositories List selected repositories for immutable releases enforcement #
PUT /orgs/{org}/settings/immutable-releases/repositories Set selected repositories for immutable releases enforcement #
PUT /orgs/{org}/settings/immutable-releases/repositories/{repository_id} Enable a selected repository for immutable releases in an organization #
DELETE /orgs/{org}/settings/immutable-releases/repositories/{repository_id} Disable a selected repository for immutable releases in an organization #
POST /orgs/{org}/{security_product}/{enablement} Enable or disable a security feature for an organization #
GET /user/memberships/orgs List organization memberships for the authenticated user #
GET /user/memberships/orgs/{org} Get an organization membership for the authenticated user #
PATCH /user/memberships/orgs/{org} Update an organization membership for the authenticated user #
GET /user/orgs List organizations for the authenticated user #
GET /users/{username}/orgs List organizations for a user #

Documentation

Specifications

Schemas & Data

Other Resources

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-enterprise:github-enterprise-orgs-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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-enterprise-orgs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Github Enterprise Orgs API
  version: 1.1.4
  contact:
    name: Support
    url: https://support.github.com/contact?tags=dotcom-rest-api
  license:
    name: MIT
    url: https://spdx.org/licenses/MIT
  termsOfService: https://docs.github.com/articles/github-terms-of-service
  x-github-plan: ghec
  description: 'Operations tagged orgs across 2 of this provider''s published API definitions: github-enterprise-ghec-openapi.json, github-enterprise-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.github.com
tags:


# --- truncated at 32 KB (531 KB total) ---
# Full source: https://artifacts.apis.io/github-enterprise/openapi/github-enterprise-orgs-api-openapi.yml