KubeBolt / docs
GitHub

REST API Reference

All endpoints under /api/v1.

All routes live under /api/v1. When authentication is enabled, every route except /auth/login, /auth/config, /auth/refresh and /prom/write (ingest-token authenticated) requires a JWT session; write actions additionally require the Editor or Admin role.

Clusters

MethodEndpointDescription
GET/clustersList all registered clusters (kubeconfig contexts + agent-connected)
POST/clusters/switchSwitch active cluster
POST/clustersRegister a cluster
PUT/clusters/:context/renameRename a cluster (admin)
DELETE/clusters/:contextRemove a cluster (admin)
GET/cluster/overviewFull cluster summary with counts, CPU/memory, health, events, workloads
GET/cluster/healthHealth score detail
GET/cluster/permissionsProbed RBAC permissions per resource type
GET/coverageData-source coverage for the active cluster

Resources

MethodEndpointDescription
GET/resources/:typeList with pagination (?limit=50), filtering (?namespace=, ?search=, ?status=)
GET/resources/:type/:ns/:nameDetail with metrics injection
GET/resources/:type/:ns/:name/yamlRaw YAML (secrets redacted, managedFields stripped)
GET/resources/:type/:ns/:name/describekubectl-describe style output
GET/resources/pods/:ns/:name/logsPod logs (?container=, ?tailLines=100)
GET/resources/pods/:ns/:name/filesPod file browser (list, content, download)
GET/resources/:workload/:ns/:name/podsPods owned by deployment/statefulset/daemonset/job
GET/resources/:type/:ns/:name/historyRevision history (Deployments via ReplicaSets; StatefulSets/DaemonSets via ControllerRevisions)
GET/resources/cronjobs/:ns/:name/jobsJob children of a CronJob
GET/searchGlobal search across resource types

Actions (Editor/Admin, audited)

MethodEndpointDescription
PUT/resources/:type/:ns/:name/yamlApply edited YAML
POST/resources/:type/:nsCreate a resource
DELETE/resources/:type/:ns/:nameDelete a resource
POST/resources/:type/:ns/:name/restartRolling restart
POST/resources/:type/:ns/:name/scaleScale replicas
POST/resources/:type/:ns/:name/rollbackRoll back to a revision
POST/resources/:type/:ns/:name/set-imageSet container image
POST/resources/:type/:ns/:name/set-resourcesSet requests/limits
POST/resources/:type/:ns/:name/set-envSet environment variables
POST/resources/:type/:ns/:name/cordon · /uncordonNode scheduling toggle
POST/resources/:type/:ns/:name/drainDrain a node (GET/DELETE the same path track/cancel the session)
POST/resources/:type/:ns/:name/evictEvict a pod
POST/resources/:type/:ns/:name/rollout-pause · /rollout-resumePause/resume a rollout
POST/resources/:type/:ns/:name/suspend · /resume · /triggerCronJob controls

Metrics & network

MethodEndpointDescription
GET/metrics/:type/:ns/:nameCPU/memory/network series for a workload, pod, or node
GET/metrics/queryPromQL instant query against the embedded metrics store
GET/metrics/query_rangePromQL range query
GET/flows/edgesNetwork flow edges (Hubble, when the agent ships flows)
GET/deploysRecent deploys detected in the range
POST/prom/writeRemote-write ingest (agent/ingest-token authenticated)

Port-forward

MethodEndpointDescription
POST/portforwardCreate a forward (raw TCP listener)
GET/portforwardList active forwards
DELETE/portforward/:idStop a forward

Helm

MethodEndpointDescription
GET/helm/releasesAll releases in the cluster
GET/helm/releases/:ns/:nameRelease detail (values, manifest, history, dependencies)

Copilot & account

MethodEndpointDescription
POST/copilot/chatKobi chat (SSE stream)
POST/copilot/compactCompact the conversation
GET/PATCH/DELETE/copilot/conversations[/:id]Conversation history
GET/account/plan · /account/usagePlan and usage (where plans apply)

Integrations

MethodEndpointDescription
GET/integrationsDetected integrations (OpenCost, Hubble, …)
POST/integrations/:id/installInstall via the wizard
GET/PUT/integrations/:id/configIntegration configuration
GET/integrations/agent/install-defaultsValues the Add-Cluster wizard bakes into the helm command

Admin surfaces (users, teams, API tokens, settings, Copilot usage analytics, action audit, agents, admin metrics) live under /users, /teams and /admin/* and require the Admin role.

Real-time

MethodEndpointDescription
WS/wsWebSocket for real-time updates — see WebSocket Events
WS/ws/exec/:ns/:namePod terminal