Recupera documenti
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
Filter documents by integration type.
Successful operation
GET /api/v1/documents/ HTTP/1.1
Host: api.rememberizer.ai
Accept: */*
Successful operation
{
"count": 1,
"next": "text",
"previous": "text",
"results": [
{
"document_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"type": "text",
"path": "text",
"url": "text",
"id": 1,
"integration_type": "text",
"source": "text",
"status": "text",
"indexed_on": "2025-11-14T21:21:01.678Z",
"size": 1
}
]
}Esempi di Richieste
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();import requests
def get_documents(page=1, page_size=20, integration_type=None):
headers = {
"Authorization": "Bearer YOUR_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")Parametri di Richiesta
page
intero
Numero di pagina per la paginazione. Il valore predefinito è 1.
page_size
intero
Numero di elementi per pagina. Il valore predefinito è 10.
integration_type
stringa
Filtra i documenti per tipo di integrazione. Opzioni: google_drive, slack, dropbox, gmail, common_knowledge
Formato di Risposta
{
"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": "Proposta di Progetto.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": "indicizzato",
"indexed_on": "2023-06-15T10:30:00Z",
"size": 250000
},
// ... più documenti
]
}Tipi di integrazione disponibili
google_drive
Documenti da Google Drive
slack
Messaggi e file da Slack
dropbox
File da Dropbox
gmail
Email da Gmail
common_knowledge
Fonti di conoscenza pubbliche
Questo endpoint recupera un elenco di documenti dalle tue fonti di dati collegate. Puoi filtrare per tipo di integrazione per concentrarti su fonti specifiche.
Last updated