Okapi Okapi

GitHub REST API GET /orgs/{id}/team/{id}/copilot/metrics endpoint removal

Stopped workingSubscribe to GitHub REST APIShare

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


Calls it hits

  • GET /orgs/{id}/team/{id}/copilot/metrics

What to use instead of these calls

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

In GitHub REST API's words

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

GitHub REST API, Announcement

Facts

API
GitHub REST API api.github.com
Kind
Endpoint removal
Announced
January 29, 2026
Takes effect
April 2, 2026
Calls after that day
Fail
Source
Announcement
Last updated
Verified
, against GitHub REST API's own pages

Questions

When does this change take effect?

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

What happens to calls after April 2, 2026?

They have failed since April 2, 2026.

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. GET /enterprises/{id}/copilot/metricsEndpoint removal Stopped working
  2. GET /enterprises/{id}/team/{id}/copilot/metricsEndpoint removal Stopped working
  3. GET /orgs/{id}/copilot/metricsEndpoint 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. PATCH /orgs/{id}Parameter removal Stopped working
  9. PATCH /orgs/{id}Parameter removal Stopped working
  10. PATCH /orgs/{id}Parameter removal Stopped working

You fixed this one by hand.

Okapi opens the pull request with the fix before the next breaking change reaches your code.

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.