Hanzo
OpenapiO11y

Lists end users — gen_ai spans grouped by user.id, with their session, trace…

Lists end users — gen_ai spans grouped by user.id, with their session, trace and observation counts, tokens and cost.

GET /v1/o11y/llm/users

Addresshttps://api.hanzo.ai/v1/o11y/llm/users
MethodGET
OperationListLLMUsers
AuthAuthorization: Bearer $HANZO_API_KEY

Lists end users — gen_ai spans grouped by user.id, with their session, trace and observation counts, tokens and cost.

Callers need the viewer role; the runtime's own gate enforces it.

Request

9 fields.

FieldInTypeRequiredDescription
startqueryintegerStart is the start of the window as a unix-millisecond epoch.
endqueryintegerEnd is the end of the window as a unix-millisecond epoch.
traceIdquerystringTraceID narrows the view to one trace.
sessionIdquerystringSessionID narrows the view to one conversation.
userIdquerystringUserID narrows the view to one end user.
namequerystringName narrows the view to observations of one name.
modelquerystringModel narrows the view to one model.
offsetqueryintegerOffset is how many rows to skip, for paging.
limitqueryintegerLimit caps how many rows come back.

Response

StatusBodyMeaning
200o11y.O11yLLMUsersOutok

200 body — 13 fields.

FieldInTypeAlwaysDescription
databodyo11y.O11yLLMUsersPage
data.itemsbodyo11y.O11yLLMUser[]Items are the end users, newest first.
data.items[].completionTokensbodyintegerCompletionTokens is their total output tokens.
data.items[].idbodystringID is the end user's id (user.id).
data.items[].observationsbodyintegerObservations is how many observations they produced.
data.items[].promptTokensbodyintegerPromptTokens is their total input tokens.
data.items[].sessionsbodyintegerSessions is how many conversations they had.
data.items[].totalCostbodynumberTotalCost is their total cost.
data.items[].totalTokensbodyintegerTotalTokens is their total tokens.
data.items[].tracesbodyintegerTraces is how many traces they produced.
data.limitbodyintegerLimit is the page cap the read ran with.
data.offsetbodyintegerOffset is the row offset this page started at.
statusbodystringStatus is "success".

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y llm users

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page