How to keep connect alive until the final API

snowsnow367
Tera Contributor

Hi Community,

We are doing REST API integration with BeyondTrust, and I need to call multiple APIs, as shown in the screenshot, in order.

First, we need to call the Login API, next getaccount, and the remaining APIs. For login, it's successful, and the rest of the APIs are showing "user not authenticated". But it's working as expected when we tried it from Postman. 

APIsAPIs

 

How can we keep the connection alive till the end?

 

 

Thanks,
Mahender

 

 

 

8 REPLIES 8

Hi @Laveena-Agarwal,

We are trying to connect from ServiceNow to BeyondTrust. Login is successful (First API), but it is not returning any token. 

 

Thanks,
Mahender.

 

You need to ask the 3rd party, if there is any request header is required or not related to authentication

phgdet
Mega Sage

Maybe the Bear token was not included when you send requests after the login one

Tanushree Maiti
Kilo Patron

 

Hi @snowsnow367 

 

Please confirm you sent the header of your API request as per 

BeyondTrust Rest API guide : https://docs.beyondtrust.com/bips/v25.2/docs/api#:~:text=%E2%84%B9%EF%B8%8F,server%20name%20in%20you....

 

NotePostman handles the session management /cookie management automatically, but your custom ServiceNow integration requires explicit configuration to do so.

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: