Retrieve documents
Use this operation to retrieve metadata about all available documents and Slack channels within the data sources.
Page's index
The maximum number of documents returned in a page
Successful operation
Successful operation
Example Requests
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();Request Parameters
page
integer
Page number for pagination. Default is 1.
page_size
integer
Number of items per page. Default is 10.
integration_type
string
Filter documents by integration type. Options: google_drive, slack, dropbox, gmail, common_knowledge
Response Format
Available Integration Types
google_drive
Documents from Google Drive
slack
Messages and files from Slack
dropbox
Files from Dropbox
gmail
Emails from Gmail
common_knowledge
Public knowledge sources
This endpoint retrieves a list of documents from your connected data sources. You can filter by integration type to focus on specific sources.
Last updated