Access intermediate step outputs
By default, the response of a standard synchronous API is the result of the final step in the sequence. In order to access the output from multiple steps in a single API, you can add a Return block as the final step of the API, where the data returned is an object containing all the step outputs. For example:
Data to return:
{"step1": Step1.output, "step2": Step2.output, "step3": Step3.output}
Note, you'll need to update the object returned to match the number of steps / step names for your API.
In the above example, to reference the Step1 output from API1 inside a frontend component or another API, use:
{{API1.response.step1}} // Use dot notation to access step1 output in the response