检索文档
get
Use this operation to retrieve metadata about all available documents and Slack channels within the data sources.
Query parameters
pageintegerOptional
Page's index
page_sizeintegerOptional
The maximum number of documents returned in a page
Responses
200
Successful operation
application/json
get
/documents/200
Successful operation
示例请求
curl -X GET \
"https://api.rememberizer.ai/api/v1/documents/?page=1&page_size=20&integration_type=google_drive" \
-H "Authorization: Bearer YOUR_JWT_TOKEN"const getDocuments = async (page = 1, pageSize = 20, integrationType = 'google_drive') => {
const url = new URL('https://api.rememberizer.ai/api/v1/documents/');
url.searchParams.append('page', page);
url.searchParams.append('page_size', pageSize);
if (integrationType) {
url.searchParams.append('integration_type', integrationType);
}
const response = await fetch(url.toString(), {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_JWT_TOKEN'
}
});
const data = await response.json();
console.log(data);
};
getDocuments();请求参数
参数
类型
描述
page
整数
分页的页码。默认值为 1。
page_size
整数
每页的项目数量。默认值为 10。
integration_type
字符串
按集成类型过滤文档。选项:google_drive, slack, dropbox, gmail, common_knowledge
响应格式
可用的集成类型
集成类型
描述
google_drive
来自 Google Drive 的文档
slack
来自 Slack 的消息和文件
dropbox
来自 Dropbox 的文件
gmail
来自 Gmail 的电子邮件
common_knowledge
公开知识来源
此端点从您连接的数据源中检索文档列表。您可以按集成类型进行过滤,以专注于特定来源。
Last updated