获取群信息
GET
/open-apis/im/v1/chats/{chat_id}
自建应用商店应用
错误码
HTTP状态码 | 错误码 | 描述 | 排查建议 |
---|---|---|---|
400 | 232004 | Such an app does NOT exist. | 作为操作者的 app_id 不存在,请联系技术支持。 |
400 | 232006 | Your request specifies a chat_id which is invalid. | 无效的 chat_id,请检查chat_id是否正确。 |
400 | 232010 | Operator and chat can NOT be in different tenants. | 操作者和被操作的群组应该在同一租户下。 |
400 | 232011 | Operator can NOT be out of the chat. | 操作者需要在群组中。 |
400 | 232025 | Bot ability is not activated. | 应用需要开启机器人能力。 |
400 | 232033 | The operator or invited bots does NOT have the authority to manage external chats without the scope. | 没有权限操作外部群。 |
400 | 232034 | The app is unavailable or inactivated by the tenant. | 应用在本租户下未安装或未启用。 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://open.feishu.cn/open-apis/im/v1/chats/oc_a0553eda9014c201e6969b478895c230' \
--header 'Authorization;' \
--header 'Content-Type: text/plain' \
--data-raw 'curl --location --request GET '\''https://open.feishu.cn/open-apis/im/v1/chats/oc_84983ff6516d731e5b5f68d4ea2e1da5?user_id_type=open_id'\'' \
--header '\''Authorization: Bearer t-f6a6b2a3a0ddee933a770f7d8678f8f7553bb2a8'\'''
响应示例响应示例
{
"code": 0,
"msg": "success",
"data": {
"avatar": "https://p3-lark-file.byteimg.com/img/lark-avatar-staging/default-avatar_44ae0ca3-e140-494b-956f-78091e348435~100x100.jpg",
"name": "测试群名称",
"description": "测试群描述",
"i18n_names": {
"zh_cn": "群聊",
"en_us": "group chat",
"ja_jp": "グループチャット"
},
"add_member_permission": "all_members",
"share_card_permission": "allowed",
"at_all_permission": "all_members",
"edit_permission": "all_members",
"owner_id_type": "user_id",
"owner_id": "4d7a3c6g",
"chat_mode": "group",
"chat_type": "private",
"chat_tag": "inner",
"join_message_visibility": "only_owner",
"leave_message_visibility": "only_owner",
"membership_approval": "no_approval_required",
"moderation_permission": "all_members",
"external": false,
"tenant_key": "736588c9260f175e"
}
}
请求参数
Path 参数
chat_id
string
必需
示例值:
oc_a0553eda9014c201e6969b478895c230
Header 参数
Authorization
string
必需
默认值:
Bearer {{access_token}}
Body 参数text/plain
返回响应
修改于 2023-01-12 10:22:16