DocsProcessing data
02 / 04

Processing data

How to process incoming data and call mock APIs.

Processing workflow

Build your automation workflow to process the incoming data against the brief's requirements. The specific processing depends on the brief, but the flow is always the same:

  1. Parse the incoming JSON payload
  2. Extract the data you need from payload
  3. Call mock APIs if required (using mockApiBase)
  4. Transform/combine the data as specified
  5. Send your result to the callback URL

Calling mock APIs

If the brief requires API calls

Use the mockApiBase URL combined with the endpoint path from the brief instructions.

Example API call
GET {mockApiBase}/users/USR-001

Example full URL:
https://nodox.ai/api/mock/attempt123/users/USR-001

The brief instructions will specify which endpoints are available and what data they return.

Common processing tasks

  • Echo - Return the payload as-is
  • Transform - Rename fields, change structure
  • Enrich - Call mock APIs and combine data
  • Calculate - Perform math or aggregations
  • Filter - Return only items matching criteria
  • Sort - Reorder items based on a field