const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://blackbox.dasha.ai/api/v1/rag/document', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"items": [
{
"documentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"knowledgeBaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"originalFileName": "<string>",
"contentType": "<string>",
"sizeBytes": 123,
"contentHash": "<string>",
"status": "Uploaded",
"processingStartedAt": "2023-11-07T05:31:56Z",
"processingCompletedAt": "2023-11-07T05:31:56Z",
"errorMessage": "<string>",
"metadata": {},
"createdAt": "2023-11-07T05:31:56Z",
"lastUpdatedAt": "2023-11-07T05:31:56Z"
}
],
"totalItems": 123
}const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://blackbox.dasha.ai/api/v1/rag/document', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"items": [
{
"documentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"knowledgeBaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"originalFileName": "<string>",
"contentType": "<string>",
"sizeBytes": 123,
"contentHash": "<string>",
"status": "Uploaded",
"processingStartedAt": "2023-11-07T05:31:56Z",
"processingCompletedAt": "2023-11-07T05:31:56Z",
"errorMessage": "<string>",
"metadata": {},
"createdAt": "2023-11-07T05:31:56Z",
"lastUpdatedAt": "2023-11-07T05:31:56Z"
}
],
"totalItems": 123
}Knowledge base ID
Filter by status (optional)
Uploaded, Queued, Processing, Indexed, Failed, Cancelled, PendingDelete, Deleting Optional, skip N records. Default 0
0 <= x <= 2147483647Optional, take M records. Default 20
1 <= x <= 1000Was this page helpful?