Maker Edition / API call to SmartThings API

I'm having issues getting a basic response from the SmartThings API. I am referencing this documentation:

If I use Postman and hit the endpoint: "https://api.smartthings.com/v1/devices"
with my bearer token I get a response.

However when using the following script I get an error

Here is the Postman response
I'm wondering if it's because of the format that ignition is sending the GET?

the keyword arg when using system.net.httpGet is headerValues: system.net.httpGet | Ignition User Manual

You should be using system.net.httpClient for any new code though.

1 Like

Yup, that was it! Thank you Kevin. Maybe I should be referencing the Ignition documentation as well :smile: