GitHub REST API adds a cost-center membership lookup for users, organizations, repositories and enterprise teams

The new endpoint takes a resource type and name and returns the cost center's ID and name, or an empty list if the resource has none. Enterprise owners and billing managers can query anything; organiz

November 2, 2026

GitHub added a REST API endpoint called “Get cost center membership for a resource”. You supply the resource type and name (a user, organization, repository or enterprise team) and the response returns the ID and name of the cost center it belongs to. If the resource is not in a cost center, the membership list comes back empty.

Access follows role. Enterprise owners, billing managers and GitHub Apps with read access to enterprise billing can look up any resource in the enterprise. Organization owners, and users with custom roles that include read access to enterprise billing, can look up only the resources and cost centers they can already see. The changelog page does not mention rate limits.

It is a small change; our reading is that it could let finance and platform teams script checks of which repositories are billed to which cost center instead of opening the billing UI, but the changelog does not describe such a use.

Source: GitHub Changelog.