Calinora Pilot API (0.29.0)

Download OpenAPI specification:Download

Calinora Pilot API for comprehensive Kafka cluster management and monitoring

Calinora Pilot is an all-in-one, container-native tool that live-samples Kafka traffic, scores partition activity, exposes management APIs (including intelligent partition redistribution) and displays everything in a modern React dashboard.

Features

  • Real-time partition activity monitoring and sampling
  • Intelligent partition redistribution with multiple strategies
  • Broker maintenance mode management
  • Topic configuration management with bulk operations
  • Cluster health monitoring
  • Reassignment monitoring and cancellation

High availability

HA mode permits prepared rebalance execution, broker drains through POST /brokers/maintenance and POST /brokers/{brokerId}/maintenance as operations of kind drain the journal keeps, or, with nothing to move, as fenced broker-state writes, maintenance removal through DELETE /brokers/{brokerId}/maintenance as a fenced broker-state write, topic and partition redistribution through POST /topics/{topic}/redistribute and POST /topics/{topic}/partitions/{partition}/redistribute as operations of kind redistribution, bulk reassignment through POST /topics/{topic}/partitions/bulk as operations of kind bulk, the reversal of a recorded reassignment through POST /audit-log/revert as operations of kind revert, the reversal of an audited topic configuration, ACL, client quota or offset reset change through POST /audit-log/revert as an administrative operation of the reverted change's kind, or, with nothing to change, without an operation, preferred leader election through POST /preferred-leader-election and POST /topics/{topic}/preferred-leader-election as administrative operations of kind election, which run beside the data movement, or, with nothing to elect, without an operation, topic configuration changes through PUT /topics/{topic}/config and PUT /topics/config/bulk as administrative operations of kind topic-config, which run beside the data movement, or, with nothing to send, without an operation, client quota changes through PUT and DELETE on each of the eight /quotas entity routes as administrative operations of kind quota, or, with nothing to send, without an operation, ACL changes through POST /acls, PUT /acls and DELETE /acls as administrative operations of kind acl, or, with nothing to change, without an operation, consumer group offset resets and deletes through POST /consumer-groups/{group}/reset-offsets and DELETE /consumer-groups/{group} as administrative operations of kind consumer-group, or, for a reset of no partition, without an operation, log dir moves through POST /brokers/{brokerId}/logdirs/move, POST /topics/{topic}/logdirs/move and POST /topics/{topic}/partitions/{partition}/logdirs/move as administrative operations of kind logdir, which run beside the data movement and stay outstanding until their copies finish, cancellation of the accepted owned operation (all included), changes to the shared execution limits through PUT /reassignments/tuning, the monitor resync through POST /reassignments/resync and the dry run of an offset reset. A live accept requires an Idempotency-Key; previews are reads, refused only for what a plan's content keeps the HA executor from running. The request-level audit event of an accepted operation is delivered once from the journal. Broker restarts, stops and starts through POST /agents/{brokerId}/restart, POST /agents/{brokerId}/stop and POST /agents/{brokerId}/start and remote agent upgrades through POST /agents/{brokerId}/upgrade-remote run as administrative operations of kind agent-command; SSH deploys through POST /agents/deploy, POST /agents/deploy/stream, POST /agents/deploy/bulk, POST /agents/deploy/bulk/stream and POST /agents/{brokerId}/upgrade run on the active replica as deploy sessions the journal records; the agent settings (PUT /agents/config), the enrollment tokens and the token a certificate bootstrap spends are journal records. A rolling restart through POST /rolling-restart runs as an operation of kind rolling-restart in the data movement's place, which the active replica runs broker by broker and the next active replica resumes at the recorded step; POST /rolling-restart/cancel commits its cancel intent, and POST /rolling-restart/dismiss records the dismissal of a failed or cancelled restart's outcome under an Idempotency-Key. Other Kafka and agent mutations return 503 with HA_UNSUPPORTED. Monitoring readiness and administrative mutation readiness are independent. Pilot sends one administrative request at a time across all operations, and the others wait for it; the request in flight is not uncertain. An uncertain administrative attempt freezes further administrative effects until resolved by explicit evidence; an agent command waiting for its result freezes only its own operation until its deadline, also on the next active replica. The 60-second escalation does not authorize a retry. GET /ha exposes current readiness and uncertainty.

Authentication

When authentication is enabled every endpoint is protected except the public endpoints listed below. A protected endpoint accepts a session cookie or an Authorization: Bearer credential.

Session (UI): Users authenticate via OAuth2/OIDC and receive an HMAC-signed, HttpOnly session cookie (pilot_session by default, configurable with AUTH_COOKIE_NAME). /auth/me, /auth/logout and /auth/refresh accept the cookie only. In HA mode bounded identity-only session cookies and PKCE cookies use authenticated encryption derived from the shared AUTH_COOKIE_SECRET. A successor retains browser identity until the session expires. Provider access and refresh tokens remain local to the active process; provider-token refresh or token exposure on a successor requires login again. Refresh on the same active process reissues the session cookie.

Bearer PAT (API/MCP): Personal Access Tokens carry the pat_ prefix and are validated against the token store. A read scope token is rejected on non-GET requests outside /mcp; inside /mcp it cannot call mutation tools.

Bearer OAuth2/OIDC token: A JWT is verified against the provider's published JWKS, including exp, iss and aud. There is no unverified decode path: a token that cannot be verified is rejected. Audience binding fails closed. When no AUTH_<PROVIDER>_ALLOWED_AUDIENCES is configured the provider's client id is the expected audience (api://<client-id> and <client-id> for entraid), and a provider that resolves no audience at all rejects bearer JWTs outright. The azp authorized-party claim is accepted alongside aud. Opaque, non-JWT tokens (for example GitHub's) authenticate only through a successful provider userinfo call.

Error semantics: 401 means the caller is not authenticated: missing, malformed, expired, unverifiable or audience-unbound credential, or a PAT that no longer validates. 403 means the caller authenticated but is not permitted: a configured organization, email domain, group or audience allowlist rejected the identity, or a read scope PAT attempted a write. Mutation endpoints also return 403 when no valid license is present; the license check is separate from the authentication check. Cancelling a partition move (POST /reassignments/{id}/cancel) or a rolling restart (POST /rolling-restart/cancel) needs no license, and neither does dismissing the outcome of a failed or cancelled rolling restart (POST /rolling-restart/dismiss). In HA mode a repeat under the Idempotency-Key of an accepted request answers its recorded result also after the license lapsed, while a new request returns 403.

Before the first Kafka connection (standalone mode only): When its first connection attempt fails or runs longer than 5 seconds, a standalone Pilot starts serving before it has reached the Kafka cluster and retries the connection in the background. Until it connects, /health, /ready, /cluster/connection and /metrics answer as documented, and every other endpoint returns 503 with code: KAFKA_UNAVAILABLE and a Retry-After header when the next attempt is scheduled. Authentication cannot run in this phase, so with authentication enabled these responses name no brokers and no connection error; the Pilot log does. In HA mode no replica serves the API before its promotion has connected to Kafka: a standby has no API listener, and the active replica answers 503 with code: HA_NOT_READY until its monitoring is ready.

Public endpoints: /health, /cluster/connection, /auth/*, /openapi.yaml, /openapi.json, /agents/bootstrap-cert (guarded by its own enrollment token), GET /agents/binary and GET /agents/binary/sha256 (the agent release and its checksum), the /docs/ UI, and /metrics (served at the server root, outside this spec's base path). /ready is protected.

MCP endpoint: The Model Context Protocol server is available at /mcp for AI agent integration. Its clients can use only tools that do not change the cluster unless PILOT_MCP_WRITE_ENABLED=true and a sign-in provider is configured; even then a tool that changes the cluster needs a write scope PAT or an MCP OAuth token with the write scope. GET /integrations/mcp reports the state. In HA mode apply_proposal, the MCP tools that move partitions and the preferred leader election tools report the status pending, accepted or already_accepted with the operationId, an election that ended within the call's wait its per-partition result; calling a tool again with the same idempotency key polls a pending accept. OAuth discovery is public at the root paths /.well-known/oauth-protected-resource/api/v1/mcp and /.well-known/oauth-protected-resource. When configured, unauthenticated MCP requests receive a 401 Bearer challenge with resource_metadata and the delegated read scope. Pilot is not an OAuth authorization server. Local authorization-server and OIDC discovery fallback paths return JSON 404 responses without redirecting to browser login.

Agents

Pilot Agent management, deployment, enrollment, and broker lifecycle operations

List connected Pilot Agents

Returns the state of all agents known to Pilot. When agent management is disabled returns an empty list with enabled: false.

Authorizations:
sessionCookiepatAuthbearerAuth

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Download the agent binary

Returns the Pilot Agent binary for the requested architecture as an application/octet-stream. The binary is fetched from the configured upstream download URL and cached locally by Pilot. Public, so agents can download it without credentials; an upgrade command pins the binary's SHA256.

query Parameters
arch
string
Default: "amd64"
Enum: "amd64" "arm64"

CPU architecture

Responses

Response samples

Content type
application/json
{
  • "success": false,
  • "error": "string",
  • "code": "KAFKA_UNAVAILABLE",
  • "details": "string",
  • "reason": "string",
  • "affectedBrokerIds": [
    ],
  • "operationId": "string"
}

Get the agent binary SHA256 checksum

Returns the full SHA256 hex digest of the cached agent binary for the requested architecture. Public, like the binary.

query Parameters
arch
string
Default: "amd64"
Enum: "amd64" "arm64"

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Get agent binary configuration

Returns the current upstream download URL, the agent version, and a map of architectures for which a binary is cached.

Authorizations:
sessionCookiepatAuthbearerAuth

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Update agent binary download URL

Updates the upstream URL from which Pilot fetches the agent binary. The change is not persisted and reverts on restart. Requires a valid license (management mode). In HA mode the URL commits to the journal first, which keeps it for the next active replica, and needs administrative readiness; the event and the answer are standalone's.

Authorizations:
sessionCookiepatAuthbearerAuth
Request Body schema: application/json
downloadUrl
required
string

Responses

Request samples

Content type
application/json
{
  • "downloadUrl": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Get the agent install script

Returns scripts/install-agent.sh, which installs the agent on a host: binary, service user, sudoers, systemd unit and config. Intended to be piped into sudo bash on the target host.

Authorizations:
sessionCookiepatAuthbearerAuth

Responses

Sign an agent certificate from a CSR

Called by an agent during enrollment. Accepts either a single-use enrollment token or the persistent master bootstrap token. Single-use tokens are consumed on successful enrollment. Not license-gated because it is part of the agent bootstrap flow. Bootstrap requests over plain HTTP are logged with a security warning. In HA mode a single-use token must be live in the journal, and its use commits to the journal together with the agent.bootstrap-cert event, which names the certificate's serial and expiry, before the certificate is returned; the master token's event commits before the answer as well. A token a successor replays enrolls one agent only.

Request Body schema: application/json
agentId
required
string
token
required
string
csrPEM
required
string

PEM-encoded certificate signing request

Responses

Request samples

Content type
application/json
{
  • "agentId": "string",
  • "token": "string",
  • "csrPEM": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Create a single-use agent enrollment token

Creates a new single-use bootstrap token that an agent can exchange for a signed certificate. Requires a valid license (management mode). In HA mode the token's record commits to the journal before the answer, so any replica that becomes active accepts it; the record keeps the token's SHA-256 and its masked value, never the token, which this answer returns once.

Authorizations:
sessionCookiepatAuthbearerAuth
Request Body schema: application/json
label
string
ttlMinutes
integer

Token TTL in minutes. 0 or omitted uses the default TTL.

Responses

Request samples

Content type
application/json
{
  • "label": "string",
  • "ttlMinutes": 0
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

List active agent enrollment tokens

Returns active enrollment tokens with masked token values. In HA mode the list is the journal's.

Authorizations:
sessionCookiepatAuthbearerAuth

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": [
    ]
}

Revoke an agent enrollment token

Revokes a previously issued single-use enrollment token. Requires a valid license (management mode). In HA mode the revocation commits to the journal.

Authorizations:
sessionCookiepatAuthbearerAuth
Request Body schema: application/json
token
required
string

Responses

Request samples

Content type
application/json
{
  • "token": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string"
}

Deploy a Pilot Agent to a host via SSH

Deploys a Pilot Agent to a remote host using SSH (optionally via one or more jump hosts). Requires HTTPS and a valid license (management mode). In HA mode the deploy requires an Idempotency-Key and administrative readiness and runs on the active replica in the request, as a deploy session the journal records before the first SSH dial; the session's end commits with its agent.deploy event. The record names the target, its jump hosts and the deploy settings and holds no credential: SSH passwords and private keys, the sudo password and the master token stay in the request, and the agent key Pilot issues is kept in memory only. A deploy cut off by a failover is reported interrupted by the next active replica, which records agent.deploy as interrupted by a failover. Repeating the request with the same key answers the recorded outcome without dialing again, 202 while it still runs; a new key deploys again.

Authorizations:
sessionCookiepatAuthbearerAuth
header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same deploy.

Request Body schema: application/json
required
object (SSHHop)
Array of objects (SSHHop)
brokerId
integer <int32> >= 0

Broker the agent serves, where 0 is broker 0. Leave it out to let the agent detect its broker.

pilotServerAddress
required
string

gRPC address used by the agent to connect back to Pilot (e.g. pilot:9190).

bootstrapUrl
string

HTTP bootstrap URL used by the agent for certificate renewal. Defaults to the incoming request URL.

arch
string
Default: "amd64"
Enum: "amd64" "arm64"
serviceUser
string
Default: "root"

OS user the agent systemd service runs as. Defaults to root. Set to pilot-agent to run the agent under a dedicated non-root user (the deploy flow will create the user and configure a narrow sudoers drop-in automatically).

kafkaUnit
string

Systemd unit name of the Kafka broker on the target host. Optional; auto-detected from the running Kafka JVM process when omitted. Comma-separated list for hosts running multiple brokers.

kafkaGroup
string

Group that owns Kafka log files. Optional; auto-detected from the running unit when omitted. The pilot-agent user is added to this group so it can tail Kafka logs.

sudoPassword
string

Password for sudo on the target host. Empty means passwordless sudo is attempted.

Responses

Request samples

Content type
application/json
{
  • "target": {
    },
  • "proxyHops": [
    ],
  • "brokerId": 0,
  • "pilotServerAddress": "string",
  • "bootstrapUrl": "string",
  • "arch": "amd64",
  • "serviceUser": "root",
  • "kafkaUnit": "kafka.service",
  • "kafkaGroup": "kafka",
  • "sudoPassword": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Deploy Pilot Agents to multiple hosts via SSH

Deploys Pilot Agents to up to 50 target hosts sequentially. Requires HTTPS and a valid license (management mode). In HA mode it runs as one deploy session the journal records, as POST /agents/deploy does: the record takes each host's outcome as the host ends, the session's end commits with the agent.bulk-deploy event, and a failover interrupts only the hosts that had not ended, which that event's summary counts as failed.

Authorizations:
sessionCookiepatAuthbearerAuth
header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same deploy.

Request Body schema: application/json
required
Array of objects (BulkDeployTarget) <= 50 items
Array of objects (SSHHop)
pilotServerAddress
required
string

gRPC address used by the agent to connect back to Pilot (e.g. pilot:9190).

bootstrapUrl
string

HTTP bootstrap URL used by the agent for certificate renewal. Defaults to the incoming request URL.

arch
string

Shared architecture. Empty string auto-detects per host.

serviceUser
string
Default: "root"

OS user the agent systemd service runs as. Defaults to root. Set to pilot-agent to run the agent under a dedicated non-root user (the deploy flow will create the user and configure a narrow sudoers drop-in automatically). Applied to every host in the bulk batch.

kafkaUnit
string

Systemd unit name of the Kafka broker on each target host. Optional; auto-detected from the running Kafka JVM process when omitted. Comma-separated list for hosts running multiple brokers. Applied to every host in the bulk batch.

kafkaGroup
string

Group that owns Kafka log files. Optional; auto-detected from the running unit when omitted. The pilot-agent user is added to this group so it can tail Kafka logs. Applied to every host in the bulk batch.

sudoPassword
string

Password for sudo on the target host. Empty means passwordless sudo is attempted.

Responses

Request samples

Content type
application/json
{
  • "targets": [
    ],
  • "proxyHops": [
    ],
  • "pilotServerAddress": "string",
  • "bootstrapUrl": "string",
  • "arch": "string",
  • "serviceUser": "root",
  • "kafkaUnit": "kafka.service",
  • "kafkaGroup": "kafka",
  • "sudoPassword": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Test SSH connectivity for agent deploy

Runs the SSH connection, auth, and discovery steps of a deploy without installing anything. Returns host key material for trust-on-first-use. Requires HTTPS and a valid license (management mode). In HA mode it runs on the active replica with administrative readiness, needs no Idempotency-Key and records nothing in the journal.

Authorizations:
sessionCookiepatAuthbearerAuth
Request Body schema: application/json
required
object (SSHHop)
Array of objects (SSHHop)
brokerId
integer <int32> >= 0

Broker the agent serves, where 0 is broker 0. Leave it out to let the agent detect its broker.

pilotServerAddress
required
string

gRPC address used by the agent to connect back to Pilot (e.g. pilot:9190).

bootstrapUrl
string

HTTP bootstrap URL used by the agent for certificate renewal. Defaults to the incoming request URL.

arch
string
Default: "amd64"
Enum: "amd64" "arm64"
serviceUser
string
Default: "root"

OS user the agent systemd service runs as. Defaults to root. Set to pilot-agent to run the agent under a dedicated non-root user (the deploy flow will create the user and configure a narrow sudoers drop-in automatically).

kafkaUnit
string

Systemd unit name of the Kafka broker on the target host. Optional; auto-detected from the running Kafka JVM process when omitted. Comma-separated list for hosts running multiple brokers.

kafkaGroup
string

Group that owns Kafka log files. Optional; auto-detected from the running unit when omitted. The pilot-agent user is added to this group so it can tail Kafka logs.

sudoPassword
string

Password for sudo on the target host. Empty means passwordless sudo is attempted.

Responses

Request samples

Content type
application/json
{
  • "target": {
    },
  • "proxyHops": [
    ],
  • "brokerId": 0,
  • "pilotServerAddress": "string",
  • "bootstrapUrl": "string",
  • "arch": "amd64",
  • "serviceUser": "root",
  • "kafkaUnit": "kafka.service",
  • "kafkaGroup": "kafka",
  • "sudoPassword": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Deploy a Pilot Agent and stream progress via SSE

Same as /agents/deploy but emits Server-Sent Events with per-step progress. Events: step for each deploy step, done with the final result, or error on failure. Requires HTTPS and a valid license (management mode). In HA mode it runs as a deploy session the journal records, as /agents/deploy does; the last event names the session as deployId, and a repeat under the key streams the recorded outcome as its only event, with status interrupted for a session a failover cut off. A repeat while the session still runs, or before its end commits, answers 202 as JSON instead, and every refusal before the stream starts answers as JSON.

Authorizations:
sessionCookiepatAuthbearerAuth
header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same deploy.

Request Body schema: application/json
required
object (SSHHop)
Array of objects (SSHHop)
brokerId
integer <int32> >= 0

Broker the agent serves, where 0 is broker 0. Leave it out to let the agent detect its broker.

pilotServerAddress
required
string

gRPC address used by the agent to connect back to Pilot (e.g. pilot:9190).

bootstrapUrl
string

HTTP bootstrap URL used by the agent for certificate renewal. Defaults to the incoming request URL.

arch
string
Default: "amd64"
Enum: "amd64" "arm64"
serviceUser
string
Default: "root"

OS user the agent systemd service runs as. Defaults to root. Set to pilot-agent to run the agent under a dedicated non-root user (the deploy flow will create the user and configure a narrow sudoers drop-in automatically).

kafkaUnit
string

Systemd unit name of the Kafka broker on the target host. Optional; auto-detected from the running Kafka JVM process when omitted. Comma-separated list for hosts running multiple brokers.

kafkaGroup
string

Group that owns Kafka log files. Optional; auto-detected from the running unit when omitted. The pilot-agent user is added to this group so it can tail Kafka logs.

sudoPassword
string

Password for sudo on the target host. Empty means passwordless sudo is attempted.

Responses

Request samples

Content type
application/json
{
  • "target": {
    },
  • "proxyHops": [
    ],
  • "brokerId": 0,
  • "pilotServerAddress": "string",
  • "bootstrapUrl": "string",
  • "arch": "amd64",
  • "serviceUser": "root",
  • "kafkaUnit": "kafka.service",
  • "kafkaGroup": "kafka",
  • "sudoPassword": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Bulk deploy Pilot Agents and stream progress via SSE

Same as /agents/deploy/bulk but emits Server-Sent Events with per-host progress. Events: step for each host step, done with the final summary, or error on failure. A step event carries host, step, and brokerId when the target names a broker. Requires HTTPS and a valid license (management mode). In HA mode it runs as a deploy session the journal records, as /agents/deploy/bulk does; the last event names the session as deployId, and a repeat under the key streams the recorded outcome as its only event. A repeat while the session still runs, or before its end commits, answers 202 as JSON instead, and every refusal before the stream starts answers as JSON.

Authorizations:
sessionCookiepatAuthbearerAuth
header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same deploy.

Request Body schema: application/json
required
Array of objects (BulkDeployTarget) <= 50 items
Array of objects (SSHHop)
pilotServerAddress
required
string

gRPC address used by the agent to connect back to Pilot (e.g. pilot:9190).

bootstrapUrl
string

HTTP bootstrap URL used by the agent for certificate renewal. Defaults to the incoming request URL.

arch
string

Shared architecture. Empty string auto-detects per host.

serviceUser
string
Default: "root"

OS user the agent systemd service runs as. Defaults to root. Set to pilot-agent to run the agent under a dedicated non-root user (the deploy flow will create the user and configure a narrow sudoers drop-in automatically). Applied to every host in the bulk batch.

kafkaUnit
string

Systemd unit name of the Kafka broker on each target host. Optional; auto-detected from the running Kafka JVM process when omitted. Comma-separated list for hosts running multiple brokers. Applied to every host in the bulk batch.

kafkaGroup
string

Group that owns Kafka log files. Optional; auto-detected from the running unit when omitted. The pilot-agent user is added to this group so it can tail Kafka logs. Applied to every host in the bulk batch.

sudoPassword
string

Password for sudo on the target host. Empty means passwordless sudo is attempted.

Responses

Request samples

Content type
application/json
{
  • "targets": [
    ],
  • "proxyHops": [
    ],
  • "pilotServerAddress": "string",
  • "bootstrapUrl": "string",
  • "arch": "string",
  • "serviceUser": "root",
  • "kafkaUnit": "kafka.service",
  • "kafkaGroup": "kafka",
  • "sudoPassword": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Get agent state for a single broker

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
brokerId
required
integer <int32>

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Upgrade an agent via SSH

Copies a new agent binary to the target host over SSH and restarts the agent service. Requires HTTPS and a valid license (management mode). In HA mode it runs as a deploy session the journal records, as POST /agents/deploy does, and its end commits with the agent.upgrade event.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
brokerId
required
integer <int32>
header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same upgrade.

Request Body schema: application/json
required
object (SSHHop)
Array of objects (SSHHop)
brokerId
integer <int32>
arch
string
Default: "amd64"
Enum: "amd64" "arm64"
sudoPassword
string

Password for sudo on the target host. Empty means passwordless sudo is attempted.

Responses

Request samples

Content type
application/json
{
  • "target": {
    },
  • "proxyHops": [
    ],
  • "brokerId": 0,
  • "arch": "amd64",
  • "sudoPassword": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Upgrade an agent via gRPC self-upgrade

Sends an upgrade command over the existing gRPC stream; the agent downloads the new binary from Pilot and restarts itself. No SSH required. The command pins the SHA256 of the binary for the architecture the agent reported. Requires a valid license (management mode). In HA mode the upgrade runs as an agent-command operation, as POST /agents/{brokerId}/restart describes; the request waits standalone's 3 minutes, and the agent.upgrade-remote event is delivered once from the journal when the operation ends. An upgrade the agent did not report on is decided from the binary hash the agent's heartbeats report.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
brokerId
required
integer <int32>
header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same command.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Restart a broker via its agent

Sends a restart command to the broker's Pilot Agent. Requires a valid license (management mode). In HA mode a restart, stop or start requires an Idempotency-Key and administrative mutation readiness and runs as one administrative operation of kind agent-command beside a data movement. The request waits as standalone does, the command's timeout plus 30 seconds, and answers standalone's body with the operation as data.operationId, or 202 with the operation once the wait or the request ends first. A repeat under the key answers the recorded outcome. The journal refuses a command to a broker that another command or a rolling restart holds with 409 HA_BUSY. A broker without a registered agent answers standalone's 400 before anything is recorded. A command accepted before a failover whose agent has not reconnected to the next active replica yet waits for it up to two minutes from that replica's start, then answers standalone's 400. Pilot sends the command once, only to an agent whose stream sent its command ledger; a command whose result was lost is decided from that ledger, or 30 seconds after the wait from the broker's state as the agent's heartbeats report it (data.decidedBy brokerState; a restart took effect once the broker runs as another process than before the send), or recorded as unknown, never sent again, with 504 HA_OUTCOME_UNKNOWN. A replica that becomes active finishes a command its predecessor left open. The broker. event is delivered once from the journal when the operation ends; a command that never went out records none, as in standalone mode.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
brokerId
required
integer <int32>
header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same command.

Request Body schema: application/json
graceful
boolean
Default: true
timeoutSeconds
integer [ 1 .. 600 ]
Default: 300

Responses

Request samples

Content type
application/json
{
  • "graceful": true,
  • "timeoutSeconds": 300
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Stop a broker via its agent

Requires a valid license (management mode). In HA mode the stop runs as an agent-command operation, as POST /agents/{brokerId}/restart describes; a stop the agent did not report on took effect once two heartbeats after its deadline report the broker down, or once the cluster metadata no longer lists a broker whose agent is gone.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
brokerId
required
integer <int32>
header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same command.

Request Body schema: application/json
graceful
boolean
Default: true
timeoutSeconds
integer [ 1 .. 600 ]
Default: 300

Responses

Request samples

Content type
application/json
{
  • "graceful": true,
  • "timeoutSeconds": 300
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Start a broker via its agent

Requires a valid license (management mode). In HA mode the start runs as an agent-command operation, as POST /agents/{brokerId}/restart describes; a start the agent did not report on took effect once a heartbeat after its deadline reports the broker running and the cluster metadata lists it.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
brokerId
required
integer <int32>
header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same command.

Request Body schema: application/json
graceful
boolean
Default: true
timeoutSeconds
integer [ 1 .. 600 ]
Default: 300

Responses

Request samples

Content type
application/json
{
  • "graceful": true,
  • "timeoutSeconds": 300
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Stream broker logs via SSE

Subscribes to the broker's log stream via Server-Sent Events. Filters can be applied by level or substring pattern. Recent buffered entries are backfilled on connect. Each event is event: log with a JSON payload.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
brokerId
required
integer <int32>
query Parameters
level
string
Enum: "TRACE" "DEBUG" "INFO" "WARN" "ERROR"

Minimum log level

pattern
string

Substring filter applied to each log line

tail
integer <= 1000
Default: 200

Number of recent entries to replay on connect

Responses

Response samples

Content type
application/json
{
  • "success": false,
  • "error": "string",
  • "code": "KAFKA_UNAVAILABLE",
  • "details": "string",
  • "reason": "string",
  • "affectedBrokerIds": [
    ],
  • "operationId": "string"
}

Search buffered broker logs

Searches the in-memory log buffer for a broker and returns matching entries.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
brokerId
required
integer <int32>
query Parameters
q
string

Substring search term

level
string
Enum: "TRACE" "DEBUG" "INFO" "WARN" "ERROR"
from
integer <int64>

Lower bound timestamp (unix millis)

to
integer <int64>

Upper bound timestamp (unix millis)

limit
integer <= 1000
Default: 500

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Rolling Restart

Rolling broker restart orchestration and preflight safety gates

Start a rolling restart

Starts a rolling restart across all brokers using the connected Pilot Agents. Runs preflight safety checks (ISR health, URP counts, connected agents, pending reassignments) before starting. Returns 409 if preflight fails or a restart is already running. Before each broker's stop, a fresh pre-stop check refuses the stop when a partition in the broker's ISR would drop below min.insync.replicas; while min.insync.replicas of a topic or the cluster metadata cannot be read, it checks again for up to stallTimeoutSeconds and then refuses the stop, so Pilot needs DescribeConfigs on all topics. Requires a valid license (management mode). In HA mode it requires an Idempotency-Key and administrative mutation readiness; the preflight also counts a data movement the HA journal holds as an active reassignment. The restart is accepted as one operation of kind rolling-restart, with the broker order and each broker's agent as its plan, and the request answers standalone's body with data.operationId once the accept committed. The active replica runs it broker by broker and saves each step (drain, stop, start, readiness and soak, ISR catch-up, restore) before its first request; the next active replica resumes it at the recorded step. Stops and starts go out once each; one whose result was lost is decided from the agent's command ledger or, at its deadline, from the broker's state, and the next broker is not stopped until it is decided. A readiness wait's hard deadline counts from the step's saved start. Each election of the restart names its partitions and goes out in request batches within the journal's bounds; the final preferred leader election names the partitions whose leader is not their preferred replica. Once the journal recorded the restart's first request it runs to its end after a license lapse, as a standalone restart does. A repeat under the key answers that restart's current status. The rolling-restart.start event is delivered once from the journal; the steps are recorded as the run takes them, before the journal records that a step passed, so a step a failover interrupted may be recorded twice; one whose replica was killed before writing it is missing.

Authorizations:
sessionCookiepatAuthbearerAuth
header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same start.

Request Body schema: application/json
gracefulShutdown
boolean
Default: true
stallTimeoutSeconds
integer [ 30 .. 600 ]
Default: 120

Universal stall timeout, in seconds without progress before a phase stops waiting. A stalled readiness check stops the restart; a stalled leadership drain or restore continues; a stalled ISR catch-up continues only when no partition is at or below min.insync.replicas, otherwise the restart stops. It also bounds how long the pre-stop ISR check keeps retrying while min.insync.replicas or the cluster metadata cannot be read before the broker's stop is refused. Clamped to [30, 600].

stabilizationSeconds
integer [ 0 .. 120 ]
Default: 0

Dwell time between brokers after a successful restart. Clamped to [0, 120].

readinessSoakSeconds
integer [ 1 .. 60 ]
Default: 10

Soak period after initial readiness before proceeding. Clamped to [1, 60].

Responses

Request samples

Content type
application/json
{
  • "gracefulShutdown": true,
  • "stallTimeoutSeconds": 120,
  • "stabilizationSeconds": 0,
  • "readinessSoakSeconds": 10
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Get rolling restart status

Returns the current rolling restart state. When agent management is disabled or no restart has been run, returns {status: "IDLE"}. A restart that ended keeps showing DONE, FAILED or CANCELLED until a new one starts; a FAILED or CANCELLED one also until it is dismissed (POST /rolling-restart/dismiss), which resets the status to IDLE. In standalone mode the state is kept in memory, so a restart of Pilot resets it to IDLE as well. In HA mode it reads the journal, on whichever replica is active: the rolling restart accepted last, running or ended, with data.operationId, also after a failover; IDLE when the journal retains none or its outcome was dismissed. The journal keeps an ended restart's brokers, settings and preflight results for 45 minutes and then only how it ended: brokerOrder, brokerStates and preflightResults are then empty and config shows the defaults, while id, status, error, startedAt and completedAt stay. The status shows CANCELLED from the committed cancel intent on, while the run still brings back the broker the cancel interrupted. Its preflight results carry no details in HA mode.

Authorizations:
sessionCookiepatAuthbearerAuth

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Cancel an active rolling restart

Cancels the currently running rolling restart. Remaining brokers are marked as skipped. If the cancel interrupts a broker's stop or start, Pilot waits for that command to finish and starts the broker again once its agent reports it stopped; a broker that keeps running is left as is. Until that broker is dealt with, the restart still counts as active, so a new rolling restart and operations that wait for rolling restarts are refused. A cancel needs no license, also after the license lapsed; authentication and the write scope still apply. In HA mode it requires mutation readiness, but not the license, and commits the restart's cancel intent, which the active replica, or the next one after a failover, carries out: it waits for the decision of a stop the cancel caught, starts that broker again when it went down or its outcome stayed unknown, skips the remaining brokers and ends the restart CANCELLED. It needs no Idempotency-Key; a repeat after the intent committed answers 409, as a second standalone cancel does. A reassignment cancel (POST /reassignments/{id}/cancel, all included) leaves a rolling restart.

Authorizations:
sessionCookiepatAuthbearerAuth

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Dismiss the outcome of a failed or cancelled rolling restart

Dismisses the rolling restart that ended FAILED or CANCELLED, which the request names by its id: the status returns to IDLE for every viewer and the restart's condition (operations.rolling_restart.failed:<id> or operations.rolling_restart.cancelled:<id> in GET /conditions) ends at once. Starting a new rolling restart resolves the outcome too. Only the last rolling restart has an outcome to dismiss, once nothing of it runs any more: a restart that is running, still brings a broker back, ended DONE or is not the last one answers 409, as does a second dismissal. A dismissal changes no Kafka state, so it needs no license, also after the license lapsed; authentication and the write scope still apply. It is audited as rolling-restart.dismiss. In HA mode it requires an Idempotency-Key and mutation readiness, but not the license, also while a request has an unknown outcome: the journal records the dismissal with its audit event, which is delivered once, and every replica then shows IDLE, also after a failover. A repeat under the key with the same id answers the same body and records nothing, on the next active replica too, until a later dismissal replaces the record; the key with another id answers IDEMPOTENCY_CONFLICT.

Authorizations:
sessionCookiepatAuthbearerAuth
header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same dismissal.

Request Body schema: application/json
id
required
string

The rolling restart whose outcome to dismiss: data.id of GET /rolling-restart, or the entity of its condition in GET /conditions.

Responses

Request samples

Content type
application/json
{
  • "id": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Run rolling restart preflight checks

Runs all preflight safety gates (ISR, URPs, connected agents, pending reassignments, controller location) without starting a restart. Returns the individual gate results, the computed broker order, and whether the restart can proceed. In HA mode the same gates run on the active replica, where a data movement the HA journal holds counts as an active reassignment and the journal's rolling restart as one in progress.

Authorizations:
sessionCookiepatAuthbearerAuth

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Health

Health check operations

Liveness probe

Lightweight liveness probe for Kubernetes. Returns 200 OK if the service is running. Does not check external dependencies. Use /ready for readiness checks.

Responses

Response samples

Content type
application/json
{
  • "status": "ok"
}

Readiness probe

Readiness probe for Kubernetes. Returns 200 OK if the service is ready to accept traffic. Requires a current broker observation with at least one available Kafka broker. Returns 503 when the observation is stale or unavailable, with a reason distinguishing failed monitoring from a current observation of zero available brokers.

Unlike /health, this endpoint is protected when authentication is enabled and returns 401 to an unauthenticated caller. Use /health for unauthenticated liveness probing.

Until Pilot has connected to the Kafka cluster after startup, this endpoint returns 503 to every caller with a reason naming the bootstrap servers and the last connection error. With authentication enabled the reason names neither.

Authorizations:
sessionCookiepatAuthbearerAuth

Responses

Response samples

Content type
application/json
{
  • "status": "ready",
  • "reason": "no available Kafka brokers"
}

Get application version

Returns the version and build information for the Pilot service

Authorizations:
sessionCookiepatAuthbearerAuth

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "status": "healthy",
  • "version": "0.10.0",
  • "service": "pilot",
  • "go_version": "go1.23.0",
  • "build_time": "2025-01-04T12:00:00Z",
  • "git_commit": "abc123def"
}

Get self-healing status

Returns the current state of all three self-healing loops (activity, critical, RF), including scheduling, execution status, and configuration settings.

Authorizations:
sessionCookiepatAuthbearerAuth

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    },
  • "timestamp": "2019-08-24T14:15:22Z"
}

Cluster

Cluster information and management

HA controller readiness, replica topology and operation uncertainty

Authenticated status without a license requirement. Monitoring readiness and administrative mutation readiness are independent. escalated has the causes HAStatus lists, each named in escalationReason. An unresolved Kafka administrative attempt is visible immediately and escalates after 60 seconds for a reassignment or cancellation request and 3 minutes for a throttle configuration, leader election or administrative request; an agent command without an answer counts as unresolved, and escalated, once its deadline passed; rows that wait on absent brokers show absentBrokerWait at once, and the wait escalates 10 minutes after its since, while queued rows fail once their own broker has been missing for 10 minutes and copied rows keep waiting until the broker returns or a cancel ends the operation; rows that wait because Kafka does not answer for a topic's identity show identityHold and escalate when the executor escalates the hold, after 10 minutes; copied rows that wait for their preferred leader to be in sync show leaderWait, which escalates after 10 minutes and whose escalationReason names the partitions and their preferred leaders; and a leader whose Pilot Agent is off (PILOT_AGENT_ENABLED=false) while the journal holds an agent command or rolling restart escalates at once, as only turning the Pilot Agent back on lets that operation end. Its escalationReason names PILOT_AGENT_ENABLED, also while mutationReady is false for another reason such as an unlicensed leader, and a mutation refused with 503 HA_NOT_READY may carry the same reason; cancels and tuning changes are not refused for it. Monitoring and PAT revocation remain available while mutations are suspended. A durable cancel intent its executor has not applied shows as cancelPending. In HA mode, topology contains cached namespaced Kubernetes pod and Lease observations, refreshed every 10 seconds by the elected process. These separate reads are not an atomic snapshot. Replica roles are inferred from a valid Lease and exact pod UID, not from peer probes or Kafka connections. Pod readiness is distinct from the local controller's monitoring and mutation readiness. Failed or stale observations preserve last-known pod details with unknown roles. Topology is omitted in standalone mode. Polling this endpoint does not perform Kubernetes or Kafka requests.

Authorizations:
sessionCookiepatAuthbearerAuth

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Get cluster information

Returns basic cluster information including brokers and topics

Authorizations:
sessionCookiepatAuthbearerAuth

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Get comprehensive cluster information

Returns comprehensive cluster information including sampling status and detailed partition data

Authorizations:
sessionCookiepatAuthbearerAuth
query Parameters
summary
boolean
Default: false

When true, excludes per-partition details and returns only topic names and partition counts (60-80% smaller response)

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Get cluster log directories

Returns fresh validated per-broker storage measurements, including valid zero-byte measurements. Partial collections return 200 with coverage and brokerErrors: healthy broker rows continue updating, missing broker rows are omitted, and incomplete cluster or topic totals are null rather than zero. Segment counts are independently null when segment-size configuration is unavailable, even if byte coverage is complete. Expected broker IDs include live inventory, assigned replicas, and known brokers even when offline. collectedAt and topologyObservedAt retain the original collection and assignment observation times. Global collection failures, invalid timestamps, and unavailable assignment metadata return an error. Partial monitoring responses never replace complete snapshots used for operations or metrics.

Authorizations:
sessionCookiepatAuthbearerAuth
query Parameters
summary
boolean
Default: false

When true, returns only aggregated broker-level data without per-partition details (90%+ smaller response)

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Get cluster health

Returns the shared cached health observation. HTTP success is not a safety verdict: rackAwareness can be partial or unavailable while broker and partition observations remain usable. Rack health tests whether assigned replicas remaining after any single rack loss meet effective minimum ISR. It does not establish current producer availability or current ISR survival. The legacy notRackAwarePartitions exact count is null unless the rack assessment is complete and current. Broker counts are qualified by brokerObservation: stale retains the last successful counts; unavailable means no successful broker observation exists. Neither state establishes a broker outage. An initialized monitor returns 200 with unavailable at startup; 503 is reserved for an absent health provider or observation response.

Authorizations:
sessionCookiepatAuthbearerAuth

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

List the active cluster conditions

Returns the server's list of what is wrong with the cluster and with Pilot's own work on it: one entry per condition, worst first (by source, then severity, then age, then code). The MCP tool get_cluster_conditions and the chat assistant read this same list, so every surface gives the same verdict. The list is built from cached state with each health check of the cluster (every 30 seconds), and what one health check observed is judged once; a request issues no Kafka request.

Severity. critical is kept for risks to Kafka availability, warning needs attention, info is context and not a fault. Under-replication that running partition moves explain is info (kafka.partitions.catching_up), and a broker in maintenance is info.

Life of a condition. A critical condition and the outcome of a rolling restart show with the first evaluation that sees them. Any other warning or info condition shows after two consecutive evaluations, an evidence.* condition after its input has been unreadable for 60 seconds. A condition that stops matching stays listed with state: resolving for 60 seconds and at least two evaluations, then moves to the resolved history, which keeps up to 500 conditions for 24 hours and is returned with includeResolved=true. A condition that returns three times within 15 minutes is intermittent and is then held for 5 minutes. A condition whose input could not be read is kept as last seen with stale: true: an input that cannot be read raises nothing and resolves nothing. scope.kafka says how current the Kafka observation behind the whole list is; a list without critical or warning conditions is a verdict on the cluster only while it is current.

History. Pilot keeps the conditions on the compacted topic __pilot_conditions, so a restart or an HA failover continues the list with the same id, since and flapCount. Without that topic the list starts empty. revision changes whenever the list, its history or scope changes in anything but a lastSeen time; it also differs between two Pilot processes or leaderships.

Codes are a stable contract. A code never changes once shipped. Codes that end in a colon carry the entity after it:

Code Severity
kafka.partitions.offline critical
kafka.controller.unhealthy critical
kafka.brokers.majority_unavailable critical
kafka.broker.offline:<brokerId> critical; info when the broker holds no replicas
kafka.broker.maintenance:<brokerId> info
kafka.partitions.under_replicated warning
kafka.broker.maintenance_under_replicated:<brokerId> warning
kafka.partitions.catching_up info
kafka.partitions.below_min_isr warning
kafka.racks.violations warning
evidence.kafka.health warning
evidence.kafka.brokers warning
evidence.kafka.racks warning
evidence.ha.topology warning
operations.ha.mutations_paused warning
operations.ha.outcome_unconfirmed:<operationId> warning
operations.ha.absent_broker_wait:<operationId> warning
operations.ha.identity_hold:<operationId> warning
operations.ha.leader_wait:<operationId> warning
operations.ha.send_hold:<operationId> warning
operations.ha.agents_off:<operationId> warning
operations.rolling_restart.failed:<restartId> warning
operations.rolling_restart.cancelled:<restartId> warning
pilot.agents.unmatched info
license.expired warning
license.invalid warning
license.missing info
license.trial info
license.start_required info

A standalone Pilot raises no operations.ha.* condition and no evidence.ha.topology. An operations.ha.* hold that names no operation has no :<operationId> suffix.

Authenticated like every read and free of the license. In HA mode only the active replica with monitoring readiness answers; a standby or a replica in a handover refuses with 503 like every other read.

Authorizations:
sessionCookiepatAuthbearerAuth
query Parameters
includeResolved
boolean
Default: false

Also return the conditions resolved within the last 24 hours under resolved, newest first, cut by the same limit.

limit
integer >= 0
Default: 100

Maximum number of conditions to return in conditions, and in resolved. 0 selects the default; a value above 500 is lowered to 500. counts, worstSeverity and total always describe every open condition.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Get the Kafka bootstrap connection state

Reports whether Pilot has connected to the Kafka cluster since it started. In standalone mode Pilot serves the UI and this endpoint before the cluster is reachable and retries the connection in the background with exponential backoff, so a wrong or unreachable KAFKA_BOOTSTRAP_SERVERS no longer stops the process. Retries start after 1s and double up to 30s, or up to 5 minutes while Kafka refuses the connection (refused: for example a failed SASL login, an untrusted broker certificate or a client configuration error). connecting means no attempt has failed yet, unreachable that the last attempt failed, starting that Kafka answered and Pilot is loading its state, and connected that the full API is serving.

The state covers the first connection only. Once connected it stays connected; broker availability after that is reported by /cluster/health and /ready.

In HA mode there is no waiting phase: a standby has no API listener, and only the active replica serves this endpoint, once its monitoring is ready. It answers connected with the values of its promotion's Kafka client for this active lifetime: the bootstrap servers, the attempts the promotion's wait for Kafka made, when the last attempt began and when Kafka answered. Before monitoring is ready it answers 503 with code: HA_NOT_READY.

This endpoint is public so the UI can show the state before login. With authentication enabled, detailsHidden is true and the response omits bootstrapServers and lastError. refused names no broker and no error, so it is present in both cases.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Get follower lag metrics

Returns fresh validated follower lag at cluster, broker, topic, and partition levels. Partial observations return 200 with coverage and brokerErrors. Healthy broker rows continue updating while unavailable broker rows are omitted and incomplete aggregate values are null. A filtered known broker with unavailable measurements has null values and incomplete coverage. Topic and partition lag coverage identify their assigned follower scope independently of other topics. Zero lag is valid only when measurement evidence supports it; unknown leader evidence, unobserved ISR membership, negative offsets, or zero offsets outside ISR without a usable estimate remain unavailable. collectedAt and topologyObservedAt preserve source timestamps. Global collection or assignment metadata failures return an error. Partial observations never update strict operational caches or publish partial totals as cluster metrics. Unknown topic or broker filters return 404.

Authorizations:
sessionCookiepatAuthbearerAuth
query Parameters
topic
string

Filter to a specific topic (includes per-partition detail)

broker
integer

Filter to a specific broker

summary
boolean
Default: false

When true, omits per-partition details from topics (smaller response)

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Refresh cluster metadata

Manually triggers a metadata refresh for the cluster and sampler

Authorizations:
sessionCookiepatAuthbearerAuth

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "timestamp": "2019-08-24T14:15:22Z",
  • "message": "string",
  • "successful_components": [
    ],
  • "failed_components": [
    ]
}

Partitions

Partition activity and monitoring

Get partition activity

Returns real-time partition activity data including sampling statistics and rates

Authorizations:
sessionCookiepatAuthbearerAuth
query Parameters
minimal
boolean
Default: false

When true, returns core partition metadata, rates, samplingStatus, lastSampled, rateObservedAt and diskMeasuredAt while excluding detailed message and health fields.

fields
string
Example: fields=topic,partition,leader,replicas,isr,messageRate,byteRate,minISR

Comma-separated list of fields to include per partition (e.g. "topic,partition,leader,replicas,isr,messageRate,byteRate"). Only specified fields are returned. Applies after minimal/full mode field population.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Redistribution

Partition redistribution operations

Redistribute topic partitions

Redistributes all partitions of a topic using the specified strategy. Previews use a metadata snapshot no more than 60 seconds old without synchronous broker requests. If recent metadata is unavailable, retry after the next metadata refresh. Applying changes still performs live availability and safety checks. A preview needs no license; applying needs a valid license. In HA mode a live redistribution requires an Idempotency-Key and administrative mutation readiness, and its plan is accepted exactly as planned as one operation of kind redistribution before the answer; the reassignments.apply event is delivered once from the journal, and a forced drop below min.insync.replicas is audited before the accept. The answer is the standalone one with data.operationId, or 202 with data.status pending and its progress while a worker writes a large accept. Repeating the request with the same key and input answers 202 already_accepted with the operation; other input under the key returns 409 IDEMPOTENCY_CONFLICT. Another outstanding operation or an accept being written refuses a live request as another reassignment operation does; a preview ignores them. A preview and its live request alike refuse what the plan's content keeps the HA executor from running. When every planned move failed, the leader whose run ended the operation, a successor that resumed it included, records reassignments.apply with status 500, as standalone does.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
topic
required
string

Name of the topic to redistribute

query Parameters
force
boolean
Default: false

Bypass soft / in-flight pre-flight checks for a live (non-preview) redistribution, and override the min.insync.replicas guard when the target replication factor would drop a partition below its min.insync.replicas (writes with acks=all would stop). The override is audited. The cluster hard-health pre-flight (controller_unhealthy, controller_unreachable, majority_brokers_unavailable, sustained_isr_shrink, offline_partitions) is always enforced and is NOT overridable by force. controller_unreachable means a controller resolved from cluster metadata but answers no controller-routed request, which is what a lost KRaft controller quorum looks like.

header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode for a live request; bounded stable key for retrying the same input.

Request Body schema: application/json
strategy
required
string
Enum: "ROUND_ROBIN" "RANDOM" "BALANCED" "RACK_AWARE"

Redistribution strategy to use

excludedBrokers
Array of integers <int32> [ items <int32 > ]

Broker IDs to exclude from redistribution

Responses

Request samples

Content type
application/json
{
  • "strategy": "BALANCED",
  • "excludedBrokers": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "reassignmentId": "string",
  • "data": {
    }
}

Redistribute single partition

Redistributes a single partition to different brokers. A preview needs no license; applying needs a valid license. In HA mode a live redistribution requires an Idempotency-Key and administrative mutation readiness, and its plan is accepted as one operation of kind redistribution that names the partition, before the answer; the reassignments.apply event is delivered once from the journal. The answer is the standalone one with data.operationId, or 202 with data.status pending while a worker writes the accept. Repeating the request with the same key and input answers 202 already_accepted with the operation; other input under the key returns 409 IDEMPOTENCY_CONFLICT. Another outstanding operation or an accept being written refuses a live request as another reassignment operation does. A preview and its live request alike refuse a replica added on a broker in maintenance (409 HA_MAINTENANCE_TARGET), which the HA executor never sends. When the planned move failed, the leader whose run ended the operation records reassignments.apply with status 500 and the operation as reassignmentId, as standalone does.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
topic
required
string

Name of the topic

partition
required
integer <int32>

Partition number to redistribute

header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode for a live request; bounded stable key for retrying the same input.

Request Body schema: application/json
replicas
required
Array of integers <int32> non-empty unique [ items <int32 > >= 0 ]

Ordered target broker IDs. Empty, duplicate, or negative IDs are rejected for previews and live requests.

preferredLeader
integer <int32>

Preferred leader broker ID; zero preserves the submitted replica order. A preview that inserts a leader outside the submitted replicas requires cached rack metadata covering all affected brokers. If that metadata is unavailable, select a leader already in the replica assignment or retry after metadata refresh.

preview
boolean
Default: false

Return the planned assignment without applying it. Previews may explore reduced replication factors; live requests enforce the current replication and minimum ISR safety floors.

Responses

Request samples

Content type
application/json
{
  • "replicas": [
    ],
  • "preview": true
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "reassignmentId": "string",
  • "data": {
    }
}

Bulk partition reassignment

Plans a move for each listed partition of the topic and, unless every entry is a preview, executes the planned live moves as one monitored reassignment operation (strategy BULK_MANUAL) through the throttled streaming path the other redistribute endpoints use. The call returns once execution has started; follow it with GET /reassignments/{id} using the returned bulkId, or stop it with POST /reassignments/{id}/cancel. Each entry is validated and planned on its own. An entry with an empty, duplicate or negative replica set, a partition listed more than once, a live replica set that would shrink the replication factor below its safety floor, or a plan that fails is reported in results with success=false and is never executed; the remaining live entries still run. A request whose live entries are all rejected starts nothing and returns 200 with started=false. Every request with a live entry is audited as reassignments.apply, including the entries that were not executed. Preview entries never change the cluster. Requires a valid license, also for preview-only requests. In HA mode a request with a live entry requires an Idempotency-Key and administrative mutation readiness, and is refused as another reassignment operation refuses it while an operation is outstanding or an accept is being written. An entry that adds a replica on a broker in maintenance, which the HA executor never sends, or that the HA executor cannot run is reported in results with success=false like the other refused entries, preview entries included. The planned live changes are accepted as one operation of kind bulk before the answer, which names it as bulkId and operationId, or answers 202 with status pending while a worker writes the accept; the reassignments.apply event, which names at most 20 of the entries that were not executed and counts the rest, is delivered once from the journal. Repeating the request with the same key and input answers 202 already_accepted with the operation; other input under the key returns 409 IDEMPOTENCY_CONFLICT. When every planned move failed, the leader whose run ended the operation records reassignments.apply with status 500, as standalone does.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
topic
required
string

Name of the topic

header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode for a live request; bounded stable key for retrying the same input.

Request Body schema: application/json
description
string

Optional description for the bulk operation

required
Array of objects non-empty

One entry per partition to move. Entries are validated, planned and reported independently.

Responses

Request samples

Content type
application/json
{
  • "description": "Rebalancing user-events topic for better distribution",
  • "partitions": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true,
  • "topic": "user-events",
  • "description": "Rebalancing user-events topic for better distribution",
  • "started": true,
  • "bulkId": "bulk-user-events-1790413459-1",
  • "message": "Bulk reassignment of 1 partition(s) of topic user-events started - executing with throttling. Monitor reassignments for progress.",
  • "results": [
    ]
}

Brokers

Broker management operations

Get broker racks

Returns the rack layout for rack-aware algorithms

Authorizations:
sessionCookiepatAuthbearerAuth

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": [
    ]
}

Drain brokers for maintenance

Drains one or more brokers in one operation: every replica on them moves once, straight onto its final broker, and the brokers enter maintenance. targetBrokers limits where the replicas go; without it every online broker outside the drain and outside maintenance is eligible. Targets govern data placement only: a partition led by a drained broker gets the least-loaded in-sync surviving replica as its new leader. preview=true returns the plan and changes nothing. The checks are strict: unknown brokers, unusable targets, a replication-factor shortfall, a rack collapse the drain introduces and a partition left below min.insync.replicas are refused, in previews too. While Kafka reassigns a partition with a replica on a drained broker, the drain is refused with reassignments_in_flight, previews included: mid-move, Kafka lists the old and the new replicas, and a plan made then would inflate the replication factor. When that status cannot be read, the drain is refused with reassignment_status_unavailable. force=true accepts a reduced replication factor and rack collapses (audited as broker.maintenance.set.override); it never overrides min.insync.replicas, the hard-health check or a running reassignment. An unforced drain whose replication-factor shortfall force could not fix, because the forced plan would leave a partition below min.insync.replicas, is refused with below_min_isr instead of rf_shortfall. A live drain starts one monitored bulk reassignment with strategy MAINTENANCE-BROKER- (ascending, comma separated, for example MAINTENANCE-BROKER-1,4) and returns. When the moves end, Pilot re-reads the cluster metadata and records every partition that still has a replica on a drained broker in the bulk's error and as a broker.maintenance.residual audit event. No rebalance follows a drain. Brokers leave maintenance one at a time through DELETE /brokers/{brokerId}/maintenance. In HA mode a live drain requires an Idempotency-Key and administrative mutation readiness, and its plan is accepted as one operation of kind drain before the answer: the drained brokers' maintenance flags commit with the operation, and the broker.maintenance.set event is delivered once from the journal. The answer is the standalone one with data.operationId, or 202 with data.status pending and its progress while a worker writes a large accept. Repeating the request with the same key and input answers 202 already_accepted with the operation, also once the brokers are in maintenance; other input under the key returns 409 IDEMPOTENCY_CONFLICT. A drain with nothing to move writes the flags as fenced broker-state writes, one per broker, and starts no operation, so its key is not kept: a repeat finds the brokers in maintenance and answers 409 already_in_maintenance, a safe end state. A write that fails after earlier ones committed leaves those brokers in maintenance and records broker.maintenance.set with status 500, and a write of unknown outcome answers 503 HA_UNCERTAIN. A preview answers as standalone's does: another outstanding operation or an accept being written refuses only the live drain (operation_in_progress), and so does an unknown outcome (HA_UNCERTAIN). A preview and its live drain alike refuse what the plan's content keeps the HA executor from running: a replica added on a broker in maintenance (invalid_target) and a row it cannot run (409 HA_UNSUPPORTED). When the drain ends, the leader whose run ended it, a successor that resumed it included, records as standalone does a run in which every planned move failed (broker.maintenance.set with status 500) and the partitions left on a drained broker (broker.maintenance.residual).

Authorizations:
sessionCookiepatAuthbearerAuth
header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode for a live drain; bounded stable key for retrying the same input.

Request Body schema: application/json
brokerIds
required
Array of integers <int32> non-empty [ items <int32 > >= 0 ]

Brokers to drain. Duplicates are ignored.

targetBrokers
Array of integers <int32> [ items <int32 > >= 0 ]

Brokers that may receive the replicas. Omitted or empty: every online broker outside the drain and outside maintenance. A drained broker is refused with invalid_request; a target in maintenance, offline or unknown with invalid_target.

preview
boolean
Default: false

Return the plan and change nothing

force
boolean
Default: false

Accept a reduced replication factor and rack collapses (audited). Never overrides min.insync.replicas, the hard-health check or a running reassignment.

changesLimit
integer >= 0

Return at most this many partitionChanges. When the plan has more, the heaviest are listed, heaviest first (largest estimatedBytes, then topic and partition). 0 returns none. Omitted, or at least the number of changes: every change in plan order. Only the response is bounded; a live drain moves every partition and audits every change.

Responses

Request samples

Content type
application/json
{
  • "brokerIds": [
    ],
  • "targetBrokers": [
    ],
  • "preview": true,
  • "force": false
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    },
  • "rackCollapses": [
    ],
  • "rackCollapsesTotal": 0
}

Set broker maintenance mode

Drains one broker through the same flow as POST /brokers/maintenance with this endpoint's original, lenient checks: unusable targetBrokers are ignored rather than refused, rack collapses are reported in rackCollapses but not refused, and min.insync.replicas is checked only for live drains. A drain that cannot preserve any partition's replication factor is rejected with 409 listing the affected partitions unless the request body sets force=true, which drains with reduced replication factor (the override is audited). force may reduce the replication factor but never below a partition's min.insync.replicas: a live drain that would push a partition below min.insync.replicas (writes with acks=all would stop) is rejected with 409 even under force and is NOT overridable. A non-preview drain is also rejected with 409 while the cluster has a hard-health emergency (unhealthy controller, majority of brokers down, or sustained ISR shrink); that block is never overridable by force. A drain, preview or not, is refused with reassignments_in_flight while Kafka reassigns one of the broker's partitions, and with reassignment_status_unavailable when that cannot be read, like POST /brokers/maintenance. A live drain reports partitions left on the broker like POST /brokers/maintenance, and no rebalance follows it. Error responses carry a reason code. In HA mode a live drain requires an Idempotency-Key and administrative mutation readiness, and its plan is accepted as one operation of kind drain before the answer: the drained brokers' maintenance flags commit with the operation, and the broker.maintenance.set event is delivered once from the journal. The answer is the standalone one with data.operationId, or 202 with data.status pending and its progress while a worker writes a large accept. Repeating the request with the same key and input answers 202 already_accepted with the operation, also once the brokers are in maintenance; other input under the key returns 409 IDEMPOTENCY_CONFLICT. A drain with nothing to move writes the flags as fenced broker-state writes, one per broker, and starts no operation, so its key is not kept: a repeat finds the brokers in maintenance and answers 409 already_in_maintenance, a safe end state. A write that fails after earlier ones committed leaves those brokers in maintenance and records broker.maintenance.set with status 500, and a write of unknown outcome answers 503 HA_UNCERTAIN. A preview answers as standalone's does: another outstanding operation or an accept being written refuses only the live drain (operation_in_progress), and so does an unknown outcome (HA_UNCERTAIN). A preview and its live drain alike refuse what the plan's content keeps the HA executor from running: a replica added on a broker in maintenance (invalid_target) and a row it cannot run (409 HA_UNSUPPORTED). When the drain ends, the leader whose run ended it, a successor that resumed it included, records as standalone does a run in which every planned move failed (broker.maintenance.set with status 500) and the partitions left on a drained broker (broker.maintenance.residual).

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
brokerId
required
integer <int32>

ID of the broker to put in maintenance mode

header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode for a live drain; bounded stable key for retrying the same input.

Request Body schema: application/json
strategy
string
Enum: "ROUND_ROBIN" "RANDOM" "BALANCED" "RACK_AWARE"

Accepted for compatibility and ignored; the drain planner places replicas rack-aware

preserveLeaders
boolean
Default: true

Accepted for compatibility and ignored; leadership moves only off the drained broker

preview
boolean
Default: false

If true, only return a preview of changes without executing them

force
boolean
Default: false

Allow maintenance even if it causes under-replicated partitions

targetBrokers
Array of integers

Optional list of specific brokers to move partitions to; drained, maintenance, offline and unknown brokers are ignored. If not provided, partitions will be distributed across all available brokers.

changesLimit
integer >= 0

Return at most this many partitionChanges. When the plan has more, the heaviest are listed, heaviest first (largest estimatedBytes, then topic and partition). 0 returns none. Omitted, or at least the number of changes: every change in plan order. Only the response is bounded; a live drain moves every partition and audits every change.

Responses

Request samples

Content type
application/json
{
  • "strategy": "RACK_AWARE",
  • "preserveLeaders": true,
  • "preview": false,
  • "force": false,
  • "targetBrokers": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    },
  • "rackCollapses": [
    ],
  • "rackCollapsesTotal": 0
}

Remove broker from maintenance mode

Removes a broker from maintenance mode. preview=true in the optional body answers the removal without changing anything. In HA mode the removal is one fenced broker-state write that stores the broker offline, as standalone does, and needs administrative readiness; it is allowed while a drain of the broker still runs, since the drain set the maintenance flag once, when it was accepted. A preview is a read.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
brokerId
required
integer <int32>

ID of the broker to remove from maintenance mode

Request Body schema: application/json
preview
boolean
Default: false

Answer the removal without changing anything.

Responses

Request samples

Content type
application/json
{
  • "preview": false
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string"
}

Move broker log directories

Moves replicas stored in source log directories to target log directories on the specified broker. In HA mode the move requires an Idempotency-Key and administrative mutation readiness; it is planned from a fresh read of the broker's log directories with standalone's planner and refusals and accepted as one administrative operation of kind logdir, which runs beside a data movement. The HA answers, the checks right before the send and the read-back of a lost answer are those of POST /topics/{topic}/logdirs/move; the broker.logdirs.move event is delivered once from the journal when every partition has its outcome, at the broker's answer as standalone records it, also by a successor, while the operation still watches the copies.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
brokerId
required
integer <int32> >= 0

ID of the broker to move log directories on

header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same input.

Request Body schema: application/json
strategy
string
Default: "BALANCE_ALL"
Enum: "BALANCE_ALL" "BALANCE_SELECTED"

Move strategy. Both strategies use the same two-pass balancing algorithm (disk size first, then partition count). BALANCE_ALL operates on all log dirs. BALANCE_SELECTED operates on the specified source + target dirs only.

sourceLogDirs
Array of strings

Log directory paths to move replicas from (required for BALANCE_SELECTED)

targetLogDirs
Array of strings

Log directory paths to move replicas to (required for BALANCE_SELECTED)

Responses

Request samples

Content type
application/json
{
  • "strategy": "BALANCE_ALL",
  • "sourceLogDirs": [
    ],
  • "targetLogDirs": [
    ]
}

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "data": {
    }
}

Topic Configuration

Topic configuration management

Get topic configuration

Returns the configuration for a specific topic

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
topic
required
string

Name of the topic

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "configs": {
    }
}

Update topic configuration

Updates the configuration for a specific topic. In HA mode the change requires an Idempotency-Key and administrative mutation readiness. Pilot reads the topic fresh and accepts the change as one administrative operation of kind topic-config, which runs beside a data movement: only the requested keys are sent, a value equal to the cluster default deletes the topic's own value, and keys the topic already shows are left out. A topic Kafka does not know, or one that already shows every requested value, accepts no operation and is answered and recorded as in standalone mode. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation and status accepted when the wait or the request ends first. Repeating the request with the same key and input waits the same way and answers the ended change's outcome, else 202 already_accepted; other input under the key returns 409 IDEMPOTENCY_CONFLICT. Pilot sends the change once. A request that got no answer is decided from the configuration Pilot reads back, once its resolution window has passed (116 seconds after the send was authorized, or 90 seconds after the send call returned if that is later) unless the read shows the change earlier. The topics.config.update event is delivered once from the journal when the operation ends, also by a successor after a failover.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
topic
required
string

Name of the topic

header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same input.

Request Body schema: application/json
required
object

Configuration key-value pairs to update

Responses

Request samples

Content type
application/json
{
  • "configs": {
    }
}

Response samples

Content type
application/json
{
  • "success": true,
  • "topic": "string",
  • "message": "Topic configuration updated successfully",
  • "error": "string",
  • "operationId": "string"
}

Get explicit topic configuration

Returns only the configuration values whose source is the topic itself. Values the topic inherits from the broker's static or dynamic configuration, or from Kafka's defaults, are left out. An empty leader.replication.throttled.replicas or follower.replication.throttled.replicas is left out too: it equals the default, and Kafka keeps the key after the last entry is removed.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
topic
required
string

Name of the topic

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "configs": {
    }
}

Get default configurations

Returns cluster default topic configurations

Authorizations:
sessionCookiepatAuthbearerAuth

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "defaults": {
    },
  • "message": "string"
}

Bulk update topic configurations

Updates configurations for multiple topics in a single operation. In HA mode the change requires an Idempotency-Key and administrative mutation readiness, and it is accepted as one administrative operation of kind topic-config, one row per topic, planned and sent as PUT /topics/{topic}/config describes, one topic after another in request order. Topics Kafka does not know, or that already show every requested value, are decided when Pilot plans the change; when no topic is left to send, no operation is accepted and the change is answered and recorded as in standalone mode. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation and status accepted when the wait or the request ends first, or status pending while a worker writes a large accept. Repeating the request with the same key and input waits the same way and answers each topic's outcome once the operation ended, else 202 already_accepted or pending; other input under the key returns 409 IDEMPOTENCY_CONFLICT. The topics.config.update.bulk event is delivered once from the journal when the operation ends, also by a successor after a failover.

Authorizations:
sessionCookiepatAuthbearerAuth
header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same input.

Request Body schema: application/json
required
Array of objects

Responses

Request samples

Content type
application/json
{
  • "topics": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Search topics by configuration

Searches topics based on configuration criteria

Authorizations:
sessionCookiepatAuthbearerAuth
Request Body schema: application/json
required
Array of objects

Responses

Request samples

Content type
application/json
{
  • "criteria": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true,
  • "topics": [
    ],
  • "totalMatches": 0
}

Client Quotas

Client quota management. Kafka names a quota entity exactly: a user or client ID with leading or trailing whitespace is refused with 400 Invalid quota entity on every entity route, and the MCP update_quota and delete_quota tools refuse it too. The effective quota of GET /quotas?includeEffective=true, POST /quotas/resolve and the MCP resolve_quota tool is resolved for the name exactly as sent.

List client quotas

List configured client quota entities, including defaults.

Authorizations:
sessionCookiepatAuthbearerAuth
query Parameters
entityType
string
Enum: "default" "default-user" "default-client-id" "default-user-client-id" "user" "user-default-client-id" "client-id" "user-client-id"

Filter by entity scope

user
string

User principal to filter by

clientId
string

Client ID to filter by

includeEffective
boolean

Include effective quotas for the provided user/clientId pair

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Resolve effective client quotas

Resolve the effective quotas for a user and client-id pair.

Authorizations:
sessionCookiepatAuthbearerAuth
Request Body schema: application/json
user
string
clientId
string

Responses

Request samples

Content type
application/json
{
  • "user": "string",
  • "clientId": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Get default client quotas

Returns configured default quotas (empty if none configured).

Authorizations:
sessionCookiepatAuthbearerAuth

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Update default client quotas

Create or update default quota keys. In HA mode the change requires an Idempotency-Key and administrative mutation readiness, and runs as one administrative operation of kind quota beside a data movement. Pilot reads the entity as standalone does; a change the entity already shows accepts no operation and is answered as in standalone mode. Right before the send Pilot reads the entity again and sends every key it does not show yet in one AlterClientQuotas entry, once. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation. A repeat with the same key and input waits the same way and answers the ended change, else 202 already_accepted; other input under the key returns 409 IDEMPOTENCY_CONFLICT. A request that got no answer is decided from the quotas Pilot reads back, once its resolution window has passed unless the read shows the change earlier. The quotas.update event is delivered once from the journal when the operation ends, also by a successor after a failover, and records a failed change too.

Authorizations:
sessionCookiepatAuthbearerAuth
header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same input.

Request Body schema: application/json
object
delete
Array of strings

Responses

Request samples

Content type
application/json
{
  • "set": {
    },
  • "delete": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Delete default client quotas

Removes all configured default quotas. In HA mode the delete requires an Idempotency-Key and administrative mutation readiness, and runs as one administrative operation of kind quota beside a data movement. Pilot reads the entity as standalone does and deletes the keys that read shows; an entity without quotas accepts no operation and is answered as in standalone mode. Right before the send Pilot reads the entity again and removes every planned key it still shows in one AlterClientQuotas entry, once. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation. A repeat with the same key waits the same way and answers the ended delete, else 202 already_accepted; another request under the key returns 409 IDEMPOTENCY_CONFLICT. A request that got no answer is decided from the quotas Pilot reads back. The quotas.delete event is delivered once from the journal when the operation ends, also by a successor after a failover, and records a failed delete too.

Authorizations:
sessionCookiepatAuthbearerAuth
header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same input.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Get default user quotas

Returns quotas for the default user entity.

Authorizations:
sessionCookiepatAuthbearerAuth

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Update default user quotas

Create or update default user quota keys. In HA mode the change requires an Idempotency-Key and administrative mutation readiness, and runs as one administrative operation of kind quota beside a data movement. Pilot reads the entity as standalone does; a change the entity already shows accepts no operation and is answered as in standalone mode. Right before the send Pilot reads the entity again and sends every key it does not show yet in one AlterClientQuotas entry, once. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation. A repeat with the same key and input waits the same way and answers the ended change, else 202 already_accepted; other input under the key returns 409 IDEMPOTENCY_CONFLICT. A request that got no answer is decided from the quotas Pilot reads back, once its resolution window has passed unless the read shows the change earlier. The quotas.update event is delivered once from the journal when the operation ends, also by a successor after a failover, and records a failed change too.

Authorizations:
sessionCookiepatAuthbearerAuth
header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same input.

Request Body schema: application/json
object
delete
Array of strings

Responses

Request samples

Content type
application/json
{
  • "set": {
    },
  • "delete": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Delete default user quotas

Removes all configured default user quotas. In HA mode the delete requires an Idempotency-Key and administrative mutation readiness, and runs as one administrative operation of kind quota beside a data movement. Pilot reads the entity as standalone does and deletes the keys that read shows; an entity without quotas accepts no operation and is answered as in standalone mode. Right before the send Pilot reads the entity again and removes every planned key it still shows in one AlterClientQuotas entry, once. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation. A repeat with the same key waits the same way and answers the ended delete, else 202 already_accepted; another request under the key returns 409 IDEMPOTENCY_CONFLICT. A request that got no answer is decided from the quotas Pilot reads back. The quotas.delete event is delivered once from the journal when the operation ends, also by a successor after a failover, and records a failed delete too.

Authorizations:
sessionCookiepatAuthbearerAuth
header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same input.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Get default client-id quotas

Returns quotas for the default client-id entity.

Authorizations:
sessionCookiepatAuthbearerAuth

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Update default client-id quotas

Create or update default client-id quota keys. In HA mode the change requires an Idempotency-Key and administrative mutation readiness, and runs as one administrative operation of kind quota beside a data movement. Pilot reads the entity as standalone does; a change the entity already shows accepts no operation and is answered as in standalone mode. Right before the send Pilot reads the entity again and sends every key it does not show yet in one AlterClientQuotas entry, once. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation. A repeat with the same key and input waits the same way and answers the ended change, else 202 already_accepted; other input under the key returns 409 IDEMPOTENCY_CONFLICT. A request that got no answer is decided from the quotas Pilot reads back, once its resolution window has passed unless the read shows the change earlier. The quotas.update event is delivered once from the journal when the operation ends, also by a successor after a failover, and records a failed change too.

Authorizations:
sessionCookiepatAuthbearerAuth
header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same input.

Request Body schema: application/json
object
delete
Array of strings

Responses

Request samples

Content type
application/json
{
  • "set": {
    },
  • "delete": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Delete default client-id quotas

Removes all configured default client-id quotas. In HA mode the delete requires an Idempotency-Key and administrative mutation readiness, and runs as one administrative operation of kind quota beside a data movement. Pilot reads the entity as standalone does and deletes the keys that read shows; an entity without quotas accepts no operation and is answered as in standalone mode. Right before the send Pilot reads the entity again and removes every planned key it still shows in one AlterClientQuotas entry, once. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation. A repeat with the same key waits the same way and answers the ended delete, else 202 already_accepted; another request under the key returns 409 IDEMPOTENCY_CONFLICT. A request that got no answer is decided from the quotas Pilot reads back. The quotas.delete event is delivered once from the journal when the operation ends, also by a successor after a failover, and records a failed delete too.

Authorizations:
sessionCookiepatAuthbearerAuth
header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same input.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Get default user + client-id quotas

Returns configured quotas for the default user and specific client-id.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
clientId
required
string

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Update default user + client-id quotas

Create or update quotas for the default user and client-id. In HA mode the change requires an Idempotency-Key and administrative mutation readiness, and runs as one administrative operation of kind quota beside a data movement. Pilot reads the entity as standalone does; a change the entity already shows accepts no operation and is answered as in standalone mode. Right before the send Pilot reads the entity again and sends every key it does not show yet in one AlterClientQuotas entry, once. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation. A repeat with the same key and input waits the same way and answers the ended change, else 202 already_accepted; other input under the key returns 409 IDEMPOTENCY_CONFLICT. A request that got no answer is decided from the quotas Pilot reads back, once its resolution window has passed unless the read shows the change earlier. The quotas.update event is delivered once from the journal when the operation ends, also by a successor after a failover, and records a failed change too.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
clientId
required
string
header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same input.

Request Body schema: application/json
object
delete
Array of strings

Responses

Request samples

Content type
application/json
{
  • "set": {
    },
  • "delete": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Delete default user + client-id quotas

Removes all quotas for the default user and client-id. In HA mode the delete requires an Idempotency-Key and administrative mutation readiness, and runs as one administrative operation of kind quota beside a data movement. Pilot reads the entity as standalone does and deletes the keys that read shows; an entity without quotas accepts no operation and is answered as in standalone mode. Right before the send Pilot reads the entity again and removes every planned key it still shows in one AlterClientQuotas entry, once. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation. A repeat with the same key waits the same way and answers the ended delete, else 202 already_accepted; another request under the key returns 409 IDEMPOTENCY_CONFLICT. A request that got no answer is decided from the quotas Pilot reads back. The quotas.delete event is delivered once from the journal when the operation ends, also by a successor after a failover, and records a failed delete too.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
clientId
required
string
header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same input.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Get user + default client-id quotas

Returns configured quotas for a user across all client-ids.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
user
required
string

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Update user + default client-id quotas

Create or update quotas for a user across all client-ids. In HA mode the change requires an Idempotency-Key and administrative mutation readiness, and runs as one administrative operation of kind quota beside a data movement. Pilot reads the entity as standalone does; a change the entity already shows accepts no operation and is answered as in standalone mode. Right before the send Pilot reads the entity again and sends every key it does not show yet in one AlterClientQuotas entry, once. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation. A repeat with the same key and input waits the same way and answers the ended change, else 202 already_accepted; other input under the key returns 409 IDEMPOTENCY_CONFLICT. A request that got no answer is decided from the quotas Pilot reads back, once its resolution window has passed unless the read shows the change earlier. The quotas.update event is delivered once from the journal when the operation ends, also by a successor after a failover, and records a failed change too.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
user
required
string
header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same input.

Request Body schema: application/json
object
delete
Array of strings

Responses

Request samples

Content type
application/json
{
  • "set": {
    },
  • "delete": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Delete user + default client-id quotas

Removes all quotas for a user across all client-ids. In HA mode the delete requires an Idempotency-Key and administrative mutation readiness, and runs as one administrative operation of kind quota beside a data movement. Pilot reads the entity as standalone does and deletes the keys that read shows; an entity without quotas accepts no operation and is answered as in standalone mode. Right before the send Pilot reads the entity again and removes every planned key it still shows in one AlterClientQuotas entry, once. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation. A repeat with the same key waits the same way and answers the ended delete, else 202 already_accepted; another request under the key returns 409 IDEMPOTENCY_CONFLICT. A request that got no answer is decided from the quotas Pilot reads back. The quotas.delete event is delivered once from the journal when the operation ends, also by a successor after a failover, and records a failed delete too.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
user
required
string
header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same input.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Get user quotas

Returns configured quotas for a user.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
user
required
string

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Update user quotas

Create or update user quota keys. In HA mode the change requires an Idempotency-Key and administrative mutation readiness, and runs as one administrative operation of kind quota beside a data movement. Pilot reads the entity as standalone does; a change the entity already shows accepts no operation and is answered as in standalone mode. Right before the send Pilot reads the entity again and sends every key it does not show yet in one AlterClientQuotas entry, once. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation. A repeat with the same key and input waits the same way and answers the ended change, else 202 already_accepted; other input under the key returns 409 IDEMPOTENCY_CONFLICT. A request that got no answer is decided from the quotas Pilot reads back, once its resolution window has passed unless the read shows the change earlier. The quotas.update event is delivered once from the journal when the operation ends, also by a successor after a failover, and records a failed change too.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
user
required
string
header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same input.

Request Body schema: application/json
object
delete
Array of strings

Responses

Request samples

Content type
application/json
{
  • "set": {
    },
  • "delete": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Delete user quotas

Removes all quotas for a user. In HA mode the delete requires an Idempotency-Key and administrative mutation readiness, and runs as one administrative operation of kind quota beside a data movement. Pilot reads the entity as standalone does and deletes the keys that read shows; an entity without quotas accepts no operation and is answered as in standalone mode. Right before the send Pilot reads the entity again and removes every planned key it still shows in one AlterClientQuotas entry, once. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation. A repeat with the same key waits the same way and answers the ended delete, else 202 already_accepted; another request under the key returns 409 IDEMPOTENCY_CONFLICT. A request that got no answer is decided from the quotas Pilot reads back. The quotas.delete event is delivered once from the journal when the operation ends, also by a successor after a failover, and records a failed delete too.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
user
required
string
header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same input.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Get client-id quotas

Returns configured quotas for a client-id.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
clientId
required
string

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Update client-id quotas

Create or update client-id quota keys. In HA mode the change requires an Idempotency-Key and administrative mutation readiness, and runs as one administrative operation of kind quota beside a data movement. Pilot reads the entity as standalone does; a change the entity already shows accepts no operation and is answered as in standalone mode. Right before the send Pilot reads the entity again and sends every key it does not show yet in one AlterClientQuotas entry, once. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation. A repeat with the same key and input waits the same way and answers the ended change, else 202 already_accepted; other input under the key returns 409 IDEMPOTENCY_CONFLICT. A request that got no answer is decided from the quotas Pilot reads back, once its resolution window has passed unless the read shows the change earlier. The quotas.update event is delivered once from the journal when the operation ends, also by a successor after a failover, and records a failed change too.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
clientId
required
string
header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same input.

Request Body schema: application/json
object
delete
Array of strings

Responses

Request samples

Content type
application/json
{
  • "set": {
    },
  • "delete": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Delete client-id quotas

Removes all quotas for a client-id. In HA mode the delete requires an Idempotency-Key and administrative mutation readiness, and runs as one administrative operation of kind quota beside a data movement. Pilot reads the entity as standalone does and deletes the keys that read shows; an entity without quotas accepts no operation and is answered as in standalone mode. Right before the send Pilot reads the entity again and removes every planned key it still shows in one AlterClientQuotas entry, once. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation. A repeat with the same key waits the same way and answers the ended delete, else 202 already_accepted; another request under the key returns 409 IDEMPOTENCY_CONFLICT. A request that got no answer is decided from the quotas Pilot reads back. The quotas.delete event is delivered once from the journal when the operation ends, also by a successor after a failover, and records a failed delete too.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
clientId
required
string
header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same input.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Get combined user and client-id quotas

Returns configured quotas for a user and client-id pair.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
user
required
string
clientId
required
string

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Update combined quotas

Create or update quotas for a user and client-id pair. In HA mode the change requires an Idempotency-Key and administrative mutation readiness, and runs as one administrative operation of kind quota beside a data movement. Pilot reads the entity as standalone does; a change the entity already shows accepts no operation and is answered as in standalone mode. Right before the send Pilot reads the entity again and sends every key it does not show yet in one AlterClientQuotas entry, once. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation. A repeat with the same key and input waits the same way and answers the ended change, else 202 already_accepted; other input under the key returns 409 IDEMPOTENCY_CONFLICT. A request that got no answer is decided from the quotas Pilot reads back, once its resolution window has passed unless the read shows the change earlier. The quotas.update event is delivered once from the journal when the operation ends, also by a successor after a failover, and records a failed change too.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
user
required
string
clientId
required
string
header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same input.

Request Body schema: application/json
object
delete
Array of strings

Responses

Request samples

Content type
application/json
{
  • "set": {
    },
  • "delete": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Delete combined quotas

Removes all quotas for a user and client-id pair. In HA mode the delete requires an Idempotency-Key and administrative mutation readiness, and runs as one administrative operation of kind quota beside a data movement. Pilot reads the entity as standalone does and deletes the keys that read shows; an entity without quotas accepts no operation and is answered as in standalone mode. Right before the send Pilot reads the entity again and removes every planned key it still shows in one AlterClientQuotas entry, once. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation. A repeat with the same key waits the same way and answers the ended delete, else 202 already_accepted; another request under the key returns 409 IDEMPOTENCY_CONFLICT. A request that got no answer is decided from the quotas Pilot reads back. The quotas.delete event is delivered once from the journal when the operation ends, also by a successor after a failover, and records a failed delete too.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
user
required
string
clientId
required
string
header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same input.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Proposals

Redistribution proposal operations

Retrieve current redistribution proposal

Returns the current multi-objective, rack-aware redistribution proposal. Proposals are generated in the background on a schedule. With immediate: true, requests a new calculation using current measurements and cooldowns instead of reusing cached moves. If a proposal is not yet available or generation is in progress, the endpoint returns HTTP 202 with success: true and metadata describing the next generation time.

Authorizations:
sessionCookiepatAuthbearerAuth
Request Body schema: application/json
immediate
boolean
Default: false

If true, requests synchronous recalculation with current measurements and cooldowns, bypassing cached proposal reuse

Responses

Request samples

Content type
application/json
{
  • "immediate": false
}

Response samples

Content type
application/json
{
  • "decision": {
    },
  • "success": true,
  • "proposal": {
    },
  • "advisories": {
    },
  • "balance": {
    },
  • "metadata": {
    }
}

List proposals

Returns proposals from the in-memory store (newest first)

Authorizations:
sessionCookiepatAuthbearerAuth

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": [
    ]
}

Get proposal by ID

Returns a stored proposal by ID. Special ID "current" returns the currently generated proposal if available.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
proposalId
required
string

Responses

Response samples

Content type
application/json
Example
{
  • "decision": {
    },
  • "success": true,
  • "metadata": {
    },
  • "balance": {
    },
  • "data": {
    }
}

Delete proposal by ID

Deletes a stored proposal by ID. Use "current" to clear the in-memory current proposal cache.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
proposalId
required
string

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string"
}

Apply proposal

Applies the specified proposal. Special ID "current" applies the current proposal. At apply time a LIVE hard-health pre-flight is run against the current HealthMonitor state (not the proposal's generation-time snapshot); hard cluster-health blockers (controller_unhealthy, controller_unreachable, majority_brokers_unavailable, sustained_isr_shrink, offline_partitions) reject the apply with 409 and can never be overridden. controller_unreachable means a controller resolved from cluster metadata but answers no controller-routed request, which is what a lost KRaft controller quorum looks like. The proposal is also rejected with 409 when the engine marks it unsafe (proposal.safety.safeToApply=false) or when the cluster topology / config changed since the proposal was generated (stale fingerprint). Soft unsafe reasons and the stale-fingerprint refusal can be overridden with force=true (the override is audited). Optional balancing moves must also pass the same material benefit and high-confidence admission rules as activity self-healing, with a plan checked within the last two minutes (proposal.checkedAt). Repair-only proposals are exempt from balance benefit, confidence, and age requirements. Benefit, confidence, and age refusals can be explicitly overridden with force=true and are audited. If filtering or target cleanup changes an optional balance plan, it must be regenerated so the remaining moves receive a new benefit calculation. In HA mode Idempotency-Key is required. The immutable filtered assignment and policy plan commits before the 202 acceptance response. Repeating the same key, proposal reference, force value and actor returns the original operation ID even during uncertainty. Changing those inputs under an existing key returns 409. With throttle management on, a principal without the AlterConfigs ACLs Pilot needs is refused with 409 HA_THROTTLE_PERMISSION, whose message names the missing ACLs, before anything is accepted; throttle configs Kafka rejects permanently (an invalid request or config, a policy violation or an unsupported version) are refused with 409 HA_THROTTLE_PREFLIGHT_REJECTED, whose message names the resource and Kafka's code. A plan that needs more than one journal batch is accepted by a server worker: the response is 202 with status pending and its progress, and repeating the request polls it. A pending accept holds the mutation slot and is aborted through the cancel endpoint with its operation ID. A failed accept answers polls with its cause for 10 minutes. After a failover a pending accept is gone; fetch the current proposal and apply it with a new key. Standalone responses remain unchanged.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
proposalId
required
string
query Parameters
force
boolean
Default: false

Override a soft unsafe-to-apply signal, stale calculation, insufficient balance benefit or confidence, or an active-reassignment pre-flight check. Hard cluster-health blockers, partition moves found at startup or the check for them, and a changed optional balance plan cannot be overridden. The override is recorded in the audit log.

header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same input.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Get current proposal

Returns the currently generated proposal and its default application admission decision if available. Live safety and topology are checked again when applying.

Authorizations:
sessionCookiepatAuthbearerAuth

Responses

Response samples

Content type
application/json
{
  • "decision": {
    },
  • "success": true,
  • "balance": {
    },
  • "advisories": {
    },
  • "metadata": {
    },
  • "data": {
    }
}

Optimization

Partition optimization recommendations

Get partition optimization

Returns partition optimization recommendations

Authorizations:
sessionCookiepatAuthbearerAuth

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": { }
}

Leadership

Leader election operations

Cluster-wide preferred leader election

Triggers preferred leader election for the entire cluster or specified topics. In HA mode the election requires an Idempotency-Key and administrative mutation readiness, and the partitions that need an election are accepted as one operation of kind election, each to be elected to its first replica, before anything is sent; the ple.trigger event is delivered once from the journal. The request waits up to 30 seconds for the election to end and answers 200 with the standalone response and operationId, or 202 with the operation and status accepted when the wait or the request ends first, or status pending while a worker writes a large accept. Repeating the request with the same key and input waits the same way and answers 200 with the results of the planned partitions and operationId once the election ended, else 202 already_accepted or pending; other input under the key returns 409 IDEMPOTENCY_CONFLICT. The election runs beside a data movement, as in standalone mode, without the mutation slot; another election, outstanding or being accepted, 8 administrative operations not answered yet, or 128 in all, and an accept that waited a minute behind the accepts ahead of it return 409 HA_BUSY with Retry-After. An election in which no partition needs one, each led by its preferred leader, failed at its lookup or being reassigned, accepts no operation and is answered and recorded as in standalone mode. A partition being reassigned, one Kafka lists or one the running data movement has yet to finish moving, is not elected and fails with the reason, and expectedLeaders are refused. When a checked partition was not elected, one that failed before the election included, the leader whose run ended the operation, a successor that resumed it included, records ple.trigger with status 207 when some partitions were elected and 500 when none were, as standalone does; an election a cancel ended records nothing more.

Authorizations:
sessionCookiepatAuthbearerAuth
header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same input.

Request Body schema: application/json

Optional. When omitted or empty, triggers election for all non-internal topics cluster-wide.

required
Array of objects

List of topics and their partitions for preferred leader election

Responses

Request samples

Content type
application/json
{
  • "topics": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true,
  • "electedLeaders": [
    ],
  • "error": "ElectLeaders failed: kafka server: The client is not authorized to send this request type",
  • "operationId": "string"
}

Topic-scoped preferred leader election

Triggers preferred leader election for the topic in the path. A body without topics elects every partition of that topic; entries without a topic name apply to it. A body that names another topic is rejected. In HA mode the election requires an Idempotency-Key and administrative mutation readiness, and the partitions that need an election are accepted as one operation of kind election, each to be elected to its first replica, before anything is sent; the ple.trigger event is delivered once from the journal. The request waits up to 30 seconds for the election to end and answers 200 with the standalone response and operationId, or 202 with the operation and status accepted when the wait or the request ends first, or status pending while a worker writes a large accept. Repeating the request with the same key and input waits the same way and answers 200 with the results of the planned partitions and operationId once the election ended, else 202 already_accepted or pending; other input under the key returns 409 IDEMPOTENCY_CONFLICT. The election runs beside a data movement, as in standalone mode, without the mutation slot; another election, outstanding or being accepted, 8 administrative operations not answered yet, or 128 in all, and an accept that waited a minute behind the accepts ahead of it return 409 HA_BUSY with Retry-After. An election in which no partition needs one, each led by its preferred leader, failed at its lookup or being reassigned, accepts no operation and is answered and recorded as in standalone mode. A partition being reassigned, one Kafka lists or one the running data movement has yet to finish moving, is not elected and fails with the reason, and expectedLeaders are refused. When a checked partition was not elected, one that failed before the election included, the leader whose run ended the operation, a successor that resumed it included, records ple.trigger with status 207 when some partitions were elected and 500 when none were, as standalone does; an election a cancel ended records nothing more. The operation names the topic.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
topic
required
string

Name of the topic

header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same input.

Request Body schema: application/json
required
Array of objects

List of topics and their partitions for preferred leader election

Responses

Request samples

Content type
application/json
{
  • "topics": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true,
  • "electedLeaders": [
    ],
  • "error": "ElectLeaders failed: kafka server: The client is not authorized to send this request type",
  • "operationId": "string"
}

Reassignments

Reassignment monitoring and management

Get all reassignments

Returns the unfinished single and bulk reassignments, the history and a summary, without the success/data envelope. Each bulk lists at most 1000 assignments, with counts over all of them; full=true lists every assignment. While unfinished, the moves Kafka listed in progress when Pilot started form one bulk record in active_bulk, with observed set on it and on its assignments.

Authorizations:
sessionCookiepatAuthbearerAuth
query Parameters
summary
boolean
Default: false

With true, returns only the summary and mode "summary".

active_only
boolean
Default: false

With true, returns an empty history; summary.total_in_history keeps the full count.

full
boolean
Default: false

With true, lists every assignment of each bulk instead of at most 1000.

Responses

Response samples

Content type
application/json
Example
{
  • "active_single": [
    ],
  • "active_bulk": [
    ],
  • "history": [
    ],
  • "summary": {
    }
}

Get active reassignments

Returns unfinished partition reassignments, including queued work, as objects keyed by reassignment ID, without the success/data envelope. Assignment status PENDING means not yet submitted; IN_PROGRESS means execution has started. The number of unfinished assignments can exceed the per-broker concurrency cap.

Authorizations:
sessionCookiepatAuthbearerAuth

Responses

Response samples

Content type
application/json
{
  • "active_single": {
    },
  • "active_bulk": {
    }
}

Get reassignment history

Returns the most recent finished reassignments, single and bulk, up to 1000, with their count, without the success/data envelope.

Authorizations:
sessionCookiepatAuthbearerAuth

Responses

Response samples

Content type
application/json
{
  • "history": [
    ],
  • "count": 0
}

Get reassignment tuning

Returns current throttle and concurrency settings for active reassignments. In both modes throttleManaged reports whether Pilot manages replication throttles (PILOT_THROTTLE_MANAGED). In HA mode a value that matches the shared execution-limits record reports the source shared, and config.maxConcurrentMovesPerBrokerMax names HA's cap on maxConcurrentMovesPerBroker.

Authorizations:
sessionCookiepatAuthbearerAuth

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Update reassignment tuning

Updates throttle rate and/or max concurrent moves per broker for active reassignments. In HA mode the change merges with the shared execution limits and commits to the HA journal before any Pilot process applies it, so it survives failover. An unresolved administrative attempt does not block it. With throttle management on, the running operation applies a new throttle rate within a tick; the request itself changes no broker configuration, and the response note says whether an operation is running. The HA response echoes throttleManaged. Standalone stores a new throttle rate and applies it to the brokers of running moves; while throttle management is off it only stores the rate and answers with throttleManaged false and a note.

Authorizations:
sessionCookiepatAuthbearerAuth
Request Body schema: application/json
throttleRateMBps
number <double>

Throttle rate in MB/s (leader/follower)

maxConcurrentMovesPerBroker
integer

Maximum concurrent moves per broker (at most 1000 in HA mode)

Responses

Request samples

Content type
application/json
{
  • "throttleRateMBps": 150,
  • "maxConcurrentMovesPerBroker": 20
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Resync reassignment monitor

Forces an immediate reassessment of active reassignments to clear stale states

Authorizations:
sessionCookiepatAuthbearerAuth

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string"
}

Get reassignment by ID

Returns one reassignment, single or bulk, unfinished or from the history, without the success/data envelope. During HA recovery, an accepted operation whose local status is still loading returns 503 with HA_NOT_READY and a reassignment status is recovering reason. Retry this read within the recovery deadline. Unknown IDs return 404 once the journal has replayed and the operation history is restored; available local records remain readable.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
id
required
string

ID of the reassignment

Responses

Response samples

Content type
application/json
Example
{
  • "id": "string",
  • "topic": "string",
  • "partition": 0,
  • "old_replicas": [
    ],
  • "new_replicas": [
    ],
  • "old_leader": 0,
  • "status": "PENDING",
  • "start_time": "2019-08-24T14:15:22Z",
  • "end_time": "2019-08-24T14:15:22Z",
  • "error": "string",
  • "preferred_leader": 0,
  • "leader_election_ran": true,
  • "retry_count": 0,
  • "last_retry_time": "2019-08-24T14:15:22Z",
  • "submission_failed": true,
  • "last_submission_time": "2019-08-24T14:15:22Z",
  • "kafka_api_check_failed": 0,
  • "first_mismatch_detected": "2019-08-24T14:15:22Z",
  • "in_current_wave": true,
  • "observed": true
}

Search bulk reassignment assignments

Returns the assignments of an active or finished bulk reassignment that match the search and status, at most 1000, chosen and ordered as in GET /reassignments. The counts cover every assignment of the bulk.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
id
required
string

ID of the bulk reassignment

query Parameters
search
string

Case-insensitive substring of an assignment's topic, partition and ID joined by single spaces, such as orders 3 for partition 3 of topic orders; surrounding spaces are ignored

status
string
Default: "all"
Enum: "all" "PENDING" "IN_PROGRESS" "COMPLETED" "FAILED" "TIMEOUT" "CANCELLED" "STUCK" "RETRYING" "UNCERTAIN"

Only assignments with this status, ignoring case; all matches every status

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "assignments": [
    ],
  • "matched": 0,
  • "assignment_counts": {
    }
}

Cancel reassignment

Cancels a running partition reassignment, or every unfinished one with the id all. A cancel needs no license, also after the license lapsed; authentication and the write scope still apply. Pilot does not cancel the moves it found in progress at start (observed): cancelling one by ID answers 400 with the reason, and cancelling all leaves them running and reports how many in data.skippedObservedCount. In HA mode, commits cancellation intent for the accepted owned operation. It does not wait for the executor's current step, only for a journal write already in progress or, for a pending accept, for the abort's outcome. The all alias applies to that operation, or to the accept being written. With the operation ID of a pending accept, or all while an accept is being written, it requests an abort that takes effect before the accept's next batch and answers once it knows the abort's outcome: abort_requested when the accept stopped before its header committed, or cancel_requested when the header committed first and the operation's cancel intent is durable. It waits for that outcome at most 25 seconds: 10 seconds for the batch in flight plus the longer of the cancel intent's write (10 seconds) and the abort's audit write (5 seconds for the audit delivery plus 10 seconds for a journal outbox write). Without an outcome by then it answers 503 HA_UNCERTAIN, or HA_NOT_LEADER once leadership ended. The abort is recorded as reassignments.accept.abort when it takes effect, one per requester, also when the client went away. A cancel of all answers with standalone's fields: message, cancelledCount and skippedObservedCount; with no data movement outstanding it answers 200 as standalone does with nothing active, cancelledCount 0, and writes nothing. Uncertain administrative outcomes remain unresolved; external reassignments are never adopted or canceled. Standalone responses remain unchanged.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
id
required
string

ID of the reassignment to cancel, or all

Responses

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "message": "string",
  • "id": "string"
}

License

License status and management

Get license status

Returns current license state and limits. A demo license reports whether it waits for a start (start_required); in HA mode a demo license that waits reports start_required false and the reason "demo licenses start only in standalone mode".

Authorizations:
sessionCookiepatAuthbearerAuth

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Start the demo license

Starts the window of the loaded demo license (a license with license.window, plan demo) on this cluster. Sending {"acceptTerms": true} accepts the Calinora Terms and confirms that the caller uses Pilot for business; the Terms are published at https://www.calinora.io/legal/. The window runs for window_seconds from this start; Pilot never starts it by itself. A repeated start while the window runs answers 200 again without recording or auditing a second start.

The route is not license-gated: the start is what activates the demo license. With authentication enabled it needs a caller that may mutate, like every REST mutation (a read-scope PAT gets 403). A browser request from another website is refused with CROSS_ORIGIN_REQUEST before the body is read; requests without browser headers, such as curl, pass. Standalone mode only: an HA Pilot refuses the start with DEMO_LICENSE_STANDALONE_ONLY before any other check and records nothing. MCP and the chat assistant offer no tool for it. A recorded start is audited once as license.update at /license/demo/start with the user, termsAccepted: true and the Terms URL, also when its write failed and the record landed later.

Authorizations:
sessionCookiepatAuthbearerAuth
Request Body schema: application/json
acceptTerms
required
boolean

Must be true: the caller accepts the Calinora Terms for this demo and confirms that the caller uses Pilot for business. The Terms are published at https://www.calinora.io/legal/.

Responses

Request samples

Content type
application/json
{
  • "acceptTerms": true
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Get third-party license notices

Returns the full text of third-party software license notices for all open-source dependencies bundled into the Pilot binary.

Authorizations:
sessionCookiepatAuthbearerAuth

Responses

Response samples

Content type
application/json
{
  • "success": false,
  • "error": "string",
  • "code": "KAFKA_UNAVAILABLE",
  • "details": "string",
  • "reason": "string",
  • "affectedBrokerIds": [
    ],
  • "operationId": "string"
}

Consumer Groups

Consumer group monitoring, lag tracking, and management

List consumer groups

Returns all consumer groups with state, member count, total lag, and velocity. Uses cached data from the background collector when available.

Authorizations:
sessionCookiepatAuthbearerAuth
query Parameters
state
string

Filter by group state (e.g. Stable, Rebalancing, Dead, Empty)

search
string

Filter by group name substring (case-insensitive)

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": [
    ]
}

Get consumer group summary

Returns aggregated consumer group statistics including total groups, lag, groups by state, and consumption rates by topic and broker. Requires the background collector to be running.

Authorizations:
sessionCookiepatAuthbearerAuth

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Get consumer group detail

Returns detailed information about a single consumer group including members, assignments, and coordinator.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
group
required
string

Consumer group ID

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Delete a consumer group

Deletes a consumer group from the cluster. The group must be empty (no active members) before it can be deleted. Requires a valid license (management mode). In HA mode the delete requires an Idempotency-Key and administrative mutation readiness. Pilot reads the group fresh: a group with members answers 409, as standalone, without an operation; otherwise Pilot accepts the delete as one administrative operation of kind consumer-group, which runs beside a data movement and checks right before its send, on the group's coordinator, that the group is still Empty or Dead. A Dead group's delete is sent as standalone sends it, since Kafka describes a group of the consumer protocol as Dead, and Kafka answers the delete of a group it does not know with 404. The request waits up to 10 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation and status accepted when the wait or the request ends first. Repeating the request with the same key waits the same way and answers the ended delete's outcome, else 202 already_accepted; another request under the key returns 409 IDEMPOTENCY_CONFLICT. Pilot sends the delete once. A delete that got no answer is decided as soon as the group is gone; a group that still exists once the request's resolution window has passed (116 seconds after the send was authorized, or 90 seconds after the send call returned if that is later) leaves the outcome unknown, as does any such delete of a group that was Dead before the send. The consumer-groups.delete event is delivered once from the journal when the operation ends, also by a successor after a failover.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
group
required
string

Consumer group ID

header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same request.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Get consumer group lag

Returns per-partition lag for a consumer group, including current offsets, log end offsets, lag, velocity, and consumer ID assignments. Uses cached data from the background collector when available.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
group
required
string

Consumer group ID

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Reset consumer group offsets

Resets the committed offsets for a consumer group in Empty or Dead state with no active members. Supports multiple strategies: earliest, latest, to a specific timestamp, or to specific offsets per partition. Both dry-run and apply require a valid mutation license and eligible group state. A preview does not reserve broker state. There is no atomic expected-current-offset guard or server-side retained-range validation. An apply error may follow partial changes; read committed offsets again to verify every requested target.

In HA mode the dry run is a read, and a reset requires an Idempotency-Key and administrative mutation readiness. Pilot plans the reset from fresh reads as standalone does: a group with members answers 409, and a reset of no partition answers and is recorded as in standalone mode, without an operation. Otherwise Pilot accepts the reset as one administrative operation of kind consumer-group, which runs beside a data movement. Right before each send, on the group's coordinator, Pilot checks that the group is still Empty or Dead, reads the committed offsets again and resolves earliest, latest and timestamp targets then; each request is one OffsetCommit of up to a few hundred partitions, so a large reset sends several. The request waits up to 30 seconds for the operation to end and answers as standalone does, with operationId, or 202 with the operation and status accepted when the wait or the request ends first. Repeating the request with the same key and input waits the same way and answers the ended reset's outcome, else 202 already_accepted; other input under the key returns 409 IDEMPOTENCY_CONFLICT. Pilot sends each request once. A request that got no answer is decided early once the group shows every target and at least one target differs from the earlier offset, otherwise by one read once its resolution window has passed (116 seconds after the send was authorized, or 90 seconds after the send call returned if that is later): every target means applied, the earlier offsets not applied, any other offsets an unknown outcome. The consumer-groups.reset-offsets event is delivered once from the journal when the operation ends, also by a successor after a failover, one per reset; partitions beyond 512 KiB are recorded in further events.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
group
required
string

Consumer group ID

header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode for a reset that is not a dry run; bounded stable key for retrying the same input.

Request Body schema: application/json
strategy
required
string
Enum: "earliest" "latest" "timestamp" "specific"

The offset reset strategy to use

topics
Array of strings

Optional topic scope. Omitted or empty selects all topics with committed offsets. A nonempty list additionally filters scope; specific strategy selects only explicitly listed topic-partition pairs.

timestamp
integer <int64>

Unix timestamp in milliseconds. Required when strategy is "timestamp".

object

Nested map of topic name to partition ID to exact target offset. Required for specific strategy. Only explicitly listed committed topic-partition pairs are selected; omitted pairs are unchanged. Offset values are JSON integers, not strings.

dryRun
boolean
Default: false

If true, preview resolved targets without committing them. Eligibility and mutation licensing are still required.

Responses

Request samples

Content type
application/json
{
  • "strategy": "earliest",
  • "topics": [
    ],
  • "timestamp": 1708099200000,
  • "offsets": {
    },
  • "dryRun": false
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Auth

Authentication operations

List configured OAuth providers

Lists the enabled OAuth2/OIDC providers. Public so the login screen can render before a user authenticates.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "providers": [
    ]
}

Start OAuth login flow

Redirects to the provider's authorization endpoint. Public because it is the entry point of the login flow.

path Parameters
provider
required
string
query Parameters
redirect
string

URL-encoded path to return to after a successful login.

Responses

OAuth callback endpoint

Completes the authorization code exchange and establishes the session cookie. Public because the caller is not yet authenticated. 403 is returned when the identity is rejected by a configured organization, email domain, group or audience allowlist, or when the token carries no usable identity.

path Parameters
provider
required
string

Responses

Get current authenticated user

Returns the session identity. Accepts the session cookie only; a bearer token is not sufficient.

Authorizations:
sessionCookie

Responses

Logout current session

Deletes the server-side session and clears the cookie. Returns 200 even when no session cookie is present.

Authorizations:
sessionCookie

Responses

Refresh access token using refresh token

Refreshes the session's provider access token. Accepts the session cookie only. HA provider tokens remain local to the active process, so provider-token refresh after promotion requires login again; the identity session remains valid until expiry.

Authorizations:
sessionCookie

Responses

Access Tokens

Personal access token management for API and MCP authentication

List personal access tokens

Returns the authenticated user's PATs that are not revoked. Expired tokens stay listed with expired: true so they can be revoked; they no longer authenticate and do not count toward the per-user limit (AUTH_PAT_MAX_PER_USER). Token hashes are never exposed.

Authorizations:
sessionCookiepatAuthbearerAuth

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": [
    ]
}

Create a personal access token

Creates a new PAT for the authenticated user. The plaintext token is returned once in the response and cannot be retrieved again. Requires an OAuth session (PATs cannot create other PATs).

Authorizations:
sessionCookiepatAuthbearerAuth
Request Body schema: application/json
name
required
string

Display name for the token

scope
string
Default: "read"
Enum: "read" "write"

Token scope. read allows GET operations only. write allows all operations.

expiresInDays
integer

Number of days until expiry. 0 or omitted means no expiry.

Responses

Request samples

Content type
application/json
{
  • "name": "My MCP token",
  • "scope": "read",
  • "expiresInDays": 90
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Revoke a personal access token

Revokes a PAT by ID. Only the owning user can revoke their own tokens. MCP clients using this token will lose access immediately. Requires an OAuth session.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
tokenId
required
string

The token ID to revoke

Responses

Response samples

Content type
application/json
Example
{
  • "success": false,
  • "error": "string",
  • "code": "KAFKA_UNAVAILABLE",
  • "details": "string",
  • "reason": "string",
  • "affectedBrokerIds": [
    ],
  • "operationId": "string"
}

MCP

Model Context Protocol server for AI agent integration

MCP resource-specific OAuth protected resource metadata

Public OAuth discovery metadata for the configured MCP resource, without client secrets.

Responses

Response samples

Content type
application/json
{}

Check mcp resource-specific OAuth metadata availability

Responses

Fallback OAuth protected resource metadata

Public OAuth discovery metadata for the configured MCP resource, without client secrets.

Responses

Response samples

Content type
application/json
{}

Check fallback OAuth metadata availability

Responses

Model Context Protocol endpoint

MCP (Model Context Protocol) server endpoint for AI agent integration. Accepts MCP JSON-RPC messages and returns tool results. Supports Streamable HTTP transport.

When authentication is enabled, requires a valid Authorization: Bearer <pat_token> header.

The server exposes 54 tools for Kafka cluster management across two categories:

  • Read tools (30+): Cluster overview, topic configs, consumer groups, ACLs, quotas, proposals, message browsing
  • Mutate tools (20+): Reassignments, ACL/quota management, leader elections, maintenance mode

Mutate tools are refused for every caller unless PILOT_MCP_WRITE_ENABLED=true and a sign-in provider is configured (GET /integrations/mcp reports the state). With write access on, a mutate tool needs a write scope PAT or an MCP OAuth token with the write scope and then executes directly, without an approval step. A read scope credential and a request without a scope (no sign-in, a browser session or a generic OAuth bearer) may call read tools only. A refusal is a tool result with isError: true that names the reason.

Client configuration example (VS Code / GitHub Copilot):

{
  "servers": {
    "pilot": {
      "type": "http",
      "url": "https://pilot.example.com/api/v1/mcp",
      "headers": {
        "Authorization": "Bearer pat_your_token_here"
      }
    }
  }
}
Authorizations:
sessionCookiepatAuthbearerAuth
Request Body schema: application/json
object

MCP JSON-RPC message

Responses

Request samples

Content type
application/json
{ }

Get MCP write access

Reports whether the MCP endpoint is served and whether its clients can change the cluster. The state comes from PILOT_MCP_ENABLED, PILOT_MCP_WRITE_ENABLED and the sign-in configuration at startup; it cannot be changed at runtime.

Authorizations:
sessionCookiepatAuthbearerAuth

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Audit

Audit log viewing and filtering

List audit log events

Returns audit log events from the in-memory store with optional server-side filtering. Requires authentication. Only available when audit logging is enabled.

Authorizations:
sessionCookiepatAuthbearerAuth
query Parameters
action
string

Filter by exact action type (e.g., topics.config.update, broker.maintenance.set). Changes Pilot makes on its own use selfheal.apply, selfheal.cancel, throttles.reconcile, reassignments.timeout-revert, broker.expire, agent.renew-cert, license.update and the rolling-restart.* step actions.

userId
string

Filter by user ID (case-insensitive substring match)

after
string <date-time>

Only include events after this RFC3339 timestamp (inclusive)

before
string <date-time>

Only include events before this RFC3339 timestamp (inclusive)

search
string

Free-text search across userId, path, action, and topic fields

limit
integer
Default: 500

Maximum number of events to return

offset
integer
Default: 0

Pagination offset

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Review a recorded reassignment reversal

Read-only review of the complete assignment scope stored for one audit event. This endpoint does not require a mutation license and never submits changes. It resolves the event on the server, verifies that every audit chunk is present, and reads current assignments, broker availability, topic min.insync.replicas, and active Kafka reassignments. Client-supplied before/after arrays are ignored. An event an MCP or assistant tool call recorded has no path and is selected by ts and proposalId. The selector's further fields (eventId, method, userId, requestedBy, topic, partition, query), copied from the event as GET /audit-log lists it, tell apart events recorded at the same time; a selector that still matches more than one recorded operation returns 503. A reversal preserves replication factor and restores the original ordered replicas. Targets below Pilot's desired replication factor are blocked. Partitions already at the original assignment are explicit no-ops; drift blocks the entire scope. Target replica zero is the preferred leader, not a promise to restore the historical actual leader. Unsafe current state returns 200 with allowed=false. While Pilot starts no moves of its own, allowed is false and reason holds the error a submission is refused with. The fingerprint covers reviewed current state and target scope, excluding checkedAt.

Authorizations:
sessionCookiepatAuthbearerAuth
Request Body schema: application/json
action
required
string
Value: "reassignments.apply"
required
object (AuditEventSelector)

Names one stored reassignments.apply event. ts, path and proposalId must match exactly. Each further field, copied from the event as GET /audit-log lists it, must match too when it is sent and names nothing when it is empty or absent, as a query entry with an empty value does; together they tell apart events recorded at the same time, such as two MCP or assistant tool calls without a path in the same second.

Responses

Request samples

Content type
application/json
{
  • "action": "reassignments.apply",
  • "event": {
    }
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Revert an audited change

Reverses a previously audited mutation. A valid mutation license is required. For non-reassignment actions, the before/after fields retain their existing inverse-operation semantics and a successful response returns reverted=true.

For reassignments.apply, event and reviewFingerprint are required; an event an MCP or assistant tool call recorded is selected without a path, as the preview selects it. The server resolves complete stored evidence and repeats the preview checks under the global reassignment mutation slot, including current ordered placement, active native and managed operations, broker availability, maintenance, RF/minISR safety and hard-health preflight. Client replica arrays never define the reversal target. Any blocked or changed evidence rejects the whole request. No-op partitions are excluded explicitly. A nonempty safe reversal returns 202 with an execution ID and runs through the shared throttled executor using normal concurrency limits. Accepted work is not yet completed; follow the execution ID for outcomes. The accepted reversal is audit-logged as reassignments.apply.revert.

In HA mode every revertible action is reverted, and a live request requires an Idempotency-Key of at most 256 bytes and administrative mutation readiness. The revert of a topics.config.update, acls.create, acls.update, acls.delete, quotas.update, quotas.delete or consumer-groups.reset-offsets event runs as an administrative operation of the reverted change's kind (topic-config, acl, quota or consumer-group), beside the data movement, whose acceptance metadata names the reverted action as revert.action. It takes standalone's steps: an acls.create revert deletes the created bindings one at a time and stops at the first that fails, an acls.update revert deletes the new binding and then creates the old one, an acls.delete revert creates the deleted bindings again, a quota revert changes the entity the reverted event's path names, an offset reset revert commits the offsets from before the reset. Each step is planned from fresh reads and sends only what the cluster does not show already; the family's rules hold, so a topic configuration revert of a throttle list on a topic the data movement names answers 409 HA_RESOURCE_CONFLICT. What standalone refuses before any change answers standalone's 500 Revert failed and is recorded at once, and a revert with nothing to change answers reverted without an operation. Otherwise the request waits up to 30 seconds, standalone's revert timeout, and answers standalone's body with the operation as operationId, or 202 with the accepted administrative operation, pending while a worker writes an accept of more than one journal transaction; a repeat under the key answers the ended revert or 202 again, and other input under the key returns 409 IDEMPOTENCY_CONFLICT. An outcome a read-back could not decide answers 500 Revert failed with code HA_OUTCOME_UNKNOWN; it is never sent again. The .revert event, with the reverted event's before and after swapped and the revert's status, is delivered once from the journal, and a successor finishes or resolves a revert its predecessor left.

A reassignments.apply reversal requires administrative mutation readiness, and is refused as another reassignment operation refuses it while an operation is outstanding or an accept is being written. The review's ready rows are accepted as one operation of kind revert, which names the reverted event and the review's fingerprint, before the answer: the standalone 202 with the operation as executionId and operationId, and status pending while a worker writes the accept. The reassignments.apply.revert event is delivered once from the journal. Repeating the request with the same key and input answers 202 already_accepted with the operation; other input under the key returns 409 IDEMPOTENCY_CONFLICT. When every planned move failed, the leader whose run ended the operation records reassignments.apply.revert with status 500, as standalone does.

Authorizations:
sessionCookiepatAuthbearerAuth
header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode for a live request; bounded stable key for retrying the same input.

Request Body schema: application/json
action
required
string

Supported actions: topics.config.update, acls.create, acls.update, acls.delete, quotas.update, quotas.delete, reassignments.apply, consumer-groups.reset-offsets.

object

Required for reassignments.apply; selects trusted server-side evidence

reviewFingerprint
string

Required for reassignments.apply; returned by the current preview

before
any or null

Original state for non-reassignment actions; ignored for reassignments.apply

after
any or null

Recorded resulting state for non-reassignment actions; ignored for reassignments.apply

topic
string

Topic name required for topic configuration reversals

path
string

Original request path required for quota reversals

Responses

Request samples

Content type
application/json
{
  • "action": "string",
  • "event": {
    },
  • "reviewFingerprint": "string",
  • "before": null,
  • "after": null,
  • "topic": "string",
  • "path": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Message Browser

Browse and stream messages from Kafka topics

Browse topic messages

Fetches messages from a Kafka topic with pagination support. Supports seeking by offset, timestamp, or latest/earliest. Returns messages with auto-detected encoding (JSON, text, or binary/base64). Values are truncated by default - use the single message endpoint for full values. Use keySerde/valueSerde to force a specific deserialization mode. For all-partition pagination, pass nextCursor.token as cursor and retain the original partition, direction, filters, and decoders. The token tracks progress independently for each partition. An empty filtered page can still have a continuation; stop only when hasMore is false. Records are ordered in the requested direction within each partition; all-partition pages do not provide a global timestamp ordering.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
topic
required
string

Topic name

query Parameters
partition
integer [ -1 .. 2147483647 ]
Default: -1

Partition to read from (-1 for all partitions)

offset
integer <int64> >= 0

Start reading from this offset. Takes precedence over timestamp and seek.

cursor
string

Opaque continuation token from nextCursor.token. Do not parse or modify it, or combine it with offset or timestamp.

timestamp
integer <int64>

Start reading from messages at/after this Unix millisecond timestamp

seek
string
Default: "latest"
Enum: "earliest" "latest"

Seek to earliest or latest offset (used when neither offset nor timestamp is provided)

limit
integer [ 1 .. 500 ]
Default: 50

Maximum messages and offset positions to scan per page, capped at 500. Filtering or compaction can produce shorter or empty pages with a continuation.

direction
string
Default: "backward"
Enum: "forward" "backward"

Read direction - backward returns newest first, forward returns oldest first

keyFilter
string

Substring filter on message key

valueFilter
string

Substring filter on decoded message value

maxValueSize
integer [ 1 .. 1048576 ]
Default: 10240

Value byte limit, capped at 1 MiB. UTF-8 text ends at a complete code point; binary encodings can expand the returned text.

keySerde
string
Default: "auto"
Enum: "auto" "string" "json" "hex" "base64" "int32" "int64" "float64"

Deserialization mode for message keys

valueSerde
string
Default: "auto"
Enum: "auto" "string" "json" "hex" "base64" "int32" "int64" "float64"

Deserialization mode for message values

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Get a single message

Retrieves a single message at an exact partition and offset. Returns the full untruncated value (up to 1MB). Use this to lazy-load truncated values from the browse endpoint.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
topic
required
string

Topic name

partition
required
integer <int32> >= 0

Partition number

offset
required
integer <int64> >= 0

Message offset

query Parameters
maxValueSize
integer [ 1 .. 1048576 ]
Default: 1048576

Value byte limit, capped at 1 MiB. UTF-8 text ends at a complete code point; binary encodings can expand the returned text.

keySerde
string
Default: "auto"
Enum: "auto" "string" "json" "hex" "base64" "int32" "int64" "float64"

Deserialization mode for message key

valueSerde
string
Default: "auto"
Enum: "auto" "string" "json" "hex" "base64" "int32" "int64" "float64"

Deserialization mode for message value

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Get topic watermarks

Returns the low and high watermark offsets for each partition of a topic. Useful for the UI to show seek controls, progress bars, and partition selection.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
topic
required
string

Topic name

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Live tail topic messages (SSE)

Streams new messages from a topic in real-time using Server-Sent Events (SSE). The connection stays open and sends message events as new messages arrive. HTTP connection establishment does not mean partition readers are ready. A ready event lists all requested partitions once their readers have started. Messages from available partitions can arrive before ready during setup. If any requested partition cannot start or a reader fails, a terminal error event describes the failure and the stream closes; partial coverage is not reported as ready. Records are read from each partition's latest offset at reader startup, including internal topics such as __consumer_offsets. A keepalive event is sent every 15 seconds to prevent timeouts. Close the connection to stop tailing.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
topic
required
string

Topic name

query Parameters
partition
integer [ -1 .. 2147483647 ]
Default: -1

Partition to tail (-1 for all)

maxValueSize
integer [ 1 .. 1048576 ]
Default: 10240

Value byte limit, capped at 1 MiB. UTF-8 text ends at a complete code point; binary encodings can expand the returned text.

keySerde
string
Default: "auto"
Enum: "auto" "string" "json" "hex" "base64" "int32" "int64" "float64"

Deserialization mode for message keys

valueSerde
string
Default: "auto"
Enum: "auto" "string" "json" "hex" "base64" "int32" "int64" "float64"

Deserialization mode for message values

Responses

Response samples

Content type
application/json
{
  • "success": false,
  • "error": "string",
  • "code": "KAFKA_UNAVAILABLE",
  • "details": "string",
  • "reason": "string",
  • "affectedBrokerIds": [
    ],
  • "operationId": "string"
}

Simulator

What-if simulation and blast radius analysis

Run what-if simulation

Simulates hypothetical cluster mutations (broker failures, rack failures, traffic spikes, broker additions, and topic replication-factor changes) and returns the projected cluster state compared to the current state. This is a read-only operation that never affects the live cluster. Replication-factor changes model settled replica assignments, then apply any requested failures. They do not model the transient replica-copying phase.

Authorizations:
sessionCookiepatAuthbearerAuth
Request Body schema: application/json
brokerFailures
Array of integers

List of broker IDs to mark as offline

rackFailures
Array of strings

List of rack names to mark as offline (all brokers in rack)

Array of objects

Hypothetical new brokers to add

object

Existing topic name to projected replication factor. The target cannot exceed the brokers available in the hypothetical cluster. Changes affect only the simulation.

object

Topic name to traffic multiplier (e.g. 2.0 = double traffic)

Responses

Request samples

Content type
application/json
{
  • "brokerFailures": [
    ],
  • "rackFailures": [
    ],
  • "addBrokers": [
    ],
  • "topicRFChanges": {
    },
  • "trafficMultipliers": {
    }
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Analyze blast radius of an entity

Computes the full dependency graph and failure impact for a broker, rack, or topic. Shows affected topics, consumer groups, and a simulated failure scenario. This is a read-only operation.

Authorizations:
sessionCookiepatAuthbearerAuth
Request Body schema: application/json
entityType
string
Enum: "broker" "rack" "topic"

Type of entity to analyze (single-entity mode)

entityId
string

Entity identifier - broker ID, rack name, or topic name (single-entity mode)

brokerFailures
Array of integers <int32> [ items <int32 > ]

Broker IDs to simulate as failed (multi-failure mode)

rackFailures
Array of strings

Rack names to simulate as failed (multi-failure mode)

Responses

Request samples

Content type
application/json
{
  • "entityType": "broker",
  • "entityId": "string",
  • "brokerFailures": [
    ],
  • "rackFailures": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Chat

AI chat assistant for natural-language Kafka cluster management. Mutations require explicit user approval.

Get chat feature status

Returns whether the AI chat assistant feature is enabled and, if so, which model is configured. This endpoint remains available when chat is disabled and returns enabled: false.

Authorizations:
sessionCookiepatAuthbearerAuth

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Create a new chat conversation

Creates a new conversation for the authenticated user. Each user can have up to PILOT_CHAT_MAX_CONVERSATIONS active conversations (default 10). Oldest conversations are evicted when the limit is reached.

Authorizations:
sessionCookiepatAuthbearerAuth
Request Body schema: application/json
title
string

Optional conversation title

Responses

Request samples

Content type
application/json
{
  • "title": "Topic configuration review"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

List user's chat conversations

Returns all active conversations for the authenticated user, ordered by most recently updated.

Authorizations:
sessionCookiepatAuthbearerAuth

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": [
    ]
}

Get a conversation with messages

Returns a single conversation including its full message history.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
id
required
string

Conversation ID

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Delete a conversation

Permanently deletes a conversation and all its messages.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
id
required
string

Conversation ID

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string"
}

Send a message and stream the response (SSE)

Sends a user message to the AI assistant and streams the response back using Server-Sent Events. The assistant can use tools to query and manage the Kafka cluster. Read-only tools execute automatically; mutation tools require explicit approval via the approve/reject endpoints.

SSE Event Types:

  • heartbeat - Keeps the stream active every 10 seconds while processing or awaiting approval
  • status - Processing or provider retry progress, without private reasoning content
  • text_delta - Incremental text content from the assistant
  • tool_use - A tool is being called (includes tool name and arguments)
  • tool_result - Tool execution completed (includes result and status)
  • approval_required - A mutation tool needs user approval before execution; repeated every 10 seconds until resolved
  • done - Response stream complete
  • error - An error occurred during processing

The connection stays open until the assistant finishes responding or the client disconnects. Deduplicate approval events by toolCallId; repeated events do not create a new action or reset its expiry. Rate limited to PILOT_CHAT_RATE_LIMIT messages per user per minute (default 20).

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
id
required
string

Conversation ID

Request Body schema: application/json
content
required
string <= 10000 characters

The user's message text (max 10,000 characters)

Responses

Request samples

Content type
application/json
{
  • "content": "Which topics have min.insync.replicas below 2?"
}

Approve a pending mutation tool call

Approves a pending mutation operation that was requested by the AI assistant during a chat conversation. The tool will be executed and the result sent back to the assistant to continue the conversation. Approval tokens expire after PILOT_CHAT_APPROVAL_TIMEOUT (default 5 minutes).

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
id
required
string

Conversation ID

toolCallId
required
string

Tool call ID from the approval_required SSE event

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string"
}

Reject a pending mutation tool call

Rejects a pending mutation operation. The assistant will be informed of the rejection (with optional reason) and can suggest alternatives.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
id
required
string

Conversation ID

toolCallId
required
string

Tool call ID from the approval_required SSE event

Request Body schema: application/json
reason
string

Optional reason for rejection

Responses

Request samples

Content type
application/json
{
  • "reason": "Not during peak hours"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string"
}

Topics

Move a topic's replicas on a broker to a target log directory

Moves all partition replicas of the topic that currently live on the specified broker to the target log directory. Replicas already on the target are skipped. In HA mode the move requires an Idempotency-Key and administrative mutation readiness. Pilot plans it from a fresh read of the broker's log directories with standalone's planner and refusals and accepts it as one administrative operation of kind logdir, which runs beside a data movement. A partition that a row of the outstanding data movement not ended yet moves to other brokers fails with errorCode -1 and HA_RESOURCE_CONFLICT while the others move, and a move whose every partition it moves answers 409 HA_RESOURCE_CONFLICT. Right before the send Pilot reads the broker's log directories again on the request's own connection: a replica no longer in its source directory, one with a future replica elsewhere, a target directory offline or gone, and a partition a data movement now moves are not sent and fail with errorCode -1 and the reason, while a replica already in, or copying to, its target counts as moved. A broker missing from the cluster metadata for 10 minutes fails its partitions not sent yet the same way. Pilot sends one AlterReplicaLogDirs per batch of the broker's partitions, once. The request waits up to 2 seconds for the broker's answer and answers as standalone does, with data.operationId, or 202 with the operation and standalone's pending counts. A request whose answer got lost is decided from the log directories Pilot reads back: a future replica in its target directory, or the replica already there, decides a partition moved at once; otherwise one read after the resolution window (116 seconds after the send was authorized, or 90 seconds after the send call returned if that is later) decides a replica still in its source directory not moved and one found elsewhere unknown; a broker missing from the cluster metadata is read once it returns, and one missing for 10 minutes settles the request unknown. Repeating the request with the same key and input answers the broker's answer, or 202 already_accepted; other input under the key returns 409 IDEMPOTENCY_CONFLICT. The operation stays outstanding, listed under administrativeOperations in GET /ha, until no future replica of its partitions remains, or their broker has been missing from the cluster metadata, or its log directories unreadable, for 10 minutes, also on a successor after a failover; once answered it no longer counts toward the 8 administrative operations not answered yet. The topic.logdirs.move event is delivered once from the journal when every partition has its outcome, at the broker's answer as standalone records it, also by a successor, while the operation still watches the copies.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
topic
required
string

Topic name

header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same input.

Request Body schema: application/json
brokerId
required
integer <int32> >= 0

Broker hosting the replicas to move

targetLogDir
required
string

Destination log directory on the broker

Responses

Request samples

Content type
application/json
{
  • "brokerId": 0,
  • "targetLogDir": "/var/lib/kafka/data-2"
}

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "data": {
    }
}

Move a single partition replica on a broker to a target log directory

Moves the replica of (topic, partition) on the specified broker to the target log directory. In HA mode the move requires an Idempotency-Key and administrative mutation readiness; it is planned from a fresh read of the broker's log directories with standalone's planner and refusals and accepted as one administrative operation of kind logdir, which runs beside a data movement. The HA answers, the checks right before the send and the read-back of a lost answer are those of POST /topics/{topic}/logdirs/move; the partition.logdirs.move event is delivered once from the journal when every partition has its outcome, at the broker's answer as standalone records it, also by a successor, while the operation still watches the copies.

Authorizations:
sessionCookiepatAuthbearerAuth
path Parameters
topic
required
string

Topic name

partition
required
integer <int32>

Partition index

header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same input.

Request Body schema: application/json
brokerId
required
integer <int32> >= 0

Broker hosting the replica to move

targetLogDir
required
string

Destination log directory on the broker

Responses

Request samples

Content type
application/json
{
  • "brokerId": 0,
  • "targetLogDir": "/var/lib/kafka/data-2"
}

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "data": {
    }
}

ACLs

List ACL bindings

Returns all ACL bindings in the cluster. Supports optional query parameters to filter results by resource type, resource name, pattern type, principal, host, operation, or permission type.

Authorizations:
sessionCookiepatAuthbearerAuth
query Parameters
resourceType
string
Enum: "Topic" "Group" "Cluster" "TransactionalID" "DelegationToken"

Filter by resource type

resourceName
string

Filter by resource name

patternType
string
Enum: "Literal" "Prefixed" "Any" "Match"

Filter by pattern type

principal
string

Filter by principal (e.g. "User:alice")

host
string

Filter by host

operation
string
Enum: "All" "Read" "Write" "Create" "Delete" "Alter" "Describe" "ClusterAction" "DescribeConfigs" "AlterConfigs" "IdempotentWrite" "Any"

Filter by operation

permissionType
string
Enum: "Allow" "Deny" "Any"

Filter by permission type

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Create ACL bindings

Creates one or more ACL bindings. Requires a valid license. For Cluster resource types, the resourceName defaults to "kafka-cluster" if omitted. In HA mode the create requires an Idempotency-Key and administrative mutation readiness. Pilot reads the principals' ACLs fresh and accepts the create as one administrative operation of kind acl, which runs beside a data movement: each step of at most 32 bindings sends one CreateAcls with the bindings the cluster does not hold yet. A create of bindings the cluster holds already, or on a cluster without an authorizer, accepts no operation and is answered and recorded as in standalone mode. The request waits up to 10 seconds for the operation to end and answers as standalone does, with data.operationId, or 202 with the operation and status accepted when the wait or the request ends first. Repeating the request with the same key and input waits the same way and answers the ended create's outcome, else 202 already_accepted; other input under the key returns 409 IDEMPOTENCY_CONFLICT. Pilot sends each step once. A request that got no answer is decided from the ACLs Pilot reads back by each binding's exact filter: early once every binding exists, otherwise once its resolution window has passed (116 seconds after the send was authorized, or 90 seconds after the send call returned if that is later). The acls.create event is delivered once from the journal when the operation ends, also by a successor after a failover.

Authorizations:
sessionCookiepatAuthbearerAuth
header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same input.

Request Body schema: application/json
required
Array of objects (AclBinding) non-empty

List of ACL bindings to create

Responses

Request samples

Content type
application/json
{
  • "bindings": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Update an ACL binding

Replaces an existing ACL binding with a new one. The old binding is deleted and the new binding is created atomically. If creation of the new binding fails, the old binding is restored. Requires a valid license. In HA mode the update requires an Idempotency-Key and administrative mutation readiness, and runs as one administrative operation of kind acl in three steps, each sent once: Pilot deletes the exact old binding, creates the new one, and restores the old one only once Kafka refused the new one or a read-back found it not applied. A successor after a failover continues at the step the journal recorded, so it never leaves the old binding deleted without the new one created or the old one restored. An old binding the cluster does not hold, or a cluster without an authorizer, accepts no operation and is answered as in standalone mode. The request waits up to 10 seconds for the operation to end and answers as standalone does, with data.operationId, or 202 with the operation and status accepted when the wait or the request ends first. Repeating the request with the same key and input waits the same way and answers the ended update's outcome, else 202 already_accepted; other input under the key returns 409 IDEMPOTENCY_CONFLICT. The acls.update event is delivered once from the journal when the operation ends, also by a successor after a failover.

Authorizations:
sessionCookiepatAuthbearerAuth
header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same input.

Request Body schema: application/json
required
object (AclBinding)
required
object (AclBinding)

Responses

Request samples

Content type
application/json
{
  • "old": {
    },
  • "new": {
    }
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Delete ACL bindings

Deletes ACL bindings matching the provided filter criteria. At least one filter field is required to prevent accidental deletion of all ACLs. Requires a valid license. In HA mode the delete requires an Idempotency-Key and administrative mutation readiness. Pilot reads the bindings the filter matches and accepts the delete as one administrative operation of kind acl, which sends one DeleteAcls with the filter, once, and answers the bindings Kafka reports deleted, past 256 KiB of them only their count with deletedOmitted. A filter that matches nothing, or a cluster without an authorizer, accepts no operation and is answered and recorded as in standalone mode. The request waits up to 10 seconds for the operation to end and answers as standalone does, with data.operationId, or 202 with the operation and status accepted when the wait or the request ends first. Repeating the request with the same key and input waits the same way and answers the ended delete's outcome, else 202 already_accepted; other input under the key returns 409 IDEMPOTENCY_CONFLICT. A request that got no answer is decided from a read-back of the filter: early once it matches nothing, otherwise once its resolution window has passed (116 seconds after the send was authorized, or 90 seconds after the send call returned if that is later). The acls.delete event is delivered once from the journal when the operation ends, also by a successor after a failover.

Authorizations:
sessionCookiepatAuthbearerAuth
header Parameters
Idempotency-Key
string [ 1 .. 256 ] characters

Required in HA mode; bounded stable key for retrying the same input.

Request Body schema: application/json
resourceType
string (AclResourceType)
Enum: "Topic" "Group" "Cluster" "TransactionalID" "DelegationToken"

Kafka resource type for the ACL binding

resourceName
string

Filter by resource name

patternType
string (AclPatternType)
Enum: "Literal" "Prefixed" "Any" "Match"

Resource name pattern type

principal
string

Filter by principal

host
string

Filter by host

operation
string (AclOperation)
Enum: "All" "Read" "Write" "Create" "Delete" "Alter" "Describe" "ClusterAction" "DescribeConfigs" "AlterConfigs" "IdempotentWrite" "Any"

Kafka ACL operation

permission
string (AclPermissionType)
Enum: "Allow" "Deny" "Any"

ACL permission type

Responses

Request samples

Content type
application/json
{
  • "resourceType": "Topic",
  • "resourceName": "string",
  • "patternType": "Literal",
  • "principal": "string",
  • "host": "string",
  • "operation": "All",
  • "permission": "Allow"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}