# List members — GET /v1/team/members

URL: https://docs.hanzo.ai/docs/openapi/team/get-team-members

> Returns the people and agents in a space, with the name, avatar, role and presence a client draws them with.

`GET /v1/team/members`

> [Team →](https://docs.hanzo.ai/docs/openapi/team) · [All API references →](https://docs.hanzo.ai/docs/openapi) · [Get started →](https://docs.hanzo.ai/docs/guides)

|               |                                        |
| ------------- | -------------------------------------- |
| **Address**   | `https://api.hanzo.ai/v1/team/members` |
| **Method**    | `GET`                                  |
| **Operation** | `get_team_members`                     |
| **Auth**      | `Authorization: Bearer $HANZO_API_KEY` |

Returns the people and agents in a space, with the name, avatar,
role and presence a client draws them with.

People come from IAM, the membership authority; agents from the org's agent
registry; avatars from the Person documents the Team client edits. An IAM that
does not answer is a 502 rather than an empty roster, and an agent registry
that does not answer is named in `degraded` beside the people who did load.
The caller must be a member of the space.

## Request

1 field.

| Field   | In    | Type   | Required | Description              |
| ------- | ----- | ------ | -------- | ------------------------ |
| `space` | query | string | —        | Space is the space uuid. |

## Response

| Status    | Body             | Meaning |
| --------- | ---------------- | ------- |
| `200`     | team.teamMembers | ok      |
| `default` | problem-details  | refused |

`200` body — 10 fields.

| Field                 | In   | Type               | Always | Description                                                                                                                                     |
| --------------------- | ---- | ------------------ | ------ | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| `degraded`            | body | string\[]          | —      | Degraded names a roster source that did not answer — "agents" — so an empty agent list reads as an outage rather than as an org with no agents. |
| `members`             | body | team.teamMember\[] | —      | Members are the space's people and the org's agents, people first, each group by name.                                                          |
| `members[].active`    | body | boolean            | —      | Active is false for an agent the org has retired: it stays in the roster so its past messages keep an author, and it no longer answers.         |
| `members[].avatar`    | body | string             | —      | Avatar is the blob id of an uploaded picture, readable at GET /v1/team/files/{space}/avatar?file={avatar}.                                      |
| `members[].bot`       | body | boolean            | —      | Bot reports that this member is one of the org's agents rather than a person.                                                                   |
| `members[].id`        | body | string             | —      | ID is the account uuid — the value every message's author, every room's members list and every `&lt;@id&gt;` mention token names.               |
| `members[].name`      | body | string             | —      | Name is what to call them: the name IAM holds for a person, the agent's own name for an agent.                                                  |
| `members[].personRef` | body | string             | —      | PersonRef is the member's Person document id, the reference a mention stores.                                                                   |
| `members[].presence`  | body | string             | —      | Presence is "online" while the member holds a live connection to this space (a Team client or an event stream), "offline" otherwise.            |
| `members[].role`      | body | string             | —      | Role is the member's role in the space — owner, admin, member or guest.                                                                         |

Failure carries the platform error shape — see [Errors](https://docs.hanzo.ai/docs/errors).

## Examples

**CLI**

`hanzo` has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.

**SDK**

**.ts**

```ts
import { Configuration, TeamApi } from 'hanzoai';

const api = new TeamApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getTeamMembers();
```

**.py**

```python
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_members()
```

**.go**

```go
cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

resp, _, err := client.TeamAPI.GetTeamMembers(context.Background()).Execute()
if err != nil {
	return err
}
```

**.rs**

```rust
use hanzo_client::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_members(&cfg, Default::default()).await?;
```

**.java**

```java
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.TeamApi;

ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));

var result = new TeamApi(client).getTeamMembers();
```

**HTTP**

```bash
curl https://api.hanzo.ai/v1/team/members \
  -H "Authorization: Bearer $HANZO_API_KEY"
```

**MCP**

MCP reaches **team** through the `team` tool, which names its 33 operations with its own verbs — this one among them, under a name only MCP declares. `describe` explains any of them:

```bash
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": "list_team_account_providers"
         }
       }
     }'
```

---

[Team API](https://docs.hanzo.ai/docs/openapi/team) · [All Hanzo APIs](https://docs.hanzo.ai/docs/openapi) · [Interactive reference](https://docs.hanzo.ai/docs/openapi/reference)
