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:
- Parse the incoming JSON payload
- Extract the data you need from
payload - Call mock APIs if required (using
mockApiBase) - Transform/combine the data as specified
- 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-001The 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