Skip to main content
GET
Error

Query Parameters

start_date
string

Start date (YYYY-MM-DD) for total cost calculation

end_date
string

End date (YYYY-MM-DD) for total cost calculation

Response

OK

budget
number
budget_start_date
string
currency
string

Currency is the currency of Spent: the one currency of the period's spend (a budget's currency is implied by its spend). Empty when there is no spend, or when the period mixes currencies.

entity_id
integer
entity_type
string

"LLM" or "App"

mixed_currency_spend
object

MixedCurrencySpend is set when the period mixes currencies: the spend by currency. Costs are not converted, so Spent and Usage are 0 and the budget refuses requests.

name
string
period_end
string
period_start
string

PeriodStart and PeriodEnd are the current budget period Spent covers, as enforcement computes it (budget.Period): PeriodEnd is the start of the next period (exclusive).

spent
number
total_cost
number

cost for the specified date range

total_tokens
integer

total tokens for the specified date range

usage
number

percentage

user_email
string

Email of the user who owns the app (pointer to handle null case)

user_id
integer

ID of the user who owns the app