Back to GitHub API
GitHub API

Remove GET /orgs/{org}/copilot/metrics and GET /orgs/{org}/team/{team_slug}/copilot/metrics endpoints

BreakingBreaking change

This is a breaking change — integrations that rely on the affected behaviour will need updates before the change rolls out.

What changed

Two Copilot metrics endpoints have been removed from the spec:

  • GET /orgs/{org}/copilot/metrics (operationId copilot/copilot-metrics-for-organization)
  • GET /orgs/{org}/team/{team_slug}/copilot/metrics (operationId copilot/copilot-metrics-for-team)

Any clients or SDK calls targeting these endpoints will receive 404s. Additionally, the usage_metrics_api_disabled response component and the code_scanning_upload rate-limit field were removed. The description for GET /orgs/{org}/artifacts/{subject_digest}/metadata/storage-records also notes a changed required permission: fine-grained tokens now need artifact-metadata:read instead of content:read.

Open the source documentation