Skip to main content
GET
Get LLM consumption per user

Authorizations

Authorization
string
header
required

User-bound credential carrying an identity: either a session JWT or a user access token (at:*) generated from the user settings UI. Send as Authorization: Bearer <token>. The organization and the permissions applied are those of this user.

Query Parameters

period
enum<string>
default:30d

Sliding window ending now. Any other value uses 30d. Ignored when both from_date and to_date are set.

Available options:
7d,
30d,
90d
from_date
string<date-time>

Start of a custom range, ISO 8601. Used only together with to_date, and then takes precedence over period (period is returned as custom).

Maximum string length: 64
to_date
string<date-time>

End of a custom range, ISO 8601. Used only together with from_date.

Maximum string length: 64
page
integer
default:1

Page number (1-based).

Required range: x >= 1
page_size
integer
default:50

Users per page.

Required range: 1 <= x <= 200
sort_by
enum<string>
default:cost

Sort field. Any other value sorts by cost.

Available options:
cost,
tokens,
completions,
embeddings,
messages,
carbon
sort_dir
enum<string>
default:desc

Sort direction.

Available options:
asc,
desc
q
string

Only return users whose name or email matches. Does not change totals.

Maximum string length: 128
format
enum<string>
default:json

Response format.

Available options:
json,
csv

Response

Consumption per user.

users
object[]
totals
object

Whole organization over the period.

meta
object