How to redirect with wixLocation based on POST http request?

My WIX website has an exposed API that takes in a POST http request with a URL in the body. Whenever I get this POST request, I want to redirect to the URL that is in the body of the request. However, wixLocation only works on the frontend. How could I achieve this?

I don’t think I fully understand the question.
You send Wix backend a URL form a third party.
Your client side is this third party interface. Now what do you wish to do?