Skip to main content
GET
/
api
/
v1
/
rag
/
document
/
{id}
Get document details with status
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://blackbox.dasha.ai/api/v1/rag/document/{id}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "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"
}

Path Parameters

id
string<uuid>
required

Document ID

Response

OK

documentId
string<uuid>
knowledgeBaseId
string<uuid>
originalFileName
string | null
contentType
string | null
sizeBytes
integer<int64>
contentHash
string | null
status
enum<string>
Available options:
Uploaded,
Queued,
Processing,
Indexed,
Failed,
Cancelled,
PendingDelete,
Deleting
processingStartedAt
string<date-time> | null
processingCompletedAt
string<date-time> | null
errorMessage
string | null
metadata
object
createdAt
string<date-time>
lastUpdatedAt
string<date-time>