Khub is now in Public Beta. Early access includes API keys, MCP server docs and 40% affiliate commission.Request API access
Documentation

Khub Docs

API Reference

4 min read

The 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}/knowledge lists knowledge items.
  • POST /api/v1/workspaces/{workspaceId}/knowledge creates an item.
  • POST /api/v1/workspaces/{workspaceId}/knowledge/index-files triggers 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