Skip to main content

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​

InputTypeRequiredDefaultWhat it is
Endpoint addressStringNoKafka REST Proxy address, e.g. https://pkc-12345.us-east-1.aws.confluent.cloud:443 or http://kafka-rest.internal:8082.
TopicStringYesTopic to write to.
ValueAnyYesMessage content: text, or a dictionary or list sent as JSON.
KeyStringNoMessage key. Messages with the same key always go to the same partition, so they stay in order.
HeadersDictionaryNoExtra message headers, e.g. {"source": "oneofficeautomation"}.
Value formatStringNojsonSend the value as JSON or as plain text.
PartitionNumberNoWrite to this partition. Leave empty to let Kafka choose.
Cluster IDStringNoKafka cluster id. Leave empty to use the only (first) cluster the proxy serves.
API keyStringNoAPI key or user name, used with api_secret.
API secretCredentialNoAPI secret or password from the vault.
Access tokenCredentialNoBearer token from the vault, used instead of an API key and secret.

Outputs​

OutputTypeWhat it is
partitionNumberPartition the message was written to.
offsetNumberPosition of the message in that partition.
timestampStringTime Kafka recorded for the message.