AI Gateway
Get an AI Gateway budget's current period
Get the active accounting window, enforced capacity, and current spend.
get/api/v2/budgets/{id}/current-period
Request
- Base URLhttps://api.datadoghq.com
- Auth
- API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
- or OAuth 2Authorization code/oauth2/v1/authorizeToken URL/oauth2/v1/tokenScopesai_gateway_config_read
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring uuid required
Budget UUID.
Response
OK
Example response
{
"data": {
"attributes": {
"budget_id": "11111111-1111-1111-1111-111111111111",
"current_spend_microcents": 25000000,
"default_capacity_microcents": 100000000,
"effective_capacity_microcents": 120000000,
"monitor_id": 12345678,
"window_end": "2026-08-28T00:00:00Z",
"window_start": "2026-08-27T00:00:00Z"
},
"id": "11111111-1111-1111-1111-111111111111",
"type": "budget-periods"
}
}Changes
Changes to this operation have not been checked yet.