---
title: "Supported APIs"
description: "The 39 Kafka protocol APIs monedula-sim-bridge advertises, with the version range of each, taken from Apache Kafka 4.4.0."
url: https://monedula.dev/flock/docs/sim-bridge/reference/supported-apis/
---
The bridge answers `ApiVersions` itself with this table and nothing else. A client therefore picks a version the bridge can decode, and gets a clean "unsupported version" error for any API that is not listed. A request for an API or a version outside the table closes the connection.

| Key | API | Versions | Answered by |
| --- | --- | --- | --- |
| 0 | Produce | 3 to 13 | the partition leader |
| 1 | Fetch | 4 to 18 | the partition leader |
| 2 | ListOffsets | 1 to 11 | the partition leader |
| 3 | Metadata | 0 to 13 | any broker |
| 8 | OffsetCommit | 2 to 10 | the group coordinator |
| 9 | OffsetFetch | 1 to 10 | the group coordinator |
| 10 | FindCoordinator | 0 to 6 | any broker |
| 11 | JoinGroup | 0 to 9 | the group coordinator |
| 12 | Heartbeat | 0 to 4 | the group coordinator |
| 13 | LeaveGroup | 0 to 5 | the group coordinator |
| 14 | SyncGroup | 0 to 5 | the group coordinator |
| 15 | DescribeGroups | 0 to 6 | the group coordinator |
| 16 | ListGroups | 0 to 5 | every broker, for the groups it coordinates |
| 18 | ApiVersions | 0 to 5 | the bridge itself |
| 19 | CreateTopics | 2 to 7 | any broker |
| 20 | DeleteTopics | 1 to 6 | any broker |
| 21 | DeleteRecords | 0 to 2 | the partition leader |
| 22 | InitProducerId | 0 to 5 | any broker; the transaction coordinator for a `transactional.id` |
| 24 | AddPartitionsToTxn | 0 to 3 | the transaction coordinator |
| 25 | AddOffsetsToTxn | 0 to 4 | the transaction coordinator |
| 26 | EndTxn | 0 to 5 | the transaction coordinator |
| 27 | WriteTxnMarkers | 1 to 2 | the partition leader |
| 28 | TxnOffsetCommit | 0 to 5 | the group coordinator |
| 29 | DescribeAcls | 1 to 3 | the bridge itself: no authorizer |
| 30 | CreateAcls | 1 to 3 | the bridge itself: no authorizer |
| 31 | DeleteAcls | 1 to 3 | the bridge itself: no authorizer |
| 32 | DescribeConfigs | 1 to 4 | any broker |
| 33 | AlterConfigs | 0 to 2 | any broker |
| 35 | DescribeLogDirs | 1 to 5 | each broker, for its own log directory |
| 37 | CreatePartitions | 0 to 3 | any broker |
| 42 | DeleteGroups | 0 to 3 | the group coordinator |
| 44 | IncrementalAlterConfigs | 0 to 1 | any broker |
| 55 | DescribeQuorum | 0 to 2 | any broker |
| 60 | DescribeCluster | 0 to 2 | any broker |
| 61 | DescribeProducers | 0 to 0 | any replica of the partition |
| 65 | DescribeTransactions | 0 to 0 | the transaction coordinator |
| 66 | ListTransactions | 0 to 2 | every broker, for the transactional ids it coordinates |
| 68 | ConsumerGroupHeartbeat | 0 to 1 | the group coordinator |
| 69 | ConsumerGroupDescribe | 0 to 1 | the group coordinator |

## Where the ranges come from

The ranges are those of Apache Kafka 4.4.0, the version the simulator models: the minimum is what Kafka 4.x still accepts after KIP-896 removed the oldest versions (WriteTxnMarkers starts at 1: Kafka 4.0 removed version 0), and the maximum is Kafka 4.4.0's, capped at what the bridge's protocol library can encode. That cap matters for one API: Kafka 4.4.0 accepts InitProducerId up to version 6, the bridge up to 5.

Transactions run at the transaction version of the setup, as its implementation finalizes `transaction.version`. Free play on Apache Kafka 4.x and the setups built on it (the KIP-1163 draft, Inkless, Ursa) run version 2 (KIP-890 part 2): ApiVersions reports the feature at 2, and EndTxn and TxnOffsetCommit go up to version 5. A Kafka 4.x Java client or franz-go then adds a partition to the transaction with its first Produce 12 there and a group's offsets with TxnOffsetCommit 5, without AddPartitionsToTxn or AddOffsetsToTxn, and every EndTxn bumps the producer epoch, so a late write of an ended transaction is refused with `INVALID_PRODUCER_EPOCH`. AutoMQ, Redpanda and WarpStream run version 1, as their implementations do (AutoMQ 1.7.4 is Kafka 3.9.1; Redpanda v26.2.2 answers EndTxn up to version 3; WarpStream's docs do not mention version 2): the feature is not reported, EndTxn and TxnOffsetCommit stop at version 4, and clients add every partition with AddPartitionsToTxn. A client that runs version 1 on a version 2 setup works too, as on Kafka: librdkafka 2.16.0, which has version 1 only, sends AddPartitionsToTxn and AddOffsetsToTxn, Produce 10 and EndTxn 1 on every setup. A transactional write to a partition, or a group's offsets, the transaction did not add is refused as Kafka 4.4 refuses it: `TRANSACTION_ABORTABLE` from Produce 11 and TxnOffsetCommit 4, `INVALID_TXN_STATE` before. AddPartitionsToTxn 4 and later are broker to broker and stay out.

An `ApiVersions` request above version 5 is answered with version 0 and `UNSUPPORTED_VERSION`, as a broker does, and the client retries with a version it can use.

From version 3 the answer also reports the feature `metadata.version` finalized at 4.4-IV0 (level 31), as a Kafka 4.4.0 broker does; admin tools show the cluster's Kafka version from it. A tool that does not know that level yet shows the version as unknown, with the simulator as with a real 4.4.0 broker.

## Compression

Produced batches may be compressed with gzip, snappy, lz4 or zstd; the bridge decompresses them before the playground sees them. Records it serves to consumers are not compressed.

## Record deletion

DeleteRecords (Kafbat UI's purge, `kafka-delete-records`) moves the partition's log start offset in the playground, as on a broker: offset `-1` means the high watermark, the answer's low watermark is the new log start, and a consumer that was reading below it gets `OFFSET_OUT_OF_RANGE` and follows its `auto.offset.reset`. The playground records the deletion, so a share link replays it.

## Transactions

A producer with a `transactional.id` finds its transaction coordinator with FindCoordinator (key type 1), then initializes with InitProducerId, adds partitions and the consumer group's offsets to the transaction, and commits or aborts it with EndTxn, as on a broker. The coordinator runs in the playground tab, beside the group coordinator, and keeps its state when the broker it lives on is killed, as `__transaction_state` does in Kafka. A second producer with the same `transactional.id` fences the first (`PRODUCER_FENCED`) and aborts its open transaction, and a transaction older than its `transaction.timeout.ms` is aborted.

Fetch and ListOffsets honour `isolation.level`. A `read_committed` consumer reads up to the last stable offset, which an open transaction holds back, and never gets the records of an aborted one; `read_uncommitted` reads up to the high watermark, aborted records included. An OffsetFetch with `require_stable`, which a `read_committed` consumer sends, answers `UNSTABLE_OFFSET_COMMIT` for a partition while an open transaction has staged an offset for it. Your clients' commit and abort markers take an offset, as in Kafka, and Fetch returns them as control batches, which clients skip; on WarpStream they take none, as on WarpStream (see [Limits](/flock/docs/sim-bridge/concepts/limits/)).

`kafka-transactions.sh list` and `describe`, and admin UIs, read the coordinator with ListTransactions and DescribeTransactions: each transactional id's state in Kafka's names (`Empty`, `Ongoing`, `PrepareCommit`, `PrepareAbort`, `CompleteCommit`, `CompleteAbort`), its producer id and epoch, its timeout, when its transaction started and the partitions in it, a consumer group's `__consumer_offsets` partition among them once its offsets were added. ListTransactions filters by state, producer id, how long a transaction has been running and a pattern of the transactional id, as Kafka 4.4 does. They show the transactions of your clients, not those of the playground's own producers.

`kafka-transactions.sh describe-producers`, `find-hanging` and `abort` work too. DescribeProducers lists, from any replica of a partition, the producers of your clients that wrote to it: producer id and epoch, last sequence and timestamp, coordinator epoch, and where an open transaction starts. `find-hanging` compares those open transactions with what ListTransactions and DescribeTransactions say, as against a broker. `abort` reads the producer from DescribeProducers and sends WriteTxnMarkers to the partition leader, which ends that producer's open transaction on the partition behind the transaction coordinator, as Kafka does: the last stable offset moves on and the transaction's records there become aborted. Your clients cannot leave a hanging transaction in the simulator (every transactional write is checked against the coordinator, which keeps its state through broker kills), so `find-hanging` finds one only if something outside your clients opened it.

## KIP-848 consumer groups

ConsumerGroupHeartbeat is advertised always, as a Kafka 4.x broker does, and a client uses it only when it asks for the consumer protocol: the Java client with `group.protocol=consumer`, franz-go with `kgo.ServerSideBalancer()`, librdkafka with `group.protocol=consumer`. The coordinator then assigns the partitions with the server assignor the members ask for, `uniform` (the default) or `range`; another name answers `UNSUPPORTED_ASSIGNOR`. Members reconcile through their heartbeats with member and group epochs: a partition reaches its new owner only after the old one released it. Session and heartbeat timing are the broker defaults, `group.consumer.session.timeout.ms` 45 seconds and `group.consumer.heartbeat.interval.ms` 5 seconds. OffsetCommit, OffsetFetch and TxnOffsetCommit check the member and its epoch. ListGroups types the group `consumer`, and ConsumerGroupDescribe shows its real epochs, assignor and the assignment of every member, current and target.

## ACLs

The bridge's listeners have no authorizer: your clients connect over plaintext and nothing authorizes them. So the bridge answers the three ACL APIs itself, as a Kafka 4.4.0 broker with no authorizer configured does: DescribeAcls with `SECURITY_DISABLED` and "No Authorizer is configured on the broker", CreateAcls and DeleteAcls with `SECURITY_DISABLED` and "No Authorizer is configured." for every entry. Admin tools show ACLs as not enabled. The ACLs of a playground with authorization turned on apply to its simulated clients only.

## Not supported

Every API not in the table, among them the streams and share group APIs and SASL authentication. See [Limits](/flock/docs/sim-bridge/concepts/limits/).

