Route API requests based on request type

API tool

What it does

When there is a new API request, this automation validates the request in Workato Api Platform and routes it based on type. It returns a success response for valid requests and an error response when required data is missing.

Who it's for

Engineering teams who need to validate and route API requests in real time.

How teams use this

Validate incoming webhook data

Route webhook requests from external systems by checking that all required fields are present before processing. Valid requests proceed and invalid ones return an error message to the caller.

Handle API requests from mobile apps

Accept API requests from a mobile application and validate the request structure in real time. Route successful requests to downstream systems and notify the app of any missing data.

Add authentication checks to requests

Extend the validation to include an authentication token check before routing the request. Only requests with valid credentials proceed to the next step.

How it works

  1. Receive a new API request. Define the request and response parameters for this API endpoint so the automation knows what data to expect and how to respond.
  2. Check the request type. Evaluate the incoming request in Workato Api Platform to determine if it contains all required data and meets validation criteria before routing.
  3. Return the appropriate response. Send a success response from Workato Api Platform for valid requests or an error response when required data is missing or invalid.