Récupérer des 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
GET /api/v1/documents/ HTTP/1.1
Host: api.rememberizer.ai
Accept: */*
Successful operation
{
"count": 4,
"next": "text",
"previous": "text",
"results": [
{
"name": "text",
"type": "text",
"path": "text",
"url": "text",
"id": "text",
"integration_type": "text",
"source": "text",
"status": "text",
"indexed_on": "2025-11-07T14:10:21.384Z",
"size": 89,
"status_error_message": "text",
"document_id": "text",
"created_time": "2025-11-07T14:10:21.384Z",
"pk": 1
}
]
}Exemples de Requêtes
curl -X GET \
"https://api.rememberizer.ai/api/v1/documents/?page=1&page_size=20&integration_type=google_drive" \
-H "Authorization: Bearer VOTRE_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 VOTRE_JWT_TOKEN'
}
});
const data = await response.json();
console.log(data);
};
getDocuments();import requests
def get_documents(page=1, page_size=20, integration_type=None):
headers = {
"Authorization": "Bearer VOTRE_JWT_TOKEN"
}
params = {
"page": page,
"page_size": page_size
}
if integration_type:
params["integration_type"] = integration_type
response = requests.get(
"https://api.rememberizer.ai/api/v1/documents/",
headers=headers,
params=params
)
data = response.json()
print(data)
get_documents(integration_type="google_drive")Paramètres de la requête
page
entier
Numéro de page pour la pagination. Par défaut, 1.
page_size
entier
Nombre d'éléments par page. Par défaut, 10.
integration_type
chaîne
Filtrer les documents par type d'intégration. Options : google_drive, slack, dropbox, gmail, common_knowledge
Format de Réponse
{
"count": 257,
"next": "https://api.rememberizer.ai/api/v1/documents/?page=2&page_size=20&integration_type=google_drive",
"previous": null,
"results": [
{
"document_id": "1aBcD2efGhIjK3lMnOpQrStUvWxYz",
"name": "Proposition de Projet.docx",
"type": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"path": "/Documents/Projects/Proposal.docx",
"url": "https://drive.google.com/file/d/1aBcD2efGhIjK3lMnOpQrStUvWxYz/view",
"id": 12345,
"integration_type": "google_drive",
"source": "[email protected]",
"status": "indexé",
"indexed_on": "2023-06-15T10:30:00Z",
"size": 250000
},
// ... plus de documents
]
}Types d'intégration disponibles
google_drive
Documents de Google Drive
slack
Messages et fichiers de Slack
dropbox
Fichiers de Dropbox
gmail
Emails de Gmail
common_knowledge
Sources de connaissances publiques
Ce point de terminaison récupère une liste de documents à partir de vos sources de données connectées. Vous pouvez filtrer par type d'intégration pour vous concentrer sur des sources spécifiques.
Last updated