cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Call SAP BTP integration suite api from postman failing

deepak_h3
Participant
0 Kudos
2,803

Call SAP BTP integration suite api from postman is failing. 

I use the oauth/token url and I am getting successful access_token. I use client_id and client secret here. 

https://XXXXXX.authentication.xxxx.hana.ondemand.com/oauth/token

When I use the access_token and call below api - it sends back 200 with login page. 

https://xxxx.integrationsuite.cfapps.us10-002.hana.ondemand.com/api/v1/BuildAndDeployStatus(TaskId='...')  

Any solution as to what could be problem 

View Entire Topic
OlgenH
Participant
0 Kudos

Hi @deepak_h3 

the API URL doesn't seem correct - you're probably using the design time host of Cloud Integration. The APIs run under the runtime host which can be identified by -rt in the name, e.g. https://xxx.it-cpi002-rt.cfapps.ap10.hana.ondemand.com.

If your service key is setup correctly in BTP the above should work.

Regards

deepak_h3
Participant
0 Kudos
thanks, i will try it out. hopefully should work.
deepak_h3
Participant
0 Kudos

It sort of worked thanks. I am getting forbidden when I try to call this URL - any idea what could be missing ? The package exists. 

https://xxxxxx.it-cpitrial06.cfapps.us10-001.hana.ondemand.com/api/v1/IntegrationPackages('TestIflow...

OlgenH
Participant

I kind of overlooked the fact that you're trying to call the Cloud Integration OData APIs and not an actual iFlow!

The URL that you're using looks good but it seems you're service key is missing some role binding. Can you double check that the service instance of SAP Process Integration Runtime you've have created in your subaccount has Plan 'api' and that you've assigned all the roles that start with 'Workspace' - since you're on a trial account you can assign all the available roles it doesn't matter

deepak_h3
Participant
0 Kudos
Thanks for the reply. Yes it was a role issue, tried with another I suite login and with all the roles, worked perfectly.