Skip to main content
Unary · Billing Lists per-user month-to-date credit usage with effective monthly budgets. Results are ordered by total credits descending so the highest spenders appear first, with user_id as a stable tiebreaker. Use cursor pagination to walk the full set for large organizations. The default SORT_FIELD_USAGE ordering supports cursor pagination over any number of users. Sorting by display name, budget, or budget utilization computes the order in memory and is limited to organizations with at most 10,000 users; beyond that, use SORT_FIELD_USAGE. Because month-to-date figures are recomputed per request, hold a date range stable across a paginated walk to keep page tokens valid. Use this method to:
  • Export per-user credit usage to external reporting
  • Identify the highest spenders in the organization
  • Track per-user budget utilization and over-budget users

Examples

  • List user usage for the current month:

Authorization

Requires billing:read_usage permission on the organization.

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.ListEnterpriseUserCreditUsageRequest

Response

gitpod.v1.ListEnterpriseUserCreditUsageResponse
CumulativeCreditUsage contains cumulative credit consumption totals.gitpod.v1.CumulativeCreditUsage
gitpod.v1.EnterpriseAIUsageByModel
gitpod.v1.ListEnterpriseUserCreditUsageRequest.Sort
gitpod.v1.PaginationRequest
gitpod.v1.PaginationResponse
gitpod.v1.UserCreditBudgetUsage