We’re expanding our billing APIs with new capabilities to help you programmatically manage budgets, track usage, and access cost center data.
Manage budgets via APIs
You can now manage the full lifecycle of budgets via API. Previously, budgets could only be managed through the UI. Now, you can programmatically create, update, and delete budgets, as well as adjust the budget amount and alert notifications. There is currently a temporary limit of 50 budgets per account. This API is now available in public preview.
For more details, refer to our documentation on REST API endpoints for budgets.
Track usage with the new Usage summary API
The new Usage summary API allows you to retrieve usage information for your entire account or filter by specific organizations, repositories, cost centers, products, or SKUs. Usage can be queried by year, month, or day. This API is now available in public preview.
For more details, refer to our documentation on the Usage summary REST API endpoint.
Additional improvements
Who can use these features
- Enterprise owners and billing managers on GitHub Enterprise plans.
 - Organization owners on GitHub Team plans.
 - Individuals on personal plans.
 
Join the discussion within GitHub Community.

Source link

