cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Cloud Platform API calls do not work in Postman

wetnose
Member
830

Trying to use the service keys from the SAP Intelligent Asset Management (AIN, ASPM) in Postman.

I've followed these instructions:

https://help.sap.com/viewer/76bd798328604d59bb846b97d30315e1/1908/en-US

I can successfully generate a token using OAuth 2.0.

Then, I try to send a GET call to <Service-name>/services/api/v1/alerttype URL with the option Add authorization data to Request Headers enabled.

All I get is a redirect to a SAP HANA XS Advanced login.

Can someone please explain what I am missing?

Thank you.

View Entire Topic
philipphuebner
Product and Topic Expert
Product and Topic Expert

According the the API Reference for Alert Types (version 1911), the API endpoint is /alerttypes, so try:

GET https://ain.xyz.asd.hana.ondemand.com/ain/services/api/v1/alerttypes

This should work in Postman with Authorization set to Type = OAuth 2.0 and Add authorization data to Request Headers and your valid OAuth token pasted to Access Token.