Workato · Arazzo Workflow

Workato Batch Publish Events and Drain the Topic

Version 1.0.0

Publish a batch of messages to a topic, then consume them back.

1 workflow 1 source API 1 provider
View Spec View on GitHub AgenticAPI ManagementAutomationB2BEmbedded iPaaSEnterpriseIntegrationiPaaSOrchestrationWorkflowsArazzoWorkflows

Provider

workato

Workflows

batch-publish-events
Batch-publish messages to a topic and consume them back.
Publishes an array of message payloads to a topic, confirms there were no partial failures, and consumes a batch back from the topic.
2 steps inputs: payloads, topicId outputs: consumedMessages, isPartialError, messageIds
1
batchPublish
publishBatchMessages
Publish the batch of message payloads to the topic in a single request.
2
consumeBatch
consumeMessages
Long-poll the topic for up to 60 seconds and read up to 50 messages back to confirm the batch was delivered.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Workato Batch Publish Events and Drain the Topic
  summary: Publish a batch of messages to a topic, then consume them back.
  description: >-
    Loads many events at once and verifies they landed. The workflow publishes
    a batch of up to 100 message payloads to an event topic, checks the
    response for partial failures, and then consumes from the topic with long
    polling to read the batch back. Every step spells out its request inline so
    the flow can be read and executed without opening the underlying OpenAPI
    description.
  version: 1.0.0
sourceDescriptions:
- name: eventStreamsApi
  url: ../openapi/workato-event-streams-openapi.yml
  type: openapi
workflows:
- workflowId: batch-publish-events
  summary: Batch-publish messages to a topic and consume them back.
  description: >-
    Publishes an array of message payloads to a topic, confirms there were no
    partial failures, and consumes a batch back from the topic.
  inputs:
    type: object
    required:
    - topicId
    - payloads
    properties:
      topicId:
        type: integer
        description: The unique integer identifier of the event topic.
      payloads:
        type: array
        description: Array of message payloads to publish (maximum 100 items).
        maxItems: 100
        items:
          type: object
  steps:
  - stepId: batchPublish
    description: Publish the batch of message payloads to the topic in a single request.
    operationId: publishBatchMessages
    parameters:
    - name: topic_id
      in: path
      value: $inputs.topicId
    requestBody:
      contentType: application/json
      payload:
        payloads: $inputs.payloads
    successCriteria:
    - condition: $statusCode == 200
    - context: $response.body
      condition: $.is_partial_error == false
      type: jsonpath
    outputs:
      messageIds: $response.body#/message_ids
      isPartialError: $response.body#/is_partial_error
  - stepId: consumeBatch
    description: >-
      Long-poll the topic for up to 60 seconds and read up to 50 messages back
      to confirm the batch was delivered.
    operationId: consumeMessages
    parameters:
    - name: topic_id
      in: path
      value: $inputs.topicId
    requestBody:
      contentType: application/json
      payload:
        batch_size: 50
        timeout_secs: 60
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      messages: $response.body#/messages
  outputs:
    isPartialError: $steps.batchPublish.outputs.isPartialError
    messageIds: $steps.batchPublish.outputs.messageIds
    consumedMessages: $steps.consumeBatch.outputs.messages

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/workato-batch-publish-events-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.