Hanzo AI
OpenapiTeam

List statistics

Statistics returns the transactor's live sessions for the workspace the caller's credential names — the endpoint the front's workspace switcher and server…

GET /v1/team/transactor/api/v1/statistics

Addresshttps://api.hanzo.ai/v1/team/transactor/api/v1/statistics
MethodGET
Operationget_team_transactor_api_v1_statistics
AuthAuthorization: Bearer $HANZO_API_KEY

Statistics returns the transactor's live sessions for the workspace the caller's credential names — the endpoint the front's workspace switcher and server panel poll on the transactor base. token carries the same two lanes the socket's path segment does: a workspace UUID names the workspace and is authorized against the membership rows, an HS256 workspace token names it in its signed claims. activeSessions carries ONLY that one workspace, never another tenant's sessions. An unverifiable credential, or one the caller is no member under, is 401.

Request

1 field.

FieldInTypeRequiredDescription
tokenquerystring—Token is the workspace token minted by selectWorkspace.

Response

StatusBodyMeaning
200statsOutok

200 body — 6 fields.

FieldInTypeAlwaysDescription
adminbodyboolean—Admin is the upstream service's server-panel flag, always false here.
metricsbodyobject—Metrics is the upstream transactor's metrics block.
statisticsbodystatsSessions—
statistics.activeSessionsbodyobject—ActiveSessions maps a workspace uuid to its connected sessions.
statistics.activeSessions.*bodystatsUser[]—
statistics.activeSessions.*[].userIdbodystring—UserID is the account the session is authenticated as.

Failure carries the platform error shape — see Errors.

Examples

hanzo team transactor api v1 statistics

Team API · All Hanzo APIs · Interactive reference

How is this guide?

On this page