Cortex API
integerintegerintegerintegerintegerinteger
booleanbooleanbooleanboolean
Get knowledge base statistics
GET
http://localhost:8000
/api/stats
Returns counts of documents, chunks, entities, and relationships
Get knowledge base statistics › Responses
200
Statistics retrieved
document_countchunk_countentity_countrelationship_countper_chunk_relationship_countRelations discovered in Step 1 (per-chunk extraction)
collection_countGet UI feature flags
GET
http://localhost:8000
/api/features
Lightweight, non-admin feature flags for gating UI features (Collections, Skills, Git integration, Web import) without exposing the full system configuration. Requires read permission.
Get UI feature flags › Responses
200
Feature flags
enable_collectionsenable_skillsenable_git_integrationenable_web_crawlTrue only when the master switch is on AND a crawl service is configured