AnsweredAssumed Answered

Using Postman to use API's

Question asked by Mike Moegling on Sep 7, 2018
Latest reply on Sep 20, 2018 by Paul Mealus

I am not an expert by any means with utilizing the API's for Samanage to extract information from the system.  I really like Postman as a quick interface to do API calls.  Has anyone used Postman to do API calls to Samanage?  I can't seem to get the authentication correct on the Postman end.  Using the snippet from the Samanage API site, pasting into Postman, it interprets the snippet and forms a nicely built call to the API.  Somehow I must not have the token correctly.

 

Any ideas?

 

curl -H "X-Samanage-Authorization: Bearer TOKEN" -H 'Accept: application/vnd.samanage.v2.1+xml' -H 'Content-Type:text/xml' -X GET https://api.samanage.com/categories.xml

Outcomes