> For the complete documentation index, see [llms.txt](https://relationlabs.gitbook.io/relation-one-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://relationlabs.gitbook.io/relation-one-api/api-zh/api/channel/members.md).

# 成员列表

## <mark style="color:blue;">GET</mark> api/v1/channel/members

* 说明：查询群组内的成员列表，仅群组内成员可查看。
* Header

| Field         | Type   | Remarks                                                            |
| ------------- | ------ | ------------------------------------------------------------------ |
| ApiKey        | String | 从管理员获取的[ApiKey](/relation-one-api/api-zh/guide/glossary.md#apikey) |
| Authorization | String | Bearer ${unifiedAuthToken} ,其中unifiedAuthToken来自/api/v1/auth接口的返回  |

* Request Parameters

| Field       | Type   | Remarks |
| ----------- | ------ | ------- |
| channelUuid | String | 群组的uuid |

* Request Example

```shell
curl POST 'https://api.relationlabs.ai/api/v1/channel/info?channelUuid=4f326124812c41448bc587bf6b2eaf42' \
--header 'ApiKey: <ApiKey>' \
--header 'Authorization: bearer eyJhbGciOi1JFUzI1NiJ9.eyJqdGkiOiI0MzdiN2EzZDEwMGY0ODVkOWVhMWUzZmZl1OWE1NmEyZSIsImlzcyI6InJlbGF0aW9ubGFicy5haSIsImlhdCI6MTY2NTIxNTUzNSwic3ViIjoiZGhreXEtc3FhYWEtYWFhYWotc2d6M3EtY2FpIiwiZXhwIjoxNjY1ODIwMzM1fQ.rj7KKuIcgmvaIwZ63YHnXQ4jvvI-eR2Wo7k3YEyzMu1xo8j5ezCowKDpcW0u9zIuHPFqwD0-1XPWdPLR1d1HLFw'
```

* Response Parameters

| Field | Type               | Remarks |
| ----- | ------------------ | ------- |
| code  | String             | 返回码     |
| desc  | String             | 返回信息    |
| data  | Array\[MemberInfo] | 数据      |

The MemberInfo field consists of the following subfields:

| Field      | Type    | Remarks    |
| ---------- | ------- | ---------- |
| relationId | String  | relationId |
| name       | String  | 用户名称       |
| avatar     | String  | 头像         |
| isAdmin    | boolean | 是否为管理员     |

* Response Body

```json
{
  "code": "0",
  "desc": "success",
  "data": [
    {
      "relationId": "dhkyq-sqaaa-aaaaj-sgz3q-cai",
      "name": "0x1e56",
      "avatar": "",
      "isAdmin": false
    }
  ]
}
```

* Return Code

| code  | desc                                | Remarks  |
| ----- | ----------------------------------- | -------- |
| 0     | success                             | 接口调用成功   |
| 13102 | You have been removed from the chat | 已被移除群聊   |
| 13103 | You have left the group chat        | 您已离开当前群组 |
| 13104 | Chat has been dismissed             | 当前群组已解散  |
