Note, if this is a UI Script Action, you cannot have const and let in the top level context of the action. The script gets reused from one run to the next and as a result the second time the rule runs it will complain that it “cannot redefine const options” (for example).
var results = actions.sendHttpGetRequest('http://myapi:8080/api/auth', {"accept": "application/json"}, 5000);
console.log(results);
I’m not 100% I defined the header’s Map right but you get the point.
You also have the option to use the HTTP Binding instead of a rule.
Failed to execute action: 1(Error: Failed to execute rule test: TypeError: (intermediate value).sendHttpGetRequest is not a function: TypeError: (intermediate value).sendHttpGetRequest is not a function