Unauthorized error when trying to make a request sage api from my nodejs backend server

I tried making a request to any sage api with the given api link with ip address from sage on my nodejs web server but i get unauthorized error. It works fine when I call the apis from the swagger docs provided to us by sage. What could be doing wrong?