How to pass parameter as query in API?

Hope that you have found the solution. I will close the topic. Feel free to create a new one if you have any concerns.