Thanks for all the help Barry, it pointed me in the right direction.
I was able to get my project working eventually, and with some streamlined code I’m fairly proud of.
For anyone that needs it in the future, here is my fairly basic module I wrote up for interacting with Helix via Javascript and NodeJS: