GitHub REST API
GET /orgs/{id}/team/{id}/copilot/usage endpoint removal
Deprecated, no dateSubscribe to GitHub REST APIShare
GitHub REST API deprecated GET /orgs/{id}/team/{id}/copilot/usage without giving a shutdown date yet.
Calls it hits
GET /orgs/{id}/team/{id}/copilot/usage
What to use instead of these calls
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/...).
In 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.
Facts
- 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
- Source
- Announcement
- Last updated
- Verified
- , against GitHub REST API's own pages
Questions
When does this change take effect?
GitHub REST API deprecated GET /orgs/{id}/team/{id}/copilot/usage without giving a shutdown date yet.
Do these calls still work?
Yes, they still work: GitHub REST API has not given a shutdown date yet.
How do I find the calls this hits in my code?
Okapi reads your repository, finds the calls this change hits and opens a pull request with the fix. It never commits to your branches: every change comes as a pull request you review.
More from GitHub REST API 10
-
PATCH /orgs/{id}Parameter removal Stopped working -
PATCH /orgs/{id}Parameter removal Stopped working -
PATCH /orgs/{id}Parameter removal Stopped working -
PATCH /orgs/{id}Parameter removal Stopped working -
PATCH /orgs/{id}Parameter removal Stopped working -
PATCH /orgs/{id}Parameter removal Stopped working -
PATCH /orgs/{id}Parameter removal Stopped working -
GET /assignments/*Endpoint removal Stopped working -
GET /classrooms*Endpoint removal Stopped working -
GET /repos/{id}/{id}/dependency-graph/sbomEndpoint removal Stops workingin 7 days
Is your code calling this?
Okapi finds the calls this change hits in your repo and opens the pull request with the fix.