# GET /orgs/{}/team/{}/copilot/metrics stops working

Calls to GET /orgs/{id}/team/{id}/copilot/metrics on GitHub REST API stopped working on April 2, 2026.

## What to use instead

Use the Copilot usage metrics endpoints (/orgs/{org}/copilot/metrics/reports/... and /enterprises/{enterprise}/copilot/metrics/reports/...), which return download links to NDJSON reports.

- API: GitHub REST API (api.github.com)
- Kind: Endpoint removal
- Announced: January 29, 2026
- Takes effect: April 2, 2026
- Calls after that day: fail
- Calls it hits: `GET /orgs/{id}/team/{id}/copilot/metrics`
- Source: [Announcement](https://github.blog/changelog/2026-01-29-closing-down-notice-of-legacy-copilot-metrics-apis)
- Verified: November 6, 2026, against GitHub REST API's own pages
- Page: https://www.okapi.bot/providers/github-rest-api/breaking-changes/get-orgs-team-copilot-metrics-stops-working/

## GitHub REST API's words

> The Copilot Metrics API will sunset on April 2nd, 2026.

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
