v54

latestSwagger 2.0AGPL-3.0raw.githubusercontent.com2026-08-03397565628.8 KB
Enterprise

Get user AI spend

get/api/v2/users/{user}/ai/spend

Path parameters

userstring required

User ID, username, or me

Response

OK

current_spend_microsinteger

CurrentSpendMicros is the user's spend on their effective group over the current budget period.

effective_group_idstring uuid

EffectiveGroupID is the group the spend is attributed to, falling back to the Everyone group when no budget applies. Null only when the user has no organization membership.

period_endstring date-time

PeriodEnd is the exclusive upper bound of the current budget period.

period_startstring date-time

PeriodStart is the inclusive lower bound of the current budget period.

user_idstring uuid