What is ApiVersions?
Sent by every client on every new connection to discover what API versions the broker supports. UNSUPPORTED_VERSION errors in client logs appear when a client is newer than the broker; this API prevents that by letting the client downgrade gracefully.
Wire Diagram
Request Header · flexible
message_size
int32 · 4B
api_key
int16 · 2B
api_version
int16 · 2B
correlation_id
int32 · 4B
client_id
string (compact)
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 }
Example { "ClientSoftwareName": "orders", "ClientSoftwareVersion": "3.7.0", "ClusterId": "dQw4w9WgXcQ", "NodeId": 1 }