Unary · Billing
Lists enterprise AI usage grouped by user with effective monthly budget data.
Reports BYOK token spend (cost and tokens) for each user and service
account with attributed usage in the date range, including each
subject’s effective monthly budget. Usage not attributed to a user or
service account is excluded, so the sum across subjects can be less
than the organization totals from GetEnterpriseAIUsageSummary. The
credits field is not populated by this endpoint.
Budget fields (month_to_date_usage, utilization_percent, over_budget)
are computed from usage inside the requested date range measured
against the monthly limit. Send a range that starts on the first day
of the month for true month-to-date figures.
Use this method to:
- Export per-user BYOK AI spend to external reporting
- Identify the highest spenders in the organization
- Track per-user budget utilization and over-budget users
Examples
-
List user usage for January:
Returns per-user BYOK spend with effective budgets, highest spend
first. Both dates are inclusive and the range must not exceed 31 days.
Authorization
Requiresbilling:read_usage permission on the organization. Callers
without it can read their own usage by setting filter.subject to
themselves.
Endpoint
https://app.ona.com with that domain.
Request example
Request
gitpod.v1.ListEnterpriseAIUserUsageRequest
Response
gitpod.v1.ListEnterpriseAIUserUsageResponse
Related types
DateRange
DateRange
DateRange specifies a time period for queries.
gitpod.v1.DateRangeEnterpriseAIUsage
EnterpriseAIUsage
gitpod.v1.EnterpriseAIUsageFilter
Filter
gitpod.v1.ListEnterpriseAIUserUsageRequest.FilterSort
Sort
gitpod.v1.ListEnterpriseAIUserUsageRequest.SortPaginationRequest
PaginationRequest
gitpod.v1.PaginationRequestPaginationResponse
PaginationResponse
gitpod.v1.PaginationResponseSubject
Subject
gitpod.v1.SubjectUserCostBudgetUsage
UserCostBudgetUsage
gitpod.v1.UserCostBudgetUsageBillingCurrency
BillingCurrency
EnterpriseAIUserBudgetPolicySource
EnterpriseAIUserBudgetPolicySource
SortField
SortField
Principal
Principal
SortOrder
SortOrder