- 应用权限
- API 调用服务指南
- 事件订阅指南
- 服务端 SDK
- 鉴权管理
- 事件管理
- 通讯录
- 消息
- 群组
- 云文档
- 日历
- 视频会议
- 考勤打卡
- 审批
- 服务台
- 任务
- 邮箱
- 应用信息
- 企业信息
- 认证信息
- 个人设置
- 搜索
- AI 能力
- 管理后台
- 飞书人事(标准版)
- 飞书人事(企业版)
- 招聘
- OKR
- 实名认证
- 智能门禁
- 企业百科
- 妙记
- 工作台
- 企业
文档搜素
POST
https://open.feishu.cn/open-apis/suite/docs-api/search/object
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://open.feishu.cn/open-apis/suite/docs-api/search/object' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"search_key": "search key",
"count": 10,
"offset": 0,
"owner_ids": ["xxx", "xxx"],
"chat_ids": ["xxx", "xxx"],
"docs_types": ["doc", "sheet"]
}'
响应示例响应示例
{
"code": 0,
"msg": "Success",
"data": {
"docs_entities": [
{
"docs_token": "xxx",
"docs_type": "doc",
"title": "xxx",
"owner_id": "xxx"
},
{
"docs_token": "xxx",
"docs_type": "sheet",
"title": "xxx",
"owner_id": "xxx"
}
],
"has_more": false,
"total": 10
}
}
请求参数
Header 参数
Authorization
string
必需
默认值:
Bearer {{access_token}}
Content-Type
string
必需
默认值:
application/json; charset=utf-8
Body 参数application/json
search_key
string
搜索关键字
count
integer
可选
搜索返回数量,0 <= count <= 50
offset
integer
可选
owner_ids
array[string]
可选
chat_ids
array[string]
可选
docs_types
array[string]
可选
示例
返回响应
🟢200成功
application/json
Body
code
integer
必需
msg
string
必需
data
object
必需
docs_entities
array [object {4}]
搜索匹配文档列表
has_more
boolean
必需
total
integer
搜索匹配文档总数量

【飞书】API开发者 微信交流群
用微信扫右侧二维码,加入【飞书】API开发者 交流群,互助沟通

