billing
Get all budgets
[!NOTE] This endpoint is in public preview and is subject to change.
Gets all budgets for an enterprise. The authenticated user must be an enterprise admin or billing manager. Each page returns up to 10 budgets.
get/enterprises/{enterprise}/settings/billing/budgets
Path parameters
enterprisestring required
The slug version of the enterprise name.
Query parameters
pageinteger
The page number of results to fetch.
per_pageinteger
The number of results per page (max 10).
scope'enterprise' | 'organization' | 'repository' | 'cost_center'
Filter budgets by scope type.
Response
Response when getting all budgets
Example response
{
"budgets": [
{
"id": "2066deda-923f-43f9-88d2-62395a28c0cdd",
"prevent_further_usage": true,
"budget_scope": "enterprise",
"budget_entity_name": "octocat/hello-world",
"budget_alerting": {
"will_alert": true,
"alert_recipients": [
"mona",
"lisa"
]
}
}
]
}