Okapi Okapi

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.

GitHub REST API, Announcement

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

  1. PATCH /orgs/{id}Parameter removal Stopped working
  2. PATCH /orgs/{id}Parameter removal Stopped working
  3. PATCH /orgs/{id}Parameter removal Stopped working
  4. PATCH /orgs/{id}Parameter removal Stopped working
  5. PATCH /orgs/{id}Parameter removal Stopped working
  6. PATCH /orgs/{id}Parameter removal Stopped working
  7. PATCH /orgs/{id}Parameter removal Stopped working
  8. GET /assignments/*Endpoint removal Stopped working
  9. GET /classrooms*Endpoint removal Stopped working
  10. 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.

Add to GitHub

Get notifications

Subscribe to GitHub REST API

Hear about each breaking change GitHub REST API announces, in your feed reader, calendar or Slack.

1What to follow

Provider
  • GitHub REST API

2Where to get it

/breaking-changes/feed.xml

Paste it into Feedly, Inoreader, NetNewsWire or any reader. New changes show up as they're announced.