# GitHub Copilot Copilot API

**Canonical:** https://apis.io/apis/github-copilot/github-copilot-copilot-api/  
**Provider:** GitHub Copilot — https://apis.io/providers/github-copilot/  
**Base URL:** https://api.github.com  
**Documentation:** https://docs.github.com/en/rest/copilot

GitHub Copilot Copilot API is one of 10 APIs that [GitHub Copilot](https://apis.io/providers/github-copilot/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 6 JSON Schema definitions. Tagged areas include Copilot. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, authentication docs, a getting-started guide, a JSON-LD context, pricing, and 6 JSON Schemas.

Endpoints to manage Copilot using the REST API.

## Operations (44)

| Method | Path | Summary |
|---|---|---|
| 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 | `/orgs/{org}/copilot/billing` | Get Copilot seat information and settings for an organization |
| GET | `/orgs/{org}/copilot/billing/seats` | List all Copilot seat assignments for an organization |
| 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 |
| GET | `/orgs/{org}/copilot/code-review/settings` | Get Copilot code review settings 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/content_exclusion` | Get Copilot content exclusion rules for an organization |
| PUT | `/orgs/{org}/copilot/content_exclusion` | Set Copilot content exclusion rules for 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 |
| GET | `/orgs/{org}/members/{username}/copilot` | Get Copilot seat assignment details for a user |
| GET | `/orgs/{org}/teams/{team_slug}/copilot/customizations` | Get Copilot customizations for a team |
| PUT | `/orgs/{org}/teams/{team_slug}/copilot/customizations` | Set Copilot customizations for a team |
| 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 |

## Machine-readable artifacts (19)

- **OpenAPI** — https://artifacts.apis.io/github-copilot/openapi/github-copilot-copilot-api-openapi.yml
- **Documentation** — https://docs.github.com/en/rest/copilot
- **Authentication** — https://docs.github.com/en/rest/authentication
- **GettingStarted** — https://docs.github.com/en/copilot/quickstart
- **Features** — https://docs.github.com/en/copilot/get-started/features
- **Plans** — https://docs.github.com/en/copilot/get-started/plans
- **JSONLD** — https://artifacts.apis.io/github-copilot/json-ld/github-copilot-context.jsonld
- **Documentation** — https://docs.github.com/en/rest/copilot/copilot-for-business
- **Pricing** — https://github.com/features/copilot#pricing
- **Documentation** — https://docs.github.com/en/rest/copilot/copilot-user-management
- **Documentation** — https://docs.github.com/en/rest/copilot/copilot-metrics
- **Documentation** — https://docs.github.com/en/rest/copilot/copilot-usage-metrics
- **Documentation** — https://docs.github.com/en/rest/copilot/copilot-content-exclusion-management
- **JSONSchema** — https://artifacts.apis.io/github-copilot/json-schema/github-copilot-minimal-repository-schema.json
- **JSONSchema** — https://artifacts.apis.io/github-copilot/json-schema/github-copilot-copilot-seat-details-schema.json
- **JSONSchema** — https://artifacts.apis.io/github-copilot/json-schema/github-copilot-repository-copilot-code-review-settings-schema.json
- **JSONSchema** — https://artifacts.apis.io/github-copilot/json-schema/github-copilot-organization-copilot-code-review-settings-schema.json
- **JSONSchema** — https://artifacts.apis.io/github-copilot/json-schema/github-copilot-copilot-organization-details-schema.json
- **JSONSchema** — https://artifacts.apis.io/github-copilot/json-schema/github-copilot-organization-copilot-code-review-runner-schema.json

## Other GitHub Copilot APIs (9)

- [GitHub Copilot Chat API](https://apis.io/apis/github-copilot/github-copilot-chat-api/)
- [GitHub Copilot Extensions API](https://apis.io/apis/github-copilot/github-copilot-extensions-api/)
- [GitHub Copilot Coding Agent](https://apis.io/apis/github-copilot/github-copilot-coding-agent/)
- [GitHub Copilot Code Review](https://apis.io/apis/github-copilot/github-copilot-code-review/)
- [GitHub MCP Server](https://apis.io/apis/github-copilot/github-mcp-server/)
- [GitHub Copilot Custom Instructions](https://apis.io/apis/github-copilot/github-copilot-custom-instructions/)
- [GitHub Copilot Copilot Spaces API](https://apis.io/apis/github-copilot/github-copilot-copilot-spaces-api/)
- [GitHub Copilot Merge Queue API](https://apis.io/apis/github-copilot/github-copilot-merge-queue-api/)
- [GitHub Copilot Pulls API](https://apis.io/apis/github-copilot/github-copilot-pulls-api/)

## Tags

Copilot

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/github-copilot/github-copilot-copilot-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/github-copilot/.
