Send message
Write one message to a topic, with an optional key and headers.
Command in the Kafka toolkit · id ooa.kafka/produce_message · 11 inputs (2 required), 3 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Endpoint address | String | No | Kafka REST Proxy address, e.g. https://pkc-12345.us-east-1.aws.confluent.cloud:443 or http://kafka-rest.internal:8082. | |
| Topic | String | Yes | Topic to write to. | |
| Value | Any | Yes | Message content: text, or a dictionary or list sent as JSON. | |
| Key | String | No | Message key. Messages with the same key always go to the same partition, so they stay in order. | |
| Headers | Dictionary | No | Extra message headers, e.g. {"source": "oneofficeautomation"}. | |
| Value format | String | No | json | Send the value as JSON or as plain text. |
| Partition | Number | No | Write to this partition. Leave empty to let Kafka choose. | |
| Cluster ID | String | No | Kafka cluster id. Leave empty to use the only (first) cluster the proxy serves. | |
| API key | String | No | API key or user name, used with api_secret. | |
| API secret | Credential | No | API secret or password from the vault. | |
| Access token | Credential | No | Bearer token from the vault, used instead of an API key and secret. |
Outputs
| Output | Type | What it is |
|---|---|---|
| partition | Number | Partition the message was written to. |
| offset | Number | Position of the message in that partition. |
| timestamp | String | Time Kafka recorded for the message. |