Get variables from a process step

I’m new to the camunda world.
I created a simple, three-step process, each containing an input on the form.
I would like to know how to get the variables by process step.
I searched here on the forum and saw that they recommended this endpoint: POST /history/variable-instance
But I couldn’t see any parameter that I can pass that is unique per step (task?) of the process.

Hi @Bruno_Silva typically the variables are set at the process scope so they are available to all tasks within a process. If you’re looking for the correct REST API to retrieve available variables for a task in a process have a look at this REST API call

Joe