Base URL
Development:http://localhost:8000/v1Production:
https://your-domain.com:8000/v1
Authentication
Authentication is controlled by the service’sCYBORGDB_SERVICE_ROOT_KEY. When it is unset (the default), authentication is disabled — every endpoint is open and no header is required. When it is set, all endpoints except /v1/health require a credential in the X-API-Key header:
cdbk_ token minted under it (see Managing Keys).
This
X-API-Key credential is not the same as CYBORGDB_API_KEY. CYBORGDB_API_KEY is the core license key — it sets the usage tier (unset → free tier with a 1M-item-per-index cap; a paid key from the CyborgDB Admin Dashboard → unlimited) and is never sent by clients. Service request authentication is gated only by CYBORGDB_SERVICE_ROOT_KEY.Response Format
Success:Error model: API keys, index keys, and KMS
A small amount of nuance applies to error codes on index-scoped routes (anything under/v1/indexes/{index_name}/… and /v1/indexes/{upsert,query,query-binary,train,delete,…}):
Wrong-
index_key returns 401 in v0.17 (previously some paths returned 500). KMS-backed indexes that receive an unexpected index_key return 400 rather than silently ignoring it — this surfaces SDK-versus-KMS confusion early.