Skip to main content
GitHub Docs
Version:
Free, Pro, & Team
Search GitHub Docs
REST API
/
Organizations
All products
REST API
API Version:
2022-11-28 (latest)
Quickstart
Overview
Guides
REST API reference
Actions
Activity
Apps
Billing
Branches
Checks
Codes of conduct
Code Scanning
Codespaces
Collaborators
Commits
Copilot
Dependabot
Dependency Graph
Deploy keys
Deployments
Emojis
Gists
Git database
Gitignore
Interactions
Issues
Licenses
Markdown
Meta
Metrics
Migrations
Organizations
Blocking users
Members
Organizations
Outside Collaborators
Personal access tokens
Rules
Security Managers
Webhooks
Packages
Pages
Projects (classic)
Pulls
Rate limit
Reactions
Releases
Repositories
Search
Secret scanning
Security advisories
Teams
Users
Repository webhooks
The REST API is now versioned.
For more information, see "
About API versioning
."
REST API
/
Organizations
Organizations
Use the REST API to control and manage all your GitHub organizations.
Orgs
List organizations
Get an organization
Update an organization
Delete an organization
List app installations for an organization
Enable or disable a security feature for an organization
List organizations for the authenticated user
List organizations for a user
Blocking
List users blocked by an organization
Check if a user is blocked by an organization
Block a user from an organization
Unblock a user from an organization
Members
List failed organization invitations
List pending organization invitations
Create an organization invitation
Cancel an organization invitation
List organization invitation teams
List organization members
Check organization membership for a user
Remove an organization member
Get organization membership for a user
Set organization membership for a user
Remove organization membership for a user
List public organization members
Check public organization membership for a user
Set public organization membership for the authenticated user
Remove public organization membership for the authenticated user
List organization memberships for the authenticated user
Get an organization membership for the authenticated user
Update an organization membership for the authenticated user
Outside collaborators
List outside collaborators for an organization
Convert an organization member to outside collaborator
Remove outside collaborator from an organization
Personal access tokens
List requests to access organization resources with fine-grained personal access tokens
Review requests to access organization resources with fine-grained personal access tokens
Review a request to access organization resources with a fine-grained personal access token
List repositories requested to be accessed by a fine-grained personal access token
List fine-grained personal access tokens with access to organization resources
Update the access to organization resources via fine-grained personal access tokens
Update the access a fine-grained personal access token has to organization resources
List repositories a fine-grained personal access token has access to
Rules
Get all organization repository rulesets
Create an organization repository ruleset
Get an organization repository ruleset
Update an organization repository ruleset
Delete an organization repository ruleset
Security managers
List security manager teams
Add a security manager team
Remove a security manager team
Webhooks
List organization webhooks
Create an organization webhook
Get an organization webhook
Update an organization webhook
Delete an organization webhook
Get a webhook configuration for an organization
Update a webhook configuration for an organization
List deliveries for an organization webhook
Get a webhook delivery for an organization webhook
Redeliver a delivery for an organization webhook
Ping an organization webhook