Skip to main content
The Admin Server exposes a REST API that backs the Admin UI and the falkordb-admin CLI. Anything you can do in the console you can do over this API.
Every endpoint on the following pages is generated from the server’s own OpenAPI document, so it always matches the running build.

Base URL

The gateway routes /api to the Admin Server, so the base URL is the same host you use for the Admin UI.
Without a gateway, port-forward the service instead:
The base URL is then http://localhost:3000/api.

Authenticate

Sign in with POST /api/auth/login. On success the server sets a JWT in an httpOnly cookie named token; send that cookie on subsequent requests.
Never hard-code credentials. Read them from environment variables or a secret store, and prefer a dedicated service account over a human’s login.
Other ways in:
  • OAuthGET /api/auth/oauth/{provider} starts a browser sign-in flow. See Google or Microsoft Entra ID.
  • Check a sessionGET /api/auth/validate returns the current user, or 401 if the cookie is missing or expired.
  • Sign outPOST /api/auth/logout clears the cookie.

Authorization

Requests are authorized against the caller’s role. A permission is a (resource, action, namespace) tuple, so the same token may be allowed to create deployments in one namespace and only read them in another. A request that passes authentication but fails authorization returns 403. The chart ships the admin, operator, and viewer roles. See Helm values to customize them.

Errors

Failures return a JSON body:

Asynchronous operations

Mutating a running deployment does not block. Endpoints such as scale, restart, and reconfigure create a KubeBlocks OpsRequest and return immediately with its name. Poll GET /api/clusters/{name}/operations for progress, or watch the underlying resource directly — see KubeBlocks resources.

Get the specification

The running server publishes its own OpenAPI document, which is the most accurate source for the version you have deployed:
Interactive Swagger UI is available at /api-docs unless it has been disabled with ENABLE_SWAGGER=false.

Next steps

Command line

Use falkordb-admin instead of raw HTTP calls

KubeBlocks resources

Work with the underlying custom resources