GitHub Copilot API

Endpoints to manage Copilot using the REST API.

GitHub OpenAPI
Business capability
Subscription Lifecycle Management BC-4240

Operations 44

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

4 of 44 operations are conformant: apis.io called them with no credentials and the responses matched this contract. Checked 2026-11-12. how this works · status file

GET /enterprises/{enterprise}/copilot/metrics/reports/enterprise-1-day Download the Copilot usage report for one day · Get Copilot enterprise usage metrics for a specific day #
Ask an LLM
“Where can I download Copilot usage metrics for a single day?”
“How do I get the Copilot report for a specific date?”
Tell an agent
Download the Copilot usage report for {day} in {enterprise}.
Get the one-day Copilot metrics report for {enterprise} dated {day}.
GET /enterprises/{enterprise}/copilot/metrics/reports/enterprise-28-day/latest Download the latest 28-day Copilot report · Get Copilot enterprise usage metrics #
Ask an LLM
“Can I get the most recent 28-day Copilot usage report?”
“What does the latest enterprise-wide Copilot report cover?”
Tell an agent
Download the latest 28-day Copilot usage report for {enterprise}.
Get the most recent Copilot metrics report covering the last 28 days in {enterprise}.
GET /enterprises/{enterprise}/copilot/metrics/reports/repos-1-day Download the per-repository Copilot report for a day · Get Copilot enterprise repository report for a specific day #
Ask an LLM
“Can I see Copilot pull request activity per repository for one day?”
“Which repos used Copilot on a given date?”
Tell an agent
Download the per-repository Copilot report for {day} in {enterprise}.
Get the repository-level Copilot activity report for {enterprise} on {day}.
GET /enterprises/{enterprise}/copilot/metrics/reports/user-teams-1-day Download the user-team membership Copilot report for a day · Get Copilot enterprise user-teams report for a specific day #
Ask an LLM
“Can I get who joined Copilot teams on a specific day?”
“What user-team membership data does the Copilot report include?”
Tell an agent
Download the user-team membership report for {day} in {enterprise}.
Get the Copilot user-team join data for {enterprise} on {day}.
GET /enterprises/{enterprise}/copilot/metrics/reports/users-1-day Download the user-level Copilot report for a day · Get Copilot users usage metrics for a specific day #
Ask an LLM
“Where can I get user-level Copilot usage for a single day?”
“How do I see individual Copilot engagement for one date?”
Tell an agent
Download the user-level Copilot report for {day} in {enterprise}.
Get the one-day user engagement report for {enterprise} dated {day}.
GET /enterprises/{enterprise}/copilot/metrics/reports/users-28-day/latest Download the latest 28-day user-level Copilot report · Get Copilot users usage metrics #
Ask an LLM
“Can I get the most recent 28-day user-level Copilot report?”
“What does the latest user engagement report cover?”
Tell an agent
Download the latest 28-day user-level Copilot report for {enterprise}.
Get the most recent user engagement report covering the last 28 days in {enterprise}.
GET /enterprises/{enterprise}/copilot/policies/code-review Get the enterprise Copilot code review policy · Get the Copilot code review policy for an enterprise #
Ask an LLM
“Is Copilot code review enabled across my enterprise?”
“What code review policy is set for the whole enterprise?”
Tell an agent
Get the Copilot code review policy for {enterprise}.
Show the enterprise-wide code review setting in {enterprise}.
PUT /enterprises/{enterprise}/copilot/policies/code-review Set the enterprise Copilot code review policy · Set the Copilot code review policy for an enterprise #
Ask an LLM
“How do I turn Copilot code review on or off for the whole enterprise?”
“Can I change the enterprise code review policy?”
Tell an agent
Set the Copilot code review policy for {enterprise} to {policy_state}.
Enable or disable code review across {enterprise} with policy {policy_state}.
PUT /enterprises/{enterprise}/copilot/policies/coding_agent Set the enterprise Copilot coding agent policy · Set the coding agent policy for an enterprise #
Ask an LLM
“How do I control Copilot cloud agent usage across all organizations?”
“Can I enable the coding agent for selected organizations only?”
Tell an agent
Set the Copilot coding agent policy for {enterprise} to {policy_state}.
Enable the coding agent across {enterprise} with policy {policy_state}.
POST /enterprises/{enterprise}/copilot/policies/coding_agent/organizations Enable the coding agent for selected organizations · Add organizations to the enterprise coding agent policy #
Ask an LLM
“How do I enable Copilot cloud agent for specific organizations?”
“Can I add organizations to the selected-organizations coding agent policy?”
Tell an agent
Enable the coding agent for {organizations} in {enterprise}.
Add organizations {organizations} to the selected-organizations coding agent policy in {enterprise}.
DELETE /enterprises/{enterprise}/copilot/policies/coding_agent/organizations Disable the coding agent for selected organizations · Remove organizations from the enterprise coding agent policy #
Ask an LLM
“How do I turn off Copilot cloud agent for specific organizations?”
“Can I remove organizations from the selected-organizations coding agent policy?”
Tell an agent destructive · confirm first
Disable the coding agent for {organizations} in {enterprise}.
Remove organizations {organizations} from the selected-organizations coding agent policy in {enterprise}.
GET /orgs/{org}/copilot/billing Get Copilot seat and policy details for an org · Get Copilot seat information and settings for an organization conformant #
Ask an LLM
“How many Copilot seats does my organization have, and what policies apply?”
“Where can I see the Copilot subscription details for an organization?”
Tell an agent
Get the Copilot seat and policy details for {org}.
Show the Copilot subscription and feature policies for {org}.
GET /orgs/{org}/copilot/billing/seats List Copilot seat assignments for an organization · List all Copilot seat assignments for an organization conformant #
Ask an LLM
“Which users have Copilot seats assigned in my organization?”
“Can I page through the assigned Copilot seats?”
Tell an agent
List the Copilot seat assignments for {org}.
Show the first {per_page} Copilot seats in {org}, page {page}.
POST /orgs/{org}/copilot/billing/selected_teams Buy Copilot seats for teams · Add teams to the Copilot subscription for an organization #
Ask an LLM
“How do I buy Copilot seats for every member of a team?”
“Can I grant Copilot access to several teams at once?”
Tell an agent
Buy Copilot seats for teams {selected_teams} in {org}.
Grant Copilot access to each user in teams {selected_teams} of {org}.
DELETE /orgs/{org}/copilot/billing/selected_teams Revoke Copilot seats from teams · Remove teams from the Copilot subscription for an organization #
Ask an LLM
“How do I revoke Copilot access from teams at the end of the billing cycle?”
“Can I remove Copilot seats for several teams at once?”
Tell an agent destructive · confirm first
Revoke Copilot seats for teams {selected_teams} in {org}.
Set Copilot access pending cancellation for teams {selected_teams} of {org}.
POST /orgs/{org}/copilot/billing/selected_users Buy Copilot seats for individual users · Add users to the Copilot subscription for an organization #
Ask an LLM
“How do I buy Copilot seats for specific users?”
“Can I add Copilot access to individual members of an organization?”
Tell an agent
Buy Copilot seats for users {selected_usernames} in {org}.
Grant Copilot access to {selected_usernames} in {org}.
DELETE /orgs/{org}/copilot/billing/selected_users Revoke Copilot seats from individual users · Remove users from the Copilot subscription for an organization #
Ask an LLM
“How do I revoke Copilot access from specific users?”
“Can I remove Copilot seats for individual members at the end of the billing cycle?”
Tell an agent destructive · confirm first
Revoke Copilot seats for users {selected_usernames} in {org}.
Set Copilot access pending cancellation for {selected_usernames} in {org}.
GET /orgs/{org}/copilot/code-review/runner Get an organization's Copilot code review runner · Get the Copilot code review runner configuration for an organization #
Ask an LLM
“Which runner does Copilot code review use for my organization?”
“Is the organization's code review runner labeled or standard?”
Tell an agent
Get the Copilot code review runner for {org}.
Show the runner type and labels used by code review in {org}.
PUT /orgs/{org}/copilot/code-review/runner Set an organization's Copilot code review runner · Set the Copilot code review runner configuration for an organization #
Ask an LLM
“How do I configure the runner Copilot code review uses for my organization?”
“Can I allow repositories to customize their own code review runner?”
Tell an agent
Set the Copilot code review runner for {org} to {runner_type}.
Configure code review in {org} to use runner type {runner_type} with labels {runner_labels}.
GET /orgs/{org}/copilot/code-review/settings Get an organization's Copilot code review settings · Get Copilot code review settings for an organization #
Ask an LLM
“What default review effort does my organization use for Copilot code review?”
“Where can I see the effective code review settings for an organization?”
Tell an agent
Get the Copilot code review settings for {org}.
Show the default review effort and effective values in {org}.
PATCH /orgs/{org}/copilot/code-review/settings Set an organization's Copilot code review effort · Update Copilot code review settings for an organization #
Ask an LLM
“How do I change the default review effort for every repository in my organization?”
“Can I clear the organization's code review setting so repos use their own default?”
Tell an agent
Set the organization's default code review effort in {org} to {default_review_effort}.
Make {org} use the inherited code review effort by setting it to {default_review_effort}.
GET /orgs/{org}/copilot/coding-agent/permissions Check which repos use the Copilot cloud agent · Get Copilot cloud agent permissions for an organization conformant #
Ask an LLM
“Which repositories in my organization have the Copilot cloud agent enabled?”
“Is the cloud agent turned on for all repos, selected repos or none?”
Tell an agent
Show the Copilot cloud agent permission settings for {org}.
List which repositories in {org} have the cloud agent enabled.
PUT /orgs/{org}/copilot/coding-agent/permissions Set the cloud agent repo policy for an org · Set Copilot cloud agent permissions for an organization #
Ask an LLM
“How do I turn the Copilot cloud agent on for every repository in my organization?”
“Can I restrict the cloud agent to only selected repositories?”
Tell an agent
Set the Copilot cloud agent policy for {org} to {enabled_repositories}.
Turn the cloud agent on for all repositories in {org}.
GET /orgs/{org}/copilot/coding-agent/permissions/repositories List repos enabled for the cloud agent · List repositories enabled for Copilot cloud agent in an organization #
Ask an LLM
“Which repositories have been selected to use the Copilot cloud agent?”
“Can I see the list of repos that have the cloud agent enabled?”
Tell an agent
List the repositories enabled for the Copilot cloud agent in {org}.
Show the selected-repository list for the cloud agent in {org}.
PUT /orgs/{org}/copilot/coding-agent/permissions/repositories Replace the cloud agent repo list for an org · Set selected repositories for Copilot cloud agent in an organization #
Ask an LLM
“How do I replace the list of repositories allowed to use the Copilot cloud agent?”
“Can I set which repos have the cloud agent by passing a new list of repo IDs?”
Tell an agent
Replace the Copilot cloud agent repository list for {org} with {selected_repository_ids}.
Set the selected-repository list for the cloud agent in {org}.
PUT /orgs/{org}/copilot/coding-agent/permissions/repositories/{repository_id} Enable the cloud agent for one repo · Enable a repository for Copilot cloud agent in an organization #
Ask an LLM
“How do I add a single repository to the Copilot cloud agent?”
“Can I enable the cloud agent for one repo without changing the rest of the list?”
Tell an agent
Enable the Copilot cloud agent for repository {repository_id} in {org}.
Add {repository_id} to the selected-repository list for the cloud agent in {org}.
DELETE /orgs/{org}/copilot/coding-agent/permissions/repositories/{repository_id} Disable the cloud agent for one repo · Disable a repository for Copilot cloud agent in an organization #
Ask an LLM
“How do I remove a repository from the Copilot cloud agent?”
“Can I turn off the cloud agent for one repo without affecting the others?”
Tell an agent destructive · confirm first
Disable the Copilot cloud agent for repository {repository_id} in {org}.
Remove {repository_id} from the selected-repository list for the cloud agent in {org}.
GET /orgs/{org}/copilot/content_exclusion Get an org's Copilot content exclusion rules · Get Copilot content exclusion rules for an organization #
Ask an LLM
“Which file paths are excluded from Copilot suggestions in my organization?”
“Can I see the content exclusion rules an organization has set?”
Tell an agent
Show the Copilot content exclusion rules for {org}.
List the excluded paths in {org}.
PUT /orgs/{org}/copilot/content_exclusion Set an org's Copilot content exclusion rules · Set Copilot content exclusion rules for an organization #
Ask an LLM
“How do I exclude certain file paths from Copilot suggestions in my organization?”
“Can I add new content exclusion rules for an organization?”
Tell an agent
Set the Copilot content exclusion rules for {org}.
Replace the excluded path list in {org}.
GET /orgs/{org}/copilot/metrics/reports/organization-1-day Get Copilot usage metrics for one day · Get Copilot organization usage metrics for a specific day #
Ask an LLM
“How much did my organization use Copilot on a specific day?”
“Can I download the Copilot usage report for a single day?”
Tell an agent
Get the Copilot usage metrics report for {org} for {day}.
Download the one-day Copilot usage report for {org}.
GET /orgs/{org}/copilot/metrics/reports/organization-28-day/latest Get an organization's Copilot usage report · Get Copilot organization usage metrics #
Ask an LLM
“Where can I download the 28-day organization-wide Copilot usage report?”
“How do I get a signed download link for the latest Copilot usage metrics for my enterprise?”
Tell an agent
Get the latest 28-day Copilot usage report for {org}.
Download the enterprise Copilot usage metrics report for {org}.
GET /orgs/{org}/copilot/metrics/reports/repos-1-day Get per-repository Copilot PR metrics for a day · Get Copilot organization repository report for a specific day #
Ask an LLM
“How much did each repository use Copilot on a specific day?”
“Can I get a per-repository pull request report for one day?”
Tell an agent
Get the per-repository Copilot PR report for {org} for {day}.
Show repository-level Copilot usage for {org} on {day}.
GET /orgs/{org}/copilot/metrics/reports/user-teams-1-day Get user-team join data for Copilot on a day · Get Copilot organization user-teams report for a specific day #
Ask an LLM
“Which users joined which teams in my organization on a specific day?”
“Can I get user-team membership data for one day?”
Tell an agent
Get the user-team membership report for {org} for {day}.
Show which teams each user was in on {day} in {org}.
GET /orgs/{org}/copilot/metrics/reports/users-1-day Get user-level Copilot usage for a day · Get Copilot organization users usage metrics for a specific day #
Ask an LLM
“How much did each individual user use Copilot on a specific day?”
“Can I get a per-user Copilot usage report for one day?”
Tell an agent
Get the per-user Copilot usage report for {org} for {day}.
Show individual user Copilot activity for {org} on {day}.
GET /orgs/{org}/copilot/metrics/reports/users-28-day/latest Get an organization's user-level Copilot report · Get Copilot organization users usage metrics #
Ask an LLM
“Can I see how individual users are using Copilot in my organization?”
“Where is the 28-day user-level Copilot usage report?”
Tell an agent
Get the latest 28-day user-level Copilot usage report for {org}.
Download the individual-user Copilot adoption metrics for {org}.
GET /orgs/{org}/copilot/policies/code-review Get the organization's Copilot code review policy · Get the Copilot code review policy for an organization #
Ask an LLM
“Is the organization's Copilot code review policy editable or locked by the enterprise?”
“What state is the organization's Copilot review policy in?”
Tell an agent
Show the Copilot code review policy for {org}.
Check whether {org}'s code review policy is managed by the enterprise.
PUT /orgs/{org}/copilot/policies/code-review Turn on/off the organization's Copilot code review policy · Set the Copilot code review policy for an organization #
Ask an LLM
“How do I require all repositories in my organization to use Copilot code review?”
“Can I turn off the organization-wide code review policy at the organization level?”
Tell an agent
Set the Copilot code review policy in {org} to {state}.
Make {org} use organization code review with the {state} policy.
GET /orgs/{org}/members/{username}/copilot Get a user's Copilot seat assignment · Get Copilot seat assignment details for a user #
Ask an LLM
“Which GitHub Copilot seat is a particular user assigned to?”
“When was a user's Copilot seat last active?”
Tell an agent
Show the Copilot seat details for {username} in {org}.
Check when {username} last used Copilot in {org}.
GET /orgs/{org}/teams/{team_slug}/copilot/customizations Get a team's Copilot customizations · Get Copilot customizations for a team #
Ask an LLM
“What plugins and marketplaces are assigned to a team's Copilot customizations?”
“Can I see the team-level Copilot customizations?”
Tell an agent
Show the Copilot customizations for team {team_slug} in {org}.
List the plugins assigned to {team_slug} in {org}.
PUT /orgs/{org}/teams/{team_slug}/copilot/customizations Set a team's Copilot customizations · Set Copilot customizations for a team #
Ask an LLM
“How do I assign plugins to a team's Copilot customizations?”
“Can I add extra marketplace plugins for a team?”
Tell an agent
Set the Copilot customizations for team {team_slug} in {org} to {pluginAssignments}.
Add marketplace plugins {extraKnownMarketplaces} to {team_slug} in {org}.
DELETE /orgs/{org}/teams/{team_slug}/copilot/customizations Reset a team's Copilot customizations · Delete Copilot customizations for a team #
Ask an LLM
“How do I clear the Copilot customizations a team has set?”
“What happens if I delete customizations that don't exist?”
Tell an agent destructive · confirm first
Delete the Copilot customizations for team {team_slug} in {org}.
Reset Copilot settings on team {team_slug} in {org} to the defaults.
GET /repos/{owner}/{repo}/copilot/cloud-agent/configuration Get a repo's Copilot cloud agent settings · Get Copilot cloud agent configuration for a repository conformant #
Ask an LLM
“What MCP server and firewall settings does Copilot use for a repo?”
“Which review tools are enabled on a repository's Copilot cloud agent?”
Tell an agent
Show the Copilot cloud agent configuration for {owner}/{repo}.
Get the MCP server and firewall settings for {owner}/{repo}.
GET /repos/{owner}/{repo}/copilot/code-review/settings Get a repo's Copilot code review settings · Get Copilot code review settings for a repository #
Ask an LLM
“What review effort does Copilot code review use for a repository?”
“Can I see which review tools a repo's code review settings allow?”
Tell an agent
Show the Copilot code review settings for {owner}/{repo}.
Get the review effort and severity filter for {owner}/{repo}.
PATCH /repos/{owner}/{repo}/copilot/code-review/settings Update a repo's Copilot code review settings · Update Copilot code review settings for a repository #
Ask an LLM
“How do I change the review effort a repository uses for code review?”
“Can I turn off custom instructions or MCP servers for a repo?”
Tell an agent
Set the review effort for {owner}/{repo} to {review_effort}.
Turn off custom instructions for {owner}/{repo} by setting custom_instructions_enabled to {custom_instructions_enabled}.

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
📖
Documentation
https://docs.github.com/en/rest/copilot

Specifications

Schemas & Data

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. 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 (193 KB total) ---
# Full source: https://artifacts.apis.io/github/openapi/github-copilot-api-openapi.yml