The REST API is now versioned. For more information, see "About API versioning."
REST API endpoints for GitHub Enterprise administration
Use the REST API to administer your enterprise.
Note
This information applies to GitHub Enterprise Cloud. To see the GitHub Enterprise Server version, use the Article version drop-down menu.
Note
These endpoints only support authentication using a personal access token (classic). For more information, see Managing your personal access tokens.
Endpoint URLs
These endpoints are prefixed with the following URL:
https://api.github.com
When endpoints include {enterprise}, replace {enterprise} with the handle for your enterprise account, which is included in the URL for your enterprise settings. For example, if your enterprise account is located at https://github.com/enterprises/octo-enterprise, replace {enterprise} with octo-enterprise.
Endpoints
- REST API endpoints for admin stats
- REST API endpoints for enterprise audit logs
- Get the audit log for an enterprise
- Get the audit log stream key for encrypting secrets
- List audit log stream configurations for an enterprise
- Create an audit log streaming configuration for an enterprise
- List one audit log streaming configuration via a stream ID
- Update an existing audit log stream configuration
- Delete an audit log streaming configuration for an enterprise
- REST API endpoints for bypass requests
- REST API endpoints for enterprise security features for code
- REST API endpoints for enterprise credential authorizations
- Custom properties
- REST API for organization custom properties in an enterprise
- Get organization custom properties schema for an enterprise
- Create or update organization custom property definitions on an enterprise
- Get an organization custom property definition from an enterprise
- Create or update an organization custom property definition on an enterprise
- Remove an organization custom property definition from an enterprise
- List custom property values for organizations in an enterprise
- Create or update custom property values for organizations in an enterprise
- REST API endpoints for enterprise roles
- Get all enterprise roles for an enterprise
- Remove all enterprise roles from a team
- Assign an enterprise role to a team
- Remove an enterprise role from a team
- Remove all enterprise roles from a user
- Assign an enterprise role to an enterprise user
- Remove enterprise user role assignment
- Get an enterprise role
- List teams that are assigned to an enterprise role
- List users that are assigned to an enterprise role
- REST API endpoints for enterprise access verification
- Licensing
- REST API endpoints for enterprise network configurations
- List hosted compute network configurations for an enterprise
- Create a hosted compute network configuration for an enterprise
- Get a hosted compute network configuration for an enterprise
- Update a hosted compute network configuration for an enterprise
- Delete a hosted compute network configuration from an enterprise
- Get a hosted compute network settings resource for an enterprise
- REST API for managing organization GitHub App installations
- Get enterprise-owned organizations that can have GitHub Apps installed
- Get repositories belonging to an enterprise-owned organization
- List GitHub Apps installed on an enterprise-owned organization
- Install a GitHub App on an enterprise-owned organization
- Uninstall a GitHub App from an enterprise-owned organization
- Get the repositories accessible to a given GitHub App installation
- Toggle installation repository access between selected and all repositories
- Grant repository access to an organization installation
- Remove repository access from an organization installation
- REST API endpoints for rules
- REST API endpoints for SCIM
- List provisioned SCIM groups for an enterprise
- Provision a SCIM enterprise group
- Get SCIM provisioning information for an enterprise group
- Set SCIM information for a provisioned enterprise group
- Update an attribute for a SCIM enterprise group
- Delete a SCIM group from an enterprise
- List SCIM provisioned identities for an enterprise
- Provision a SCIM enterprise user
- Get SCIM provisioning information for an enterprise user
- Set SCIM information for a provisioned enterprise user
- Update an attribute for a SCIM enterprise user
- Delete a SCIM user from an enterprise
