API Reference
4 min readThe Khub REST API lets any tool read from and write to your knowledge base. Authenticate with a workspace token, then query the knowledge endpoints.
Authentication
Send your API key as a Bearer token on every request:
Authorization: Bearer <token>
Public read tokens (prefixed kb_) can be generated from the dashboard and dropped into any .env file for read-only access.
Core endpoints
GET /api/v1/workspaces/{workspaceId}/knowledgelists knowledge items.POST /api/v1/workspaces/{workspaceId}/knowledgecreates an item.POST /api/v1/workspaces/{workspaceId}/knowledge/index-filestriggers file indexing for an item.
See the Quick start to get a workspace and token, or the MCP server docs to connect agents directly.
Next up