conduktor.io ↗

Kafka ApiVersions Request Wire Format v5 — Binary Protocol Layout

What is ApiVersions?

Clients can use this API to discover version ranges advertised by the connected broker or controller. The result depends on the listener and enabled features. Clients may select a mutually supported version; this does not guarantee semantic compatibility, and unsupported-version errors still require handling. ApiVersions responses always use response header v0, including flexible bodies.

Related Errors

INVALID_REQUEST · REBOOTSTRAP_REQUIRED · UNSUPPORTED_VERSION

Wire Diagram

Request Header v2 · flexible
message_size int32 · 4B
api_key int16 · 2B
api_version int16 · 2B
correlation_id int32 · 4B
client_id? nullable string · int16 length
tagged var
ApiVersionsRequest v5
ClientSoftwareName string (compact)
ClientSoftwareVersion string (compact)
ClusterId? string (compact)
NodeId int32 · 4B
tagged var

Schema & Example

Schema
{
  "ClientSoftwareName": string,
  "ClientSoftwareVersion": string,
  "ClusterId": string?,
  "NodeId": int32
}
Illustrative values (not encoded bytes)
{
  "ClientSoftwareName": "orders",
  "ClientSoftwareVersion": "3.7.0",
  "ClusterId": "dQw4w9WgXcQ",
  "NodeId": 1
}