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
| Address | https://api.hanzo.ai/v1/team/transactor/statistics |
| Method | GET |
| Operation | get_team_transactor_statistics |
| Auth | Authorization: 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.
| Field | In | Type | Required | Description |
|---|---|---|---|---|
token | query | string | — | Token is the workspace token minted by selectWorkspace. |
Response
| Status | Body | Meaning |
|---|---|---|
200 | statsOut | ok |
200 body — 6 fields.
| Field | In | Type | Always | Description |
|---|---|---|---|---|
admin | body | boolean | — | Admin is the upstream service's server-panel flag, always false here. |
metrics | body | object | — | Metrics is the upstream transactor's metrics block. |
statistics | body | statsSessions | — | |
statistics.activeSessions | body | object | — | ActiveSessions maps a workspace uuid to its connected sessions. |
statistics.activeSessions.* | body | statsUser[] | — | |
statistics.activeSessions.*[].userId | body | string | — | UserID is the account the session is authenticated as. |
Failure carries the platform error shape — see Errors.
Examples
hanzo team transactor statisticsimport { Configuration, TeamApi } from 'hanzoai';
const api = new TeamApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getTeamTransactorStatistics();from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import TeamApi
client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = TeamApi(client).get_team_transactor_statistics()cfg := cloud.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := cloud.NewAPIClient(cfg)
resp, _, err := client.TeamAPI.GetTeamTransactorStatistics(context.Background()).Execute()
if err != nil {
return err
}use hanzo_cloud::apis::{configuration::Configuration, team_api};
let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();
let result = team_api::get_team_transactor_statistics(&cfg, Default::default()).await?;import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.TeamApi;
ApiClient client = new ApiClient();
client.setRequestInterceptor(b -> b.header("Authorization", "Bearer " + System.getenv("HANZO_API_KEY")));
var result = new TeamApi(client).getTeamTransactorStatistics();curl https://api.hanzo.ai/v1/team/transactor/statistics \
-H "Authorization: Bearer $HANZO_API_KEY"The door reaches team through the team tool, which names its 18 operations with its own verbs — this one among them, under a name only the door declares. describe explains any of them:
curl -X POST https://api.hanzo.ai/v1/mcp \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "describe",
"arguments": {
"op": "get_collaborator"
}
}
}'How is this guide?