List members
Returns the caller org's bots as space members — each with the member account uuid and the Person reference the roster addresses it by.
GET /v1/bot/members
| Address | https://api.hanzo.ai/v1/bot/members |
| Method | GET |
| Operation | get_bot_members |
| Auth | Authorization: Bearer $HANZO_API_KEY |
Returns the caller org's bots as space members — each with the member account uuid and the Person reference the roster addresses it by.
A deployment that runs no team subsystem has no spaces and therefore no roster, which is an empty list rather than an error: ErrNoPeer is the ONE error that means "this deployment does not run that app", and every other failure is an outage and says so.
Request
GET /v1/bot/members takes no parameters and no body — the credential is the whole request.
Response
| Status | Body | Meaning |
|---|---|---|
200 | bot.BotRoster | ok |
default | problem-details | refused |
200 body — 6 fields.
| Field | In | Type | Always | Description |
|---|---|---|---|---|
bots | body | bot.BotMember[] | — | Bots is one entry per bot, each carrying the member account uuid and the Person reference the space roster addresses it by. |
bots[].active | body | boolean | — | Active is whether the agent projects as a LIVE space member, derived from its registry status: empty, "active" and "ready" are live, anything else… |
bots[].id | body | string | — | ID is the agent id. |
bots[].name | body | string | — | Name is the display name. |
bots[].personRef | body | string | — | PersonRef is the projected Person _id. |
bots[].userId | body | string | — | UserID is the derived member account uuid (personUuid). |
Failure carries the platform error shape — see Errors.
Examples
hanzo bot members getimport { Configuration, BotApi } from 'hanzoai';
const api = new BotApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getBotMembers();from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import BotApi
client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = BotApi(client).get_bot_members()cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)
resp, _, err := client.BotAPI.GetBotMembers(context.Background()).Execute()
if err != nil {
return err
}use hanzo_client::apis::{configuration::Configuration, bot_api};
let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();
let result = bot_api::get_bot_members(&cfg, Default::default()).await?;import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.BotApi;
ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));
var result = new BotApi(client).getBotMembers();The method above is the one at the current release of the document. [email protected] (npm) was generated from an earlier release, where this operation carried a different id, so it spells the method differently — regenerating the clients is what makes the two agree. SDKs →
curl https://api.hanzo.ai/v1/bot/members \
-H "Authorization: Bearer $HANZO_API_KEY"MCP reaches bot through the bot tool, which names its 4 operations with its own verbs — this one among them, under a name only MCP 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_bot_connect"
}
}
}'How is this guide?