Client class provides an interface to connect to the CyborgDB service and manage encrypted indexes. It allows you to create, list, and interact with encrypted indexes through the CyborgDB REST API.
Creating the Client
To create the client, provide the service URL. An API key is only needed when the service has authentication enabled (see API Key Authentication below); against a service running with auth disabled — the default — you can omit it:API Key Authentication
Request authentication is controlled by the service, not the client. When the service is started withCYBORGDB_SERVICE_ROOT_KEY set, every request must carry a credential in the X-API-Key header: either that root key or a per-user cdbk_ token minted under it. When the service runs without CYBORGDB_SERVICE_ROOT_KEY (the default), authentication is disabled and the api_key argument can be omitted.
Pass the credential as api_key at construction and the client attaches the X-API-Key header to every request automatically. Note this is distinct from the service’s CYBORGDB_API_KEY license key, which is not an authentication credential. See Managing Keys for how to mint user tokens.
Health Checking
You can verify the service connection and health:API Reference
For more information on theClient class, refer to the API Reference:
Python SDK Reference
API reference for
Client in PythonJS/TS SDK Reference
API reference for
Client in JavaScript/TypeScriptGo SDK Reference
API reference for
Client in Go