How to call an API inluding a curl!

I would like ask you how to trigger API Event from java script but with curl
Because when I look on roblox API there it need some curl!

And I don’t know how to write them and include them.
Thank for reading.

@RiversideRocks I want know how to send the curl with API requesttt try look image and you will see what I want @RiversideRocks

Running cURL in nodejs sounds a bit tricky (its 1000% easier in php) but it look possible:

You can also try out this but it seems deprecated:

Thats the only way to use cURL. Unless you research the exec() function which lets you run shell commands.