GitHub Orgs API

The Orgs API from GitHub — 30 operation(s) for orgs.

GitHub OpenAPI

Operations 116

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

22 of 116 operations are conformant: apis.io called them with no credentials and the responses matched this contract. Checked 2026-11-12. how this works · status file

GET /organizations List every organization on the server · List organizations conformant #
Ask an LLM
“Can I get a list of all organizations on our GitHub Enterprise Server in the order they were created?”
“How do I page through every organization on the instance using an organization ID cursor?”
Tell an agent
List all organizations on the server, oldest first.
List the organizations created after organization ID {since}.
GET /orgs/{org} Get an organization's profile and settings · Get an organization conformant #
Ask an LLM
“What details can I pull about a GitHub organization, like its plan, billing email and settings?”
“Does this organization require two-factor authentication for its members?”
Tell an agent
Show me the profile and settings for organization {org}.
Check whether {org} requires two-factor authentication.
PATCH /orgs/{org} Update an organization's profile and settings · Update an organization #
Ask an LLM
“How do I change the billing email or public profile details of an organization?”
“Can I stop members from creating public repositories in my organization?”
Tell an agent
Change the billing email for organization {org} to {billing_email}.
Set the default repository permission for members of {org} to {default_repository_permission}.
DELETE /orgs/{org} Delete an organization and all its repositories · Delete an organization #
Ask an LLM
“What happens to the repositories when I delete a whole organization?”
“Can the organization's login name be reused right after the organization is deleted?”
Tell an agent destructive · confirm first
Delete the organization {org} along with all of its repositories.
Permanently remove organization {org}.
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}/blocks List users blocked by an organization conformant #
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}/failed_invitations List failed organization invitations conformant #
GET /orgs/{org}/hooks List an organization's webhooks · List organization webhooks #
Ask an LLM
“Which webhooks are configured at the organization level?”
“What org webhooks are sending events out of our organization right now?”
Tell an agent
List all webhooks on organization {org}.
Show me the organization-level hooks for {org}.
POST /orgs/{org}/hooks Create an organization webhook · Create an organization webhook #
Ask an LLM
“How do I get notified at my own URL whenever something happens across my organization?”
“Can one org webhook subscribe to just a few event types?”
Tell an agent
Create a {name} webhook on {org} with configuration {config}.
Add a new webhook to {org} with config {config} that fires on {events}.
GET /orgs/{org}/hooks/{hook_id} Get an organization webhook · Get an organization webhook #
Ask an LLM
“Which events is a specific organization webhook subscribed to, and is it active?”
“Can I look at the details of one webhook on my org?”
Tell an agent
Show me webhook {hook_id} on {org}.
Get the events and active status of org hook {hook_id} in {org}.
PATCH /orgs/{org}/hooks/{hook_id} Update an organization webhook's events or status · Update an organization webhook #
Ask an LLM
“Can I pause an organization webhook without deleting it?”
“How do I change which events an existing org webhook listens for?”
Tell an agent
Deactivate org webhook {hook_id} in {org} by setting active to {active}.
Change existing hook {hook_id} on {org} to fire on {events}.
DELETE /orgs/{org}/hooks/{hook_id} Delete an organization webhook · Delete an organization webhook #
Ask an LLM
“How do I stop an organization webhook from sending events for good?”
“Can I delete an org-level webhook without touching the repository webhooks?”
Tell an agent destructive · confirm first
Delete webhook {hook_id} from {org}.
Remove the organization hook {hook_id} in {org} entirely.
GET /orgs/{org}/hooks/{hook_id}/config Get an organization webhook's delivery configuration · Get a webhook configuration for an organization #
Ask an LLM
“What URL and content type is an org webhook delivering to?”
“Is SSL verification turned off on one of our organization webhooks?”
Tell an agent
Show the delivery URL and content type configured for hook {hook_id} on {org}.
Check the SSL setting in the config of org webhook {hook_id} for {org}.
PATCH /orgs/{org}/hooks/{hook_id}/config Update an organization webhook's URL, secret or SSL · Update a webhook configuration for an organization #
Ask an LLM
“How do I point an existing org webhook at a new URL?”
“Can I rotate the secret on an organization webhook without recreating it?”
Tell an agent
Point org webhook {hook_id} in {org} at {url}.
Rotate the secret on org hook {hook_id} in {org} to {secret}.
GET /orgs/{org}/hooks/{hook_id}/deliveries List deliveries for an organization webhook · List deliveries for an organization webhook #
Ask an LLM
“Did our organization webhook actually deliver its recent events?”
“Can I see only the redelivery attempts for an org webhook?”
Tell an agent
List recent deliveries for webhook {hook_id} on {org}.
Show only redelivered attempts for org hook {hook_id} in {org} with redelivery {redelivery}.
GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id} Get one delivery of an organization webhook · Get a webhook delivery for an organization webhook #
Ask an LLM
“What request and response were recorded for one specific org webhook delivery?”
“Why did a single organization webhook delivery fail?”
Tell an agent
Show delivery {delivery_id} for webhook {hook_id} on {org}.
Get the request and response details of org hook delivery {delivery_id} ({hook_id}, {org}).
POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts Redeliver an organization webhook delivery · Redeliver a delivery for an organization webhook #
Ask an LLM
“Can I resend a webhook event that my server failed to receive from the org?”
“How do I retry one failed organization webhook delivery?”
Tell an agent
Redeliver delivery {delivery_id} of webhook {hook_id} on {org}.
Retry the failed org webhook delivery {delivery_id} for hook {hook_id} in {org}.
POST /orgs/{org}/hooks/{hook_id}/pings Ping an organization webhook · Ping an organization webhook #
Ask an LLM
“Is there a way to send a test ping to an organization webhook?”
“Can I check that my org webhook endpoint is reachable without waiting for a real event?”
Tell an agent
Send a ping event to webhook {hook_id} on {org}.
Test org hook {hook_id} in {org} with a ping.
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 GitHub App installations in an organization · List app installations for an organization conformant #
Ask an LLM
“Which GitHub Apps are installed on our organization?”
“What apps have been granted access to our org account?”
Tell an agent
List the GitHub App installations for {org}.
Show every app installed on organization {org}.
GET /orgs/{org}/invitations List pending organization invitations conformant #
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 conformant #
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 conformant #
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 an organization's members · List organization members conformant #
Ask an LLM
“Who are all the members of our organization, including concealed ones?”
“Which organization members still don't have two-factor authentication turned on?”
Tell an agent
List all members of {org}.
List members of {org} matching filter {filter}, such as those with 2FA disabled.
GET /orgs/{org}/members/{username} Check whether a user is an organization member · Check organization membership for a user #
Ask an LLM
“Is a particular user a member of my organization, public or concealed?”
“Can I confirm someone belongs to an org with a simple yes or no?”
Tell an agent
Check whether {username} is a member of {org}.
Confirm that user {username} belongs to organization {org}.
DELETE /orgs/{org}/members/{username} Remove a member from an organization · Remove an organization member #
Ask an LLM
“What happens to someone's team memberships and repository access when I kick them out of the organization?”
“Can I remove a person from the org entirely, not just from a team?”
Tell an agent destructive · confirm first
Remove {username} from organization {org}.
Kick member {username} out of {org} and revoke their access.
GET /orgs/{org}/memberships/{username} Get a user's membership role and state in an org · Get organization membership for a user conformant #
Ask an LLM
“Is a user an admin or a regular member of our organization, and is their invitation still pending?”
“What role does a specific person hold in the org?”
Tell an agent
Get the membership role and state of {username} in {org}.
Tell me whether {username} is pending or active in {org} and what role they have.
PUT /orgs/{org}/memberships/{username} Invite a user or change their organization role · Set organization membership for a user #
Ask an LLM
“How do I invite someone to join my organization?”
“Can I promote an existing member to organization owner?”
Tell an agent
Invite {username} to join {org}.
Set the role of {username} in {org} to {role}.
DELETE /orgs/{org}/memberships/{username} Remove a user's membership or cancel their invitation · Remove organization membership for a user #
Ask an LLM
“Can I cancel a pending invitation someone hasn't accepted yet?”
“How do I revoke a user's organization membership record, invited or active?”
Tell an agent destructive · confirm first
Cancel the pending organization invitation for {username} in {org}.
Revoke the membership record of {username} in {org}.
GET /orgs/{org}/organization-roles Get all organization roles for an organization conformant #
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 #
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 an organization's outside collaborators · List outside collaborators for an organization conformant #
Ask an LLM
“Who has access to our repositories without being an organization member?”
“Which outside collaborators have two-factor authentication disabled?”
Tell an agent
List the outside collaborators for {org}.
Show outside collaborators of {org} matching filter {filter}.
PUT /orgs/{org}/outside_collaborators/{username} Convert a member to an outside collaborator · Convert an organization member to outside collaborator #
Ask an LLM
“Can I downgrade a member to an outside collaborator so they keep only their current repository access?”
“Is it possible to run the member-to-collaborator conversion as a background job?”
Tell an agent
Convert {username} in {org} from a member to an outside collaborator.
Turn member {username} of {org} into an outside collaborator, running it async {async}.
DELETE /orgs/{org}/outside_collaborators/{username} Remove an outside collaborator from an organization · Remove outside collaborator from an organization #
Ask an LLM
“How do I cut off an outside collaborator from every repository in the organization at once?”
“Can I remove a non-member contractor from all our org repos?”
Tell an agent destructive · confirm first
Remove outside collaborator {username} from all repositories in {org}.
Revoke contractor {username}'s outside-collaborator access to {org}.
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 conformant #
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 conformant #
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 conformant #
PATCH /orgs/{org}/properties/values Create or update custom property values for organization repositories #
GET /orgs/{org}/public_members List an organization's public members · List public organization members conformant #
Ask an LLM
“Which members have chosen to show their membership publicly on the org profile?”
“Who is publicly listed as belonging to this organization?”
Tell an agent
List the public members of {org}.
Show who publicly displays membership in {org}.
GET /orgs/{org}/public_members/{username} Check whether a user's org membership is public · Check public organization membership for a user #
Ask an LLM
“Has a specific user made their membership in the organization public?”
“Does someone's profile publicly show that they belong to this org?”
Tell an agent
Check whether {username} publicly shows membership in {org}.
Confirm {username} is a public member of {org}.
PUT /orgs/{org}/public_members/{username} Make my organization membership public · Set public organization membership for the authenticated user #
Ask an LLM
“Can I show on my profile that I belong to an organization?”
“How do I publicize my own membership in an org?”
Tell an agent
Make my membership in {org} public for user {username}.
Publicize that {username} belongs to {org}.
DELETE /orgs/{org}/public_members/{username} Hide my organization membership · Remove public organization membership for the authenticated user #
Ask an LLM
“Can I conceal my membership in an organization so it no longer shows on my profile?”
“How do I make my own org membership private again?”
Tell an agent destructive · confirm first
Conceal my membership in {org} for user {username}.
Hide the fact that {username} is a member of {org}.
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 an organization's security manager teams · List security manager teams conformant #
Ask an LLM
“Which teams have the security manager role in our organization?”
“Who can manage security alerts across every repository in the org?”
Tell an agent
List the security manager teams for {org}.
Show which teams hold the security manager role in {org}.
PUT /orgs/{org}/security-managers/teams/{team_slug} Grant a team the security manager role · Add a security manager team #
Ask an LLM
“Can I give my security team access to manage alerts across all organization repositories?”
“How do I make a team a security manager for the org?”
Tell an agent
Make team {team_slug} a security manager in {org}.
Grant the security manager role to {team_slug} in organization {org}.
DELETE /orgs/{org}/security-managers/teams/{team_slug} Revoke a team's security manager role · Remove a security manager team #
Ask an LLM
“How do I take the security manager role away from a team?”
“Can I stop a team from managing security alerts org-wide?”
Tell an agent destructive · confirm first
Remove team {team_slug} from the security managers of {org}.
Revoke security manager rights for {team_slug} in {org}.
GET /orgs/{org}/settings/immutable-releases Get immutable releases settings for an organization conformant #
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} Turn a security feature on or off for all org repos · Enable or disable a security feature for an organization #
Ask an LLM
“Can I enable a security feature like secret scanning on every repository in my organization at once?”
“Is there a bulk switch to disable a security feature across all org repositories?”
Tell an agent
Apply {enablement} for {security_product} across all repositories in {org}.
Turn {security_product} on or off org-wide in {org} using action {enablement}.
GET /user/memberships/orgs List my organization memberships · List organization memberships for the authenticated user conformant #
Ask an LLM
“Which organizations am I a member of, including invitations I haven't accepted?”
“Do I have any pending organization invitations waiting for me?”
Tell an agent
List all my organization memberships with their roles.
Show my organization memberships in state {state}.
GET /user/memberships/orgs/{org} Get my membership in one organization · Get an organization membership for the authenticated user conformant #
Ask an LLM
“What is my own role in a specific organization?”
“Is my invitation to a particular org still pending?”
Tell an agent
Show my own membership and role in {org}.
Check whether my membership in {org} is active or pending.
PATCH /user/memberships/orgs/{org} Accept a pending organization invitation · Update an organization membership for the authenticated user #
Ask an LLM
“How do I accept an invitation to join an organization through the API?”
“Can I activate my pending membership in an org?”
Tell an agent
Accept my pending invitation to {org} by setting state to {state}.
Activate my membership in {org} with state {state}.
GET /user/orgs List the organizations I belong to · List organizations for the authenticated user conformant #
Ask an LLM
“Which organizations does my own account belong to?”
“Can I get the orgs my token is allowed to see for my user?”
Tell an agent
List the organizations I belong to.
Show all orgs for my signed-in account.
GET /users/{username}/orgs List another user's public organizations · List organizations for a user conformant #
Ask an LLM
“What public organizations does a given GitHub user belong to?”
“Which orgs show up on someone else's profile?”
Tell an agent
List the public organizations for user {username}.
Show which orgs {username} publicly belongs to.

Documentation

📖
Documentation
https://docs.github.com/en/rest/apps
📖
Documentation
https://docs.github.com/en/rest/codes-of-conduct/codes-of-conduct
📖
Documentation
https://docs.github.com/en/rest/emojis
📖
Documentation
https://docs.github.com/en/rest/gitignore
📖
Documentation
https://docs.github.com/en/rest/apps/installations
📖
Documentation
https://docs.github.com/en/rest/enterprise-admin
📖
Documentation
https://docs.github.com/en/rest/activity/events
📖
Documentation
https://docs.github.com/en/rest/orgs
📖
Documentation
https://docs.github.com/en/rest/rate-limit
📖
Documentation
https://docs.github.com/en/enterprise-cloud@latest/rest/scim
📖
Documentation
https://docs.github.com/en/rest/using-the-rest-api/getting-started-with-the-rest-api
📖
Documentation
https://docs.github.com/en/rest/teams
📖
Documentation
https://docs.github.com/en/rest/meta/meta
📖
Documentation
https://docs.github.com/en/rest/actions
📖
Documentation
https://docs.github.com/en/rest/branches
📖
Documentation
https://docs.github.com/en/rest/code-scanning
📖
Documentation
https://docs.github.com/en/rest/collaborators
📖
Documentation
https://docs.github.com/en/rest/dependabot
📖
Documentation
https://docs.github.com/en/rest/webhooks
📖
Documentation
https://docs.github.com/en/rest/pulls
📖
Documentation
https://docs.github.com/en/rest/git/tags
📖
Documentation
https://docs.github.com/en/rest/repos/autolinks
📖
Documentation
https://docs.github.com/en/rest/collaborators/invitations

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:github-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-orgs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Github 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: api.github.com
  description: 'Operations tagged orgs across 2 of this provider''s published API definitions: github-github-full.yml, github-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.github.com
tags:


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