# GET /enterprises/{}/team/{}/copilot/usage stops working

GitHub REST API deprecated GET /enterprises/{id}/team/{id}/copilot/usage without giving a shutdown date yet.

## What to use instead

The page points to the Copilot /metrics endpoints, themselves closed on April 2, 2026: use the Copilot usage metrics reports (/orgs/{org}/copilot/metrics/reports/...).

- API: GitHub REST API (api.github.com)
- Kind: Endpoint removal
- Announced: February 21, 2025
- Takes effect: no date given yet
- Calls after that day: fail
- Calls it hits: `GET /enterprises/{id}/team/{id}/copilot/usage`
- Source: [Announcement](https://github.blog/changelog/2025-02-21-deprecation-of-beta-github-copilot-usage-api-endpoint)
- Verified: November 6, 2026, against GitHub REST API's own pages
- Page: https://www.okapi.bot/providers/github-rest-api/breaking-changes/get-enterprises-team-copilot-usage-stops-working/

## GitHub REST API's words

> Beginning February 2025, the beta Copilot /usage endpoints will be deprecated. No new data will be inserted for retrieval via the beta /usage endpoints. This endpoint will be accessible through February, but the 28 day retention policy will remain.

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