Skip to content
Knobase

Authentication

Server-side Bearer serving keys. Setup tokens cannot call serving endpoints.

Authorization: Bearer $KNOBASE_API_KEY
Content-Type: application/json

KNOBASE_API_KEY

  • Server-side only. Never put it in a browser, client bundle, or LLM prompt.
  • Long-lived until you revoke or rotate it.
  • Scoped to one app and environment. The app is inferred from the key, not from the request body.
  • Looks like kb_…. Do not commit or log the raw value.
  • Setup or bootstrap credentials (kb_setup_…) cannot call serving endpoints.
  • Workspace management uses a separate OAuth token. A serving key cannot call /v1/workspaces or /api/mcp.

Auth errors

HTTPerrorMeaning
401missing_authorizationNo Authorization header
401malformed_tokenNot Bearer kb_…, or a setup token
401invalid_tokenKey digest is unknown
401api_key_revokedKey is revoked or inactive

Docs version v1 · implemented publisher API