GitHub Copilot API

Endpoints to manage Copilot using the REST API.

Business capability
Subscription Lifecycle Management BC-4240

Operations 31

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 #
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/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}/members/{username}/copilot Get Copilot seat assignment details for a user #
GET /repos/{owner}/{repo}/copilot/cloud-agent/configuration Get Copilot cloud agent configuration for a repository #

Documentation

📖
Documentation
https://docs.github.com/en/rest/apps
📖
Documentation
https://docs.github.com/en/rest/codes-of-conduct/codes-of-conduct
📖
Documentation
https://docs.github.com/en/rest/emojis
📖
Documentation
https://docs.github.com/en/rest/gitignore
📖
Documentation
https://docs.github.com/en/rest/apps/installations
📖
Documentation
https://docs.github.com/en/rest/enterprise-admin
📖
Documentation
https://docs.github.com/en/rest/activity/events
📖
Documentation
https://docs.github.com/en/rest/orgs
📖
Documentation
https://docs.github.com/en/rest/rate-limit
📖
Documentation
https://docs.github.com/en/enterprise-cloud@latest/rest/scim
📖
Documentation
https://docs.github.com/en/rest/using-the-rest-api/getting-started-with-the-rest-api
📖
Documentation
https://docs.github.com/en/rest/teams
📖
Documentation
https://docs.github.com/en/rest/meta/meta
📖
Documentation
https://docs.github.com/en/rest/actions
📖
Documentation
https://docs.github.com/en/rest/branches
📖
Documentation
https://docs.github.com/en/rest/code-scanning
📖
Documentation
https://docs.github.com/en/rest/collaborators
📖
Documentation
https://docs.github.com/en/rest/dependabot
📖
Documentation
https://docs.github.com/en/rest/webhooks
📖
Documentation
https://docs.github.com/en/rest/pulls
📖
Documentation
https://docs.github.com/en/rest/git/tags
📖
Documentation
https://docs.github.com/en/rest/repos/autolinks
📖
Documentation
https://docs.github.com/en/rest/collaborators/invitations

Specifications

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/github:github-copilot-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

github-copilot-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 1.1.4
  title: GitHub v3 REST Copilot API
  description: GitHub's v3 REST API.
  license:
    name: MIT
    url: https://spdx.org/licenses/MIT
  termsOfService: https://docs.github.com/articles/github-terms-of-service
  contact:
    name: Support
    url: https://support.github.com/contact?tags=dotcom-rest-api
  x-github-plan: api.github.com
servers:
- url: https://api.github.com
tags:


# --- truncated at 32 KB (145 KB total) ---
# Full source: https://artifacts.apis.io/github/openapi/github-copilot-api-openapi.yml