Public preview of API for .CSV usage reports #186162
Replies: 1 comment
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Note
This feature graduated from private to public preview on February 17, 2026 (changelog).
Overview
Enterprises can now programmatically request and download billing usage report CSVs via the REST API, eliminating the need to request usage reports in the UI and receive them via email. The API is currently available in private preview by request.
Prerequisites
manage_billing:enterprisescopeSummary
The following report types are available via the API: Report types
detailedsummarizedpremium_requestEndpoints
1. Request a report (POST)
Request Parameters:
report_typedetailed,summarized, orpremium_requeststart_dateYYYY-MM-DDformatend_dateYYYY-MM-DDformat; defaults to today (UTC) if omittedsend_emailfalse(no email sent). Set totrueto receive an email with download links when the report completes.Response (202 Accepted):
{ "id": "834264f8-a124-435c-a791-051752537399", "report_type": "summarized", "status": "processing", "download_urls": [], ... }2. Get Report Status & Download URL (GET single)
Response when complete:
{ "id": "834264f8-a124-435c-a791-051752537399", "status": "completed", "download_urls": [ "https://mbproduction.blob.core.windows.net/billing-metered-exports-reports/...csv?sp=r&st=...&sig=..." ], ... }Polling: Average report generation time is 3 minutes. Poll every 30 seconds until
statuschanges from"processing"to"completed".3. Download the CSV
Once you have the URL, download directly:
List All Reports (GET list)
Note: This endpoint intentionally does not include
download_urls. You must fetch individual reports to get download links.GitHub Enterprise Billing Report Download Script
Known Issues
"download_urls": []is included in the response even when blank; this will be removed in a future update.Requesting access and providing feedback
Please report any issues, unexpected behavior, or suggestions below!
Beta Was this translation helpful? Give feedback.
All reactions