conduktor.io ↗

Kafka ApiVersions Request Wire Format v3 — Binary Protocol Layout

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.

Related Errors

INVALID_REQUEST · UNSUPPORTED_VERSION

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 v3
ClientSoftwareName string (compact)
ClientSoftwareVersion string (compact)
tagged var

Schema & Example

Schema
{
  "ClientSoftwareName": string,
  "ClientSoftwareVersion": string
}
Example
{
  "ClientSoftwareName": "orders",
  "ClientSoftwareVersion": "3.7.0"
}