Also tried Axios
With "https://my-server.pulseway.com/v3/organizations"; getting 404 and with "https://api.pulseway.com/v3/organizations"; getting 403 response
const axios = require('axios');
const endpoint = "https://my-server.pulseway.com/v3/organizations";
const token_id = "token ID";
const token_secret = "token Secret";
const auth = {
username: token_id,
password: token_secret,
};
axios.get(endpoint, { auth })
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(error);
});