Skip to content

获取知识库图像

该接口用于获取知识库图像。

请求

项目
HTTP URLhttps://open.feishu.cn/open-apis/helpdesk/v1/faqs/:id/image/:image_key
HTTP MethodGET
接口频率限制特殊频控
支持的应用类型custom
权限要求 调用该 API 所需的权限。开启其中任意一项权限即可调用helpdesk:all:readonly 获取服务台资源详情

请求头

名称类型必填描述
Authorizationstringtenant_access_token 值格式:"Bearer access_token" 示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560" 了解更多:如何选择与获取 access token

Tip: 服务台请求Header中还需添加“服务台token”参数:

Key: X-Lark-Helpdesk-Authorization

Value: base64(helpdesk_id:helpdesk_token),通过base64加密将helpdesk_id和helpdesk_token用':'连接而成的字符串。

了解更多:获取与使用服务台token

路径参数

名称类型描述
idstring知识库ID
示例值:"12345"
image_keystring图像key
示例值:"img_b07ffac0-19c1-48a3-afca-599f8ea825fj"

响应

HTTP状态码为 200 时,表示成功

返回文件二进制流

错误码

HTTP状态码错误码描述排查建议
400154000Bad request, please check your request body请求不合法,请检查参数
403154003Please check you have the correct access检查是否申请正确权限
404154004Resource not found资源不存在,请检查ID值
500155000Internal error内部错误,请联系我们

内容来源:飞书开放平台 · 自动爬取整理