How to download a file that requires authentication

Not sure if it helps here, but I stumbled across this page when searching for ways to convert the response body of a custom webhook, which kept returning data in binary.

If you have control over the endpoint that you are querying and can customize the Return Headers, you can set the Content-type to be whatever you like

So in my example, I wanted to use the inbuilt “Parse Response” that is available in the “HTTP Make a Request” Module.

but my custom webhook kept returning the data in binary and thus couldn’t be parsed

I found if I wanted the data to be returned in JSON format so it could be parsed
I simply had to add the Content-type header to the Webhook response module and set it in my case to application/json;charset=utf-8