Get usage breakdown by detected session
Changed onReturns a bounded page of request, token, and cost aggregates for detected, user-path-scoped sessions. Requests and tokens include local-cache hits; costs represent provider spend only. Usage without a detected session is omitted.
Request
- Base URLhttp://localhost:8080
- URLhttp://localhost:8080/admin/usage/sessions
- AuthHTTP bearer
Query parameters
Number of days (default 30)
Start date (YYYY-MM-DD)
End date (YYYY-MM-DD)
Filter by exact model names; repeat or comma-separate for several
Filter by provider names or types; repeat or comma-separate for several
Filter by request labels (exact match); repeat for several
Filter by exact request endpoints, e.g. /v1/chat/completions,/v1/messages; repeat or comma-separate for several
Filter by comma-separated operations, e.g. chat_completions,embeddings
Filter by exact detected session ID
Filter by managed auth key IDs; repeat or comma-separate for several
Filter by tracked user path subtrees; repeat for several
Page size (default 50, max 200)
Offset for pagination
Response
OK
Changes
- info
for the
queryrequest parameterauth_key_id, the type was generalized fromstringtoarray - info
for the
queryrequest parameterendpoint, the type was generalized fromstringtoarray - info
for the
queryrequest parameterlabel, the type was generalized fromstringtoarray - info
for the
queryrequest parametermodel, the type was generalized fromstringtoarray - info
for the
queryrequest parameterprovider, the type was generalized fromstringtoarray - info
for the
queryrequest parameteruser_path, the type was generalized fromstringtoarray
- info
- info
added the optional property
//to the response with the status
- info