Interface UsageService

    • Constructor Detail

    • Method Detail

      • list

         UsageListPage list(UsageListParams params)

        Get token usage across a date range, broken out by dimension.

        Returns one row per combination of the requested group_by[] dimensions (and time bucket, when time_bucket_width is set) that has usage in the range, ranked by the order_by metric or ordered by time bucket; every combination is returned across pages. With no group_by[] and no time_bucket_width, a single row aggregates the whole range. Includes all usage, whether or not it is attributable to a seat user. Requires an API key with the read:analytics scope, or an Admin API key.