Skip to main content
10-Marble
March 12, 2024
Question

How to Access external REST API

  • March 12, 2024
  • 2 replies
  • 900 views

I have an external rest endpoint which requires basic authentication username and password. I'm able to get the session username with session info in thingworx 8.5, how do I get the session password or is there any way to get Json data into thingworx.

 

Thanks in advance!!

2 replies

24-Ruby III
March 12, 2024

Take a look here - "How to manage session in Thingworx": https://www.ptc.com/en/support/article/CS259927 

14-Alexandrite
March 14, 2024

Hey @RC_10864577 I don't think you will be able to fetch the user password from the session, unless its something you are storing for the user in the session, You might need to save the password and then use it for the basic auth stuffs. To load JSON data from external REST endpoints to ThingWorx you can see contentloaderfunctions.