Process batch API requests with Workato Recipe Function

API toolRecipe Tools

What it does

When someone makes a new API request, this automation calls a batch function to process items. The API endpoint returns the compiled results so the caller receives all outcomes at once.

Who it's for

Engineering teams who need to process multiple items through an API without waiting for individual responses.

How teams use this

Process orders in a single API call

Send multiple orders through the API at once and receive all results back together. The batch function handles each order and the results list collects every outcome for the response.

Validate records before import

Call the API with a batch of records to validate, and get back a results list showing which ones passed and which ones failed. Add validation logic to the batch function to check each record against your requirements.

Expose batch processing to external systems

Let a partner system call this API to submit batches of data for processing. The endpoint handles the request and returns results without the partner needing to poll or wait for individual responses.

How it works

  1. Receive the API request. Define the request and response parameters for this API endpoint so callers know what data to send and what they will receive back.
  2. Call the batch function. Invoke the Workato Recipe Function to process the items from the API request according to your business logic and requirements.
  3. Build the results list. Collect each processed item into a results list that will be returned through the API endpoint to the caller.
  4. Return results to the caller. Send the compiled results list back through the API endpoint so the caller receives all outcomes in a single response.