Rest api, how to retrieve json


I have get method
it returns html which is not suitable for external app, is it possible to get json instead?

Where can I find documentation for rest api


You can set the ‘accept’ header value in your HTTP Request as ‘application/json’ to get the response in JSON format.

If you are using PostMan, Clicking on the Headers tab on the Request pane shows the headers key-value editor. Set the appropriate header value from there.

The below link provides a quickstart course on ThingWorx REST API: