GitHub has enhanced its billing APIs with new features to help users programmatically manage budgets, monitor usage, and access cost center information.
Previously, budgets were only adjustable through the user interface. Now, you can create, update, delete budgets, modify budget amounts, and configure alert notifications all through the API. A temporary limit of 50 budgets per account applies.
"This API is now available in public preview."
For detailed instructions, see the documentation on REST API endpoints for budgets.
The new Usage Summary API allows you to retrieve usage data for your account, filtering by organizations, repositories, cost centers, products, or SKUs. Usage can be examined by year, month, or day.
More information is available in the documentation on the Usage Summary REST API endpoint.
Join the discussion within GitHub Community.
Author's summary: GitHub’s updated billing APIs now offer full programmatic control over budget management and detailed usage tracking, enhancing financial oversight and automation.
Would you like the HTML output optimized for mobile or desktop viewing?