GitHub Enterprise Copilot API

Endpoints to manage Copilot using the REST API.

Operations 51

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 Get custom agents 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 #
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}/copilot/usage-records Get Copilot usage records for an enterprise #
GET /enterprises/{enterprise}/members/{username}/copilot Get Copilot seat assignment details for an enterprise user #
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/feature-policies Get feature policies for an organization #
PATCH /orgs/{org}/copilot/feature-policies Update feature policies 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/model-policies Get model policies for an organization #
PATCH /orgs/{org}/copilot/model-policies Update model policies 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 #

Documentation

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-enterprise:github-enterprise-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-enterprise-copilot-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Github Enterprise Copilot API
  version: 1.1.4
  contact:
    name: Support
    url: https://support.github.com/contact?tags=dotcom-rest-api
  license:
    name: MIT
    url: https://spdx.org/licenses/MIT
  termsOfService: https://docs.github.com/articles/github-terms-of-service
  x-github-plan: ghec
  description: 'Operations tagged copilot across 2 of this provider''s published API definitions: github-enterprise-ghec-openapi.json, github-enterprise-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.github.com
tags:


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