Create and configure a Kafka request
This page describes the fields available when you create a Kafka request in Postman, and where each one comes from when a request is generated from an AsyncAPI specification. For the AsyncAPI mapping, see Generate a Kafka collection from an AsyncAPI specification.
Create a Kafka request
To create a Kafka request, click the + icon in the sidebar and choose Kafka from the protocol picker.
Broker connection
Authentication
Kafka requests support the following authentication types:
When a Kafka request is generated from an AsyncAPI specification, Postman never copies credential values out of the spec. Auth type and structure (for example, which fields a SASL mechanism needs) are set from the spec, but the actual username, password, token, or certificate fields are always left empty for you to fill in.
How AsyncAPI security schemes map to Kafka auth types
AWS Signature isn’t derived from any AsyncAPI security scheme. It’s only available when you configure a Kafka request’s auth manually.
Topic and mode
Each Kafka request operates in one of two modes:
Producer fields
Partition, timestamp, and acknowledgment level aren’t configurable on a producer message because they’re not part of a producer message, and AsyncAPI has no source for them either. Consumer topics have partition-level fields.
Consumer fields
Bounded consume
A live Kafka topic is an unbounded stream, so every consumer request runs as a bounded consume. You can pick a stop condition with the Stop After control.
Bounded consume means a Kafka consume step can be used inside a Runner sequence or a CI run. An unbounded stream never reaches a stop condition, so the run could never advance to the next step.
The Start From and Stop After settings are never set from an AsyncAPI spec, even when a request is generated from one. Configure them after generating the request or when you create the request manually.