Skip to main content
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
Only available for enterprise organizations.

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

Requires billing:read_usage permission on the organization. Callers without it can read their own usage by setting filter.subject to themselves.

Endpoint

Send a Bearer token as described in Authentication. If your organization uses a custom management-plane domain, replace https://app.ona.com with that domain.

Request example

Request

gitpod.v1.ListEnterpriseAIUserUsageRequest

Response

gitpod.v1.ListEnterpriseAIUserUsageResponse
DateRange specifies a time period for queries.gitpod.v1.DateRange
gitpod.v1.EnterpriseAIUsage
gitpod.v1.ListEnterpriseAIUserUsageRequest.Filter
gitpod.v1.ListEnterpriseAIUserUsageRequest.Sort
gitpod.v1.PaginationRequest
gitpod.v1.PaginationResponse
gitpod.v1.Subject
gitpod.v1.UserCostBudgetUsage