Knowledge bases
Returns a single knowledge base by id, including a documents list — each with id, type, status, filename, and created_at. Use this to inspect a KB's contents and track each document's ingestion status. Returns 404 if the KB does not exist in your project.
curl --request GET \
--url 'https://api.nabrah.ai/api/ext/kb/<knowledge_base_id>' \
--header 'X-API-Key: <your-api-key>'{
"id": "00000000-0000-4000-8000-000000000000",
"project_id": "00000000-0000-4000-8000-000000000000",
"name": "string",
"key": "string",
"desc": "string",
"document_count": 0,
"created_at": "2026-01-15T12:00:00.000Z",
"updated_at": "2026-01-15T12:00:00.000Z",
"documents": [
{
"id": "00000000-0000-4000-8000-000000000000",
"type": "file",
"status": "unknown",
"filename": "string",
"created_at": "2026-01-15T12:00:00.000Z"
}
]
}Each document moves through the ingestion pipeline:
QUEUED → EXTRACTING → CHUNKING → EMBEDDING → INDEXING → DONE (or FAILED). Only DONE documents are retrievable.
X-API-KeystringheaderrequiredYour workspace API key. Create one in the dashboard under API keys.
knowledge_base_idstringrequiredIdentifier of the knowledge base to fetch.
From POST /api/ext/kb or GET /api/ext/kb.
Successful Response
application/json
Validation Error
application/json