GEThttps://api.account.tencentid.com/openapi/v3/contacts/groups名称 | 类型 | 必填 | 描述 |
Authorization | string | 是 | 值格式: Bearer {{access_token}} 支持鉴权类型: |
Content-Type | string | 是 | 固定值: application/json; charset=utf-8 |
名称 | 类型 | 必填 | 描述 |
page_size | int | 是 | 每页数量,取值范围 [1, 100]。 示例值:10 |
page_token | string | 否 | 分页 token,首次请求可不传 |
参数名称 | 类型 | 描述 |
groups | array<object> | 用户组列表(group_id、name、description、alias_id、group_members_count) |
└ group_id | string | 用户组 ID |
└ name | string | 用户组名称 |
└ description | string | 用户组描述 |
└ alias_id | string | 用户组别名 ID |
└ group_members_count | object | 成员数量统计,含 user_count;无成员时返回空对象 {} |
has_more | bool | 是否还有下一页 |
page_token | string | 下一页游标 |
trace_id | string | 唯一请求 ID |
GET https://api.account.tencentid.com/openapi/v3/contacts/groups?page_size=10Authorization: Bearer {access_token}
{"code": 0,"msg": "ok","trace_id": "67fdcad3330f120ba5b260efe3dcdf86","data": {"groups": [{"group_id": "15039************94","name": "AI验证组2","description": "验证","alias_id": "ai*****98","group_members_count": { "user_count": 42 }}],"has_more": false,"page_token": ""}}
{"code": 10030,"msg": "invalid ListUserGroupsByCursorRequest.PageSize: value must be inside range [1, 100]","data": null}
错误码 | 描述 |
203000 | 用户组不存在 |
10030 | 参数不正确(page_size 缺失或越界,HTTP 400) |
文档反馈