How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

GitHub Copilot API

Endpoints to manage Copilot using the REST API.

GitHub Copilot API is one of 129 APIs that GitHub publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

Tagged areas include Copilot. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an AsyncAPI specification, and an API reference.

This API exposes 31 operations across 24 paths, and defines 18 schemas. It is described by OpenAPI 3.2.0, at version 1.1.4.

Requests are made against a single base URL, https://api.github.com.

31 operations 24 paths 18 schemas 4 DELETE19 GET3 POST5 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.1.4
Base URL
https://api.github.com
Contact
License
Terms of Service
Resource Areas
1

Paths & Operations 31

Across 24 paths, the API surfaces 31 operations — 4 DELETE, 19 GET, 3 POST, 5 PUT. Each is listed below with its method, path, parameters, and response codes.

Copilot 31

Endpoints to manage Copilot using the REST API.

GET
/enterprises/{enterprise}/copilot/metrics/reports/enterprise-1-day
Get Copilot enterprise usage metrics for a specific day
copilot/copilot-enterprise-one-day-usage-metrics 2 params → 200500403404
GET
/enterprises/{enterprise}/copilot/metrics/reports/enterprise-28-day/latest
Get Copilot enterprise usage metrics
copilot/copilot-enterprise-usage-metrics 1 param → 200500403404
GET
/enterprises/{enterprise}/copilot/metrics/reports/repos-1-day
Get Copilot enterprise repository report for a specific day
copilot/copilot-enterprise-repos-one-day-report 2 params → 200204500403404
GET
/enterprises/{enterprise}/copilot/metrics/reports/user-teams-1-day
Get Copilot enterprise user-teams report for a specific day
copilot/copilot-enterprise-user-teams-one-day-report 2 params → 200500403404
GET
/enterprises/{enterprise}/copilot/metrics/reports/users-1-day
Get Copilot users usage metrics for a specific day
copilot/copilot-users-one-day-usage-metrics 2 params → 200500403404
GET
/enterprises/{enterprise}/copilot/metrics/reports/users-28-day/latest
Get Copilot users usage metrics
copilot/copilot-users-usage-metrics 1 param → 200500403404
PUT
/enterprises/{enterprise}/copilot/policies/coding_agent
Set the coding agent policy for an enterprise
copilot/set-enterprise-coding-agent-policy 1 param body → 204400
POST
/enterprises/{enterprise}/copilot/policies/coding_agent/organizations
Add organizations to the enterprise coding agent policy
copilot/add-organizations-to-enterprise-coding-agent-policy 1 param body → 204400
DELETE
/enterprises/{enterprise}/copilot/policies/coding_agent/organizations
Remove organizations from the enterprise coding agent policy
copilot/remove-organizations-from-enterprise-coding-agent-policy 1 param body → 204400
GET
/orgs/{org}/copilot/billing
Get Copilot seat information and settings for an organization
copilot/get-copilot-organization-details 1 param → 200500401403404422
GET
/orgs/{org}/copilot/billing/seats
List all Copilot seat assignments for an organization
copilot/list-copilot-seats 3 params → 200500401403404
POST
/orgs/{org}/copilot/billing/selected_teams
Add teams to the Copilot subscription for an organization
copilot/add-copilot-seats-for-teams 1 param body → 201500401403404422
DELETE
/orgs/{org}/copilot/billing/selected_teams
Remove teams from the Copilot subscription for an organization
copilot/cancel-copilot-seat-assignment-for-teams 1 param body → 200500401403404422
POST
/orgs/{org}/copilot/billing/selected_users
Add users to the Copilot subscription for an organization
copilot/add-copilot-seats-for-users 1 param body → 201500401403404422
DELETE
/orgs/{org}/copilot/billing/selected_users
Remove users from the Copilot subscription for an organization
copilot/cancel-copilot-seat-assignment-for-users 1 param body → 200500401403404422
GET
/orgs/{org}/copilot/coding-agent/permissions
Get Copilot cloud agent permissions for an organization
copilot/get-copilot-coding-agent-permissions-organization 1 param → 200500401403404
PUT
/orgs/{org}/copilot/coding-agent/permissions
Set Copilot cloud agent permissions for an organization
copilot/set-copilot-coding-agent-permissions-organization 1 param body → 204500401403404422
GET
/orgs/{org}/copilot/coding-agent/permissions/repositories
List repositories enabled for Copilot cloud agent in an organization
copilot/list-copilot-coding-agent-selected-repositories-for-organization 3 params → 200500401403404409
PUT
/orgs/{org}/copilot/coding-agent/permissions/repositories
Set selected repositories for Copilot cloud agent in an organization
copilot/set-copilot-coding-agent-selected-repositories-for-organization 1 param body → 204500401403404409422
PUT
/orgs/{org}/copilot/coding-agent/permissions/repositories/{repository_id}
Enable a repository for Copilot cloud agent in an organization
copilot/enable-copilot-coding-agent-for-repository-in-organization 2 params → 204500401403404409422
DELETE
/orgs/{org}/copilot/coding-agent/permissions/repositories/{repository_id}
Disable a repository for Copilot cloud agent in an organization
copilot/disable-copilot-coding-agent-for-repository-in-organization 2 params → 204500401403404409
GET
/orgs/{org}/copilot/content_exclusion
Get Copilot content exclusion rules for an organization
copilot/copilot-content-exclusion-for-organization 1 param → 200500401403404
PUT
/orgs/{org}/copilot/content_exclusion
Set Copilot content exclusion rules for an organization
copilot/set-copilot-content-exclusion-for-organization 1 param body → 200500401403404413422
GET
/orgs/{org}/copilot/metrics/reports/organization-1-day
Get Copilot organization usage metrics for a specific day
copilot/copilot-organization-one-day-usage-metrics 2 params → 200204500403404
GET
/orgs/{org}/copilot/metrics/reports/organization-28-day/latest
Get Copilot organization usage metrics
copilot/copilot-organization-usage-metrics 1 param → 200500403404
GET
/orgs/{org}/copilot/metrics/reports/repos-1-day
Get Copilot organization repository report for a specific day
copilot/copilot-organization-repos-one-day-report 2 params → 200204500403404
GET
/orgs/{org}/copilot/metrics/reports/user-teams-1-day
Get Copilot organization user-teams report for a specific day
copilot/copilot-organization-user-teams-one-day-report 2 params → 200204500403404
GET
/orgs/{org}/copilot/metrics/reports/users-1-day
Get Copilot organization users usage metrics for a specific day
copilot/copilot-organization-users-one-day-usage-metrics 2 params → 200204500403404
GET
/orgs/{org}/copilot/metrics/reports/users-28-day/latest
Get Copilot organization users usage metrics
copilot/copilot-organization-users-usage-metrics 1 param → 200500403404
GET
/orgs/{org}/members/{username}/copilot
Get Copilot seat assignment details for a user
copilot/get-copilot-seat-details-for-user 2 params → 200500401403404422
GET
/repos/{owner}/{repo}/copilot/cloud-agent/configuration
Get Copilot cloud agent configuration for a repository
copilot/get-copilot-cloud-agent-configuration 2 params → 200500401403404

Schemas 18

The contract defines 18 schemas that model the data the API accepts and returns. The most detailed are minimal-repository (90 properties), simple-user (22 properties), team (18 properties), team-simple (16 properties). Each schema is shown below with its type and property counts.

security-and-analysis
objectnull
10 properties
copilot-usage-metrics-1-day-report
object
Links to download the Copilot usage metrics report for an enterprise/organization for a specific day.
2 properties 2 required
basic-error
object
Basic Error
4 properties
organization-simple
object
A GitHub organization.
12 properties 12 required
validation-error
object
Validation Error
3 properties 2 required
copilot-organization-content-exclusion-details
object
List all Copilot Content Exclusion rules for an organization.
copilot-seat-details
object
Information about a Copilot Business seat assignment for a user, team, or organization.
10 properties 1 required
copilot-organization-details
object
Information about the seat breakdown and policies set for an organization with a Copilot Business or Copilot Enterprise subscription.
7 properties 3 required
validation-error-simple
object
Validation Error Simple
3 properties 2 required
enterprise-team
object
Group of enterprise owners and/or members
14 properties 9 required
copilot-usage-metrics-28-day-report
object
Links to download the latest Copilot usage metrics report for an enterprise/organization.
3 properties 3 required
scim-error
object
Scim Error
6 properties
minimal-repository
object
Minimal Repository
90 properties 46 required
code-of-conduct
object
Code Of Conduct
5 properties 4 required
simple-user
object
A GitHub user.
22 properties 18 required
team-simple
object
Groups of organization members that gives permissions on specified repositories.
16 properties 11 required
team
object
Groups of organization members that gives permissions on specified repositories.
18 properties 12 required
copilot-organization-seat-breakdown
object
The breakdown of Copilot Business seats for the organization.
6 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

github-copilot-api-openapi.yml Raw ↑

Other APIs GitHub publishes across the network.

GitHub Gists API
GitHub Issues API
GitHub Licenses API
GitHub Markdown API
GitHub Meta API
GitHub Projects API
GitHub Repos API
GitHub Search API
GitHub User API
GitHub Deployments API
GitHub Releases API
GitHub Pages API
Where this information came from

This is an independent, third-party profile of GitHub Copilot API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.