Call a whitelisted frappe api from another whitelisted frappe api

I have a frappe api (whitelisted for guest). Need to call another whitelisted api from this api with basically the same request params and method with which the 1st api is invoked
It should seem as if the original request is just passed on to the second api.

Is there a way we could achieve this ?

Hi there,

Whitelisted methods can call any other python method by default. Just import like normal.

That is true. But the context of the API call is lost.
When it is called as an API, it gets inbuilt things like frappe.request.
The idea here is to piggyback on a frappe whitelisted method with a custom whitelisted method and send additional parameters back in the response.

try this.

https://frappeframework.com/docs/v13/user/en/python-api/hooks#override-whitelisted-methods