publish
Send a single message or a batch to any endpoint by passing its connection details inline, and get back the send result or reply.
Instructions
Publish one message or a batch of messages to any endpoint. The endpoint is supplied inline in publisher as JSON keyed by type (e.g. {"kafka": {"url": "...", "topic": "..."}}); this is independent of routes. Provide either message or messages; each message has a payload and optional metadata headers (e.g. kind for the message type, correlation_id). Returns the send outcome (an acknowledgement, or the endpoint's reply for request/reply endpoints).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional label for this target, used to group sends in status reporting. Defaults to the connector type. | |
| message | No | A single message to send. | |
| messages | No | A batch of messages to send (alternative to `message`). | |
| publisher | Yes | Target endpoint, keyed by connector type, e.g. `{"kafka": {"url": "localhost:9092", "topic": "orders"}}` or `{"file": {"path": "/tmp/out.jsonl"}}`. |