Thanks @Darren I'm having trouble capturing the redirect url. How is this done? I'm not able to figure out a way to get at it. When I run a query, it just redirects all under the hood and doesn't expose the initial 307 return. I tried briefly using fetch directly in a script but the location header seemed to be getting stripped out.