Send data from RestAPI to RPA

I have an RestAPI, and need to send his data value to something in rpa.

For example: Call RestAPI with data to find are equals to “123456” and this RestAPI call a robot that will search in my remote service, previously logged, to find my data (“123456”), and return to RestAPI the response if the data exists or not.

Someone know how to resolve this?