文書を取得
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
整数
1ページあたりのアイテム数。デフォルトは10です。
integration_type
文字列
統合タイプでドキュメントをフィルタリングします。オプション: google_drive, slack, dropbox, gmail, common_knowledge
レスポンス形式
利用可能な統合タイプ
統合タイプ
説明
google_drive
Google Driveからの文書
slack
Slackからのメッセージとファイル
dropbox
Dropboxからのファイル
gmail
Gmailからのメール
common_knowledge
公共の知識源
このエンドポイントは、接続されたデータソースから文書のリストを取得します。特定のソースに焦点を当てるために、統合タイプでフィルタリングできます。
Last updated