HTTP Request - Send binary data and JSON

Hello guys.

How can I replicate this postman API on N8N: https://www.getpostman.com/collections/4d384b016bf81433b3e4

I’ve tried a few ways, but I don’t know what else to do. :frowning:

Hi @Brunno_Alves_Silva ,

I suggest an alternative way to achieve that if you can’t find a way to replicate the request.

When I can’t go forward with HTTP request node with these types of complicated API request, I use function node with axios.

Add axios and form-data to NODE_FUNCTION_ALLOW_EXTERNAL variable. e.g. (NODE_FUNCTION_ALLOW_EXTERNAL=axios,form-data)

Then get the NodeJS-Axios code snippet from Postman and customize it with your input.

Hope it helps!

1 Like