How to redirect to a custom URL in an API workflow

Return data from API → Structured JSON → make a parameter called URL

Call your backend workflow through the API connector and it will return the relevant URL

Open external website using that URL