Skip to main content

Knowledge Base API

Base path: /api/v1/knowledge · Requires Authorization: Bearer <jwt>

GET /api/v1/knowledge

Returns all knowledge sources for the authenticated user.

POST /api/v1/knowledge

Rate limit: 5 req/min
Response 202: { "id": "uuid", "status": "processing", "message": "File received. Chunking and embedding in progress." } Poll GET /api/v1/knowledge/:id every 3 seconds until status === "ready".

GET /api/v1/knowledge/:id

DELETE /api/v1/knowledge/:id

Deletes the source and all associated chunks from pgvector. Irreversible.
Response 200: { "success": true, "message": "Knowledge source and chunks deleted" }