GitHub Enterprise Copilot API
Endpoints to manage Copilot using the REST API.
Operations 61
GET
/enterprises/{enterprise}/copilot/billing/seats
List all Copilot seat assignments for an enterprise
#
POST
/enterprises/{enterprise}/copilot/billing/selected_enterprise_teams
Add enterprise teams to the Copilot subscription for an enterprise
#
DELETE
/enterprises/{enterprise}/copilot/billing/selected_enterprise_teams
Remove enterprise teams from the Copilot subscription for an enterprise
#
POST
/enterprises/{enterprise}/copilot/billing/selected_users
Add users to the Copilot subscription for an enterprise
#
DELETE
/enterprises/{enterprise}/copilot/billing/selected_users
Remove users from the Copilot subscription for an enterprise
#
GET
/enterprises/{enterprise}/copilot/content_exclusion
Get Copilot content exclusion rules for an enterprise
#
PUT
/enterprises/{enterprise}/copilot/content_exclusion
Set Copilot content exclusion rules for an enterprise
#
GET
/enterprises/{enterprise}/copilot/custom-agents/source
Get the source organization for custom agents in an enterprise
#
PUT
/enterprises/{enterprise}/copilot/custom-agents/source
Set the source organization for custom agents in an enterprise
#
DELETE
/enterprises/{enterprise}/copilot/custom-agents/source
Delete the custom agents source for an enterprise
#
GET
/enterprises/{enterprise}/copilot/metrics/reports/enterprise-1-day
Get Copilot enterprise usage metrics for a specific day
#
GET
/enterprises/{enterprise}/copilot/metrics/reports/enterprise-28-day/latest
Get Copilot enterprise usage metrics
#
GET
/enterprises/{enterprise}/copilot/metrics/reports/repos-1-day
Get Copilot enterprise repository report for a specific day
#
GET
/enterprises/{enterprise}/copilot/metrics/reports/user-teams-1-day
Get Copilot enterprise user-teams report for a specific day
#
GET
/enterprises/{enterprise}/copilot/metrics/reports/users-1-day
Get Copilot users usage metrics for a specific day
#
GET
/enterprises/{enterprise}/copilot/metrics/reports/users-28-day/latest
Get Copilot users usage metrics
#
GET
/enterprises/{enterprise}/copilot/policies/code-review
Get the Copilot code review policy for an enterprise
#
PUT
/enterprises/{enterprise}/copilot/policies/code-review
Set the Copilot code review policy for an enterprise
#
PUT
/enterprises/{enterprise}/copilot/policies/coding_agent
Set the coding agent policy for an enterprise
#
POST
/enterprises/{enterprise}/copilot/policies/coding_agent/organizations
Add organizations to the enterprise coding agent policy
#
DELETE
/enterprises/{enterprise}/copilot/policies/coding_agent/organizations
Remove organizations from the enterprise coding agent policy
#
GET
/enterprises/{enterprise}/members/{username}/copilot
Get Copilot seat assignment details for an enterprise user
#
POST
/orgs/{org}/copilot/billing/selected_teams
Add teams to the Copilot subscription for an organization
#
DELETE
/orgs/{org}/copilot/billing/selected_teams
Remove teams from the Copilot subscription for an organization
#
POST
/orgs/{org}/copilot/billing/selected_users
Add users to the Copilot subscription for an organization
#
DELETE
/orgs/{org}/copilot/billing/selected_users
Remove users from the Copilot subscription for an organization
#
GET
/orgs/{org}/copilot/code-review/runner
Get the Copilot code review runner configuration for an organization
#
PUT
/orgs/{org}/copilot/code-review/runner
Set the Copilot code review runner configuration for an organization
#
PATCH
/orgs/{org}/copilot/code-review/settings
Update Copilot code review settings for an organization
#
GET
/orgs/{org}/copilot/coding-agent/permissions
Get Copilot cloud agent permissions for an organization
#
PUT
/orgs/{org}/copilot/coding-agent/permissions
Set Copilot cloud agent permissions for an organization
#
GET
/orgs/{org}/copilot/coding-agent/permissions/repositories
List repositories enabled for Copilot cloud agent in an organization
#
PUT
/orgs/{org}/copilot/coding-agent/permissions/repositories
Set selected repositories for Copilot cloud agent in an organization
#
PUT
/orgs/{org}/copilot/coding-agent/permissions/repositories/{repository_id}
Enable a repository for Copilot cloud agent in an organization
#
DELETE
/orgs/{org}/copilot/coding-agent/permissions/repositories/{repository_id}
Disable a repository for Copilot cloud agent in an organization
#
GET
/orgs/{org}/copilot/metrics/reports/organization-1-day
Get Copilot organization usage metrics for a specific day
#
GET
/orgs/{org}/copilot/metrics/reports/organization-28-day/latest
Get Copilot organization usage metrics
#
GET
/orgs/{org}/copilot/metrics/reports/repos-1-day
Get Copilot organization repository report for a specific day
#
GET
/orgs/{org}/copilot/metrics/reports/user-teams-1-day
Get Copilot organization user-teams report for a specific day
#
GET
/orgs/{org}/copilot/metrics/reports/users-1-day
Get Copilot organization users usage metrics for a specific day
#
GET
/orgs/{org}/copilot/metrics/reports/users-28-day/latest
Get Copilot organization users usage metrics
#
GET
/orgs/{org}/copilot/policies/code-review
Get the Copilot code review policy for an organization
#
PUT
/orgs/{org}/copilot/policies/code-review
Set the Copilot code review policy for an organization
#
DELETE
/orgs/{org}/teams/{team_slug}/copilot/customizations
Delete Copilot customizations for a team
#
GET
/repos/{owner}/{repo}/copilot/cloud-agent/configuration
Get Copilot cloud agent configuration for a repository
#
GET
/repos/{owner}/{repo}/copilot/code-review/settings
Get Copilot code review settings for a repository
#
PATCH
/repos/{owner}/{repo}/copilot/code-review/settings
Update Copilot code review settings for a repository
#
Documentation
Documentation
https://docs.github.com/en/enterprise-cloud@latest/rest
RateLimits
https://docs.github.com/en/enterprise-cloud@latest/rest/using-the-rest-api/rate-limits-for-the-rest-api
Authentication
https://docs.github.com/en/enterprise-cloud@latest/rest/overview/authenticating-to-the-rest-api
Documentation
https://docs.github.com/en/enterprise-cloud@latest/graphql
Documentation
https://docs.github.com/en/enterprise-server@latest/rest
Documentation
https://docs.github.com/en/enterprise-server@latest/graphql
Specifications
Schemas & Data
JSONSchema
https://artifacts.apis.io/github-enterprise/json-schema/github-enterprise-repository-schema.json
JSONSchema
https://artifacts.apis.io/github-enterprise/json-schema/github-enterprise-full-repository-schema.json
JSONSchema
https://artifacts.apis.io/github-enterprise/json-schema/github-enterprise-app-permissions-schema.json
JSONSchema
https://artifacts.apis.io/github-enterprise/json-schema/github-enterprise-team-repository-schema.json
JSONSchema
https://artifacts.apis.io/github-enterprise/json-schema/github-enterprise-organization-full-schema.json
JSONSchema
https://artifacts.apis.io/github-enterprise/json-schema/github-enterprise-minimal-repository-schema.json
JSONSchema
https://artifacts.apis.io/github-enterprise/json-schema/github-enterprise-organization-schema.json
JSONSchema
https://artifacts.apis.io/github-enterprise/json-schema/github-enterprise-pull-request-schema.json