Skip to main content
GitHub Docs
Version:
Free, Pro, & Team
Search GitHub Docs
REST API
/
Organizations
Home
REST API
API Version:
2022-11-28 (latest)
Quickstart
Overview
Comparing GitHub's APIs
Resources in the REST API
Rate limits
API Versions
Media types
Authenticating
Keeping API credentials secure
Troubleshooting
Libraries
OpenAPI description
Issue event types
GitHub event types
Endpoints for GitHub App installation tokens
Endpoints for GitHub App user tokens
Endpoints for fine-grained PATs
Permissions for GitHub Apps
Permissions for fine-grained PATs
Breaking changes
Guides
Using the API
Script with JavaScript
Script with Ruby
Discover resources for a user
Delivering deployments
Rendering data as graphs
Working with comments
Pagination
Building a CI server
Best practices
Get started - Git database
Get started - Checks
Encrypt secrets
Actions
Artifacts
Cache
OIDC
Permissions
Secrets
Self-hosted runners
Variables
Workflow jobs
Workflow runs
Workflows
Activity
Events
Feeds
Notifications
Starring
Watching
Apps
GitHub Apps
Installations
Marketplace
OAuth Authorizations
Webhooks
Billing
Billing
Branches
Branches
Protected branches
Checks
Check Runs
Check Suites
Classroom
Classroom
Code Scanning
Code Scanning
Codes of conduct
Codes of conduct
Codespaces
Codespaces
Organizations
Organization secrets
Machines
Repository secrets
User secrets
Collaborators
Collaborators
Invitations
Commits
Commits
Commit comments
Commit statuses
Copilot
Copilot business
Dependabot
Alerts
Secrets
Dependency Graph
Dependency review
Dependency submission
Software bill of materials (SBOM)
Deploy keys
Deploy keys
Deployments
Deployment branch policies
Deployments
Environments
Protection rules
Deployment statuses
Emojis
Emojis
Gists
Gists
Comments
Git database
Blobs
Commits
References
Tags
Trees
Gitignore
Gitignore
Interactions
Organization
Repository
User
Issues
Issues
Assignees
Comments
Events
Labels
Milestones
Timeline
Licenses
Licenses
Markdown
Markdown
Meta
Meta
Metrics
Community
Statistics
Traffic
Migrations
Organizations
Source imports
Users
Organizations
Blocking users
Custom properties
Members
Organization roles
Organizations
Outside Collaborators
Personal access tokens
Rule Suites
Rules
Security Managers
Webhooks
Packages
Packages
Pages
Pages
Projects (classic)
Boards
Cards
Collaborators
Columns
Pulls
Pulls
Review comments
Review requests
Reviews
Rate limit
Rate limit
Reactions
Reactions
Releases
Releases
Release Assets
Repositories
Autolinks
Contents
Custom properties
Forks
Repositories
Rule Suites
Rules
Tags
Webhooks
Search
Search
Secret scanning
Secret scanning
Security advisories
Global security advisories
Repository security advisories
Teams
Teams
Discussion comments
Discussions
Members
Users
Users
Blocking users
Emails
Followers
GPG Keys
Git SSH Keys
SSH signing keys
Social accounts
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.
Organizations
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 users
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
Custom properties
Get all custom properties for an organization
Create or update custom properties for an organization
Get a custom property for an organization
Create or update a custom property for an organization
Remove a custom property for an organization
List custom property values for organization repositories
Create or update custom property values for organization repositories
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
Organization roles
List organization fine-grained permissions for an organization
Get all organization roles for an organization
Create a custom organization role
Remove all organization roles for a team
Assign an organization role to a team
Remove an organization role from a team
Remove all organization roles for a user
Assign an organization role to a user
Remove an organization role from a user
Get an organization role
Update a custom organization role
Delete a custom organization role.
List teams that are assigned to an organization role
List users that are assigned to an organization role
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
Rule Suites
List organization rule suites
Get an organization rule suite
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
Organization 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