v56

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,21696712.2 MB
billing

Get billing usage summary for an organization

[!NOTE] This endpoint is in public preview and is subject to change.

Gets a summary report of usage for an organization. To use this endpoint, you must be an administrator of an organization within an enterprise or an organization account.

Note: Only data from the past 24 months is accessible via this endpoint.

get/organizations/{org}/settings/billing/usage/summary

Path parameters

orgstring required

The organization name. The name is not case sensitive.

Query parameters

yearinteger

If specified, only return results for a single year. The value of year is an integer with four digits representing a year. For example, 2025. Default value is the current year.

monthinteger

If specified, only return results for a single month. The value of month is an integer between 1 and 12. Default value is the current month. If no year is specified the default year is used.

dayinteger

If specified, only return results for a single day. The value of day is an integer between 1 and 31. If no year or month is specified, the default year and month are used.

repositorystring

The repository name to query for usage in the format owner/repository.

productstring

The product name to query usage for. The name is not case sensitive.

skustring

The SKU to query for usage.

Response

Response when getting a billing usage summary

organizationstring required

The unique identifier of the organization.

repositorystring

The name of the repository for the usage report.

productstring

The product for the usage report.

skustring

The SKU for the usage report.