Hanzo
OpenapiTeam

Statistics returns the transactor's live sessions for the workspace the… — GET /v1/team/transactor/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/statistics

Addresshttps://api.hanzo.ai/v1/team/transactor/statistics
MethodGET
Operationget_team_transactor_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
tokenquerystringToken is the workspace token minted by selectWorkspace.

Response

StatusBodyMeaning
200statsOutok

200 body — 6 fields.

FieldInTypeAlwaysDescription
adminbodybooleanAdmin is the upstream service's server-panel flag, always false here.
metricsbodyobjectMetrics is the upstream transactor's metrics block.
statisticsbodystatsSessions
statistics.activeSessionsbodyobjectActiveSessions maps a workspace uuid to its connected sessions.
statistics.activeSessions.*bodystatsUser[]
statistics.activeSessions.*[].userIdbodystringUserID is the account the session is authenticated as.

Failure carries the platform error shape — see Errors.

Examples

hanzo team transactor statistics

Team API · All Hanzo APIs · Interactive reference

How is this guide?

On this page