- 概述
- 认证
- 智能体(Agent)
- 对话(Conversation)
- 语音(Voice)
- 形象(Avatar)
- 工具(Tool)
- 知识库(Datastore)
- 身份
- 自主任务
- 创建智能体POST
- 修改智能体信息PATCH
- 删除给定智能体DELETE
- 获取智能体列表GET
- 获取指定智能体GET
- 形象(Avatar)
- 声音(Voice)
- 凭证(Credentials)
- 身份(Identity)
- 模型(Model)
- 数据集(Datastore)
- 文档(Document)
- 数据源(Datasource)
- 获取给定数据集详情GET
- 获取数据集列表GET
- 创建数据集POST
- 删除给定数据集DELETE
- 更新数据集PATCH
- 提示词(Prompt)
- 数据源(Datasource)
- 集成(Integration)
- 图像(Image)
- 工具(Tool)
- 工具集(Toolkit)
- 流程(Flow)
获取数据源列表
GET
/datastores/{datastore_id}/datasources
请求参数
Path 参数
datastore_id
string
数据集ID
Query 参数
size
integer
必需
示例值:
20
cursor
string
翻页游标
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.openbot.chat/openapi/v1/datastores//datasources?size=20&cursor='
返回响应
🟢200成功
application/json
Body
items
array[object (Datasource) {11}]
必需
id
string
必需
name
string
数据源名称
type
string
数据源类型
status
string
数据源状态
last_sync
null
最后同步时间
options
object
数据源配置
chunks
integer
分片数量
size
integer
总容量
datastore_id
string
数据集ID
created_at
string
创建时间
updated_at
string
最后更新时间
next_page
string
下一页游标
presious_page
string
上一页游标
total
string
总记录数
示例
{
"items": [
{
"id": "string",
"name": "string",
"type": "string",
"status": "string",
"last_sync": null,
"options": {
"url": "string"
},
"chunks": 0,
"size": 0,
"datastore_id": "string",
"created_at": "string",
"updated_at": "string"
}
],
"next_page": "string",
"presious_page": "string",
"total": "string"
}
修改于 2023-05-31 12:47:16