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

fetch('https://blackbox.dasha.ai/api/v1/rag/kb/{id}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "description": "<string>",
  "type": "Files",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "statistics": {
    "knowledgeBaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "storageByDocumentType": {},
    "documentsByStatus": {
      "Uploaded": 123,
      "Queued": 123,
      "Processing": 123,
      "Indexed": 123,
      "Failed": 123,
      "Cancelled": 123,
      "PendingDelete": 123,
      "Deleting": 123
    }
  },
  "settings": {},
  "embeddingsName": "<string>",
  "status": "Active"
}

Path Parameters

id
string<uuid>
required

Knowledge base ID

Response

OK

id
string<uuid>
customerId
string<uuid>
name
string | null
description
string | null
type
enum<string>
Available options:
Files
createdAt
string<date-time>
updatedAt
string<date-time>
statistics
object
settings
object
embeddingsName
string | null
status
enum<string>
Available options:
Active,
PendingDelete,
Deleting