Route API calls to a callable endpoint

Recipe ToolsUtilities

What it does

When someone makes a call to this API endpoint, this automation receives the request in real time. It maps the data using the common data model and returns a response so the caller gets the result.

Who it's for

Engineering teams who need a callable API endpoint without building custom infrastructure.

How teams use this

Expose internal logic as an API

Create a callable endpoint that other systems can invoke without direct access to backend services. The automation handles the request and response mapping automatically.

Standardize data across integrations

Use the common data model to ensure every API call returns data in the same format. This makes it easier for downstream systems to consume the response.

Add validation before returning data

Include a condition to check the mapped data meets requirements before the response is sent back. Only valid requests return a success response to the caller.

How it works

  1. Receive the API call. An incoming call to the test_api endpoint arrives with request parameters defined for this automation to process.
  2. Map the request data. Transform the incoming request using the common data model in Workato Mapper so the response is formatted correctly for the caller.
  3. Send back the response. Return the mapped response from test_api to the caller so they receive the result of the automation.