# Maker Edition / API call to SmartThings API

**URL:** <https://forum.inductiveautomation.com/t/maker-edition-api-call-to-smartthings-api/97262>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [October 15, 2024, 3:40pm UTC](https://forum.inductiveautomation.com/t/maker-edition-api-call-to-smartthings-api/97262 "2024-10-15T15:40:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicholas\_Houston](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nicholas_houston/32/68700_2.png) [@Nicholas\_Houston](https://forum.inductiveautomation.com/u/Nicholas_Houston)\
**Post date:** [October 15, 2024, 3:40pm UTC](https://forum.inductiveautomation.com/t/maker-edition-api-call-to-smartthings-api/97262/1 "2024-10-15T15:40:25Z")

</div>

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

> **[API | Developer Documentation | SmartThings](https://developer.smartthings.com/docs/api/public)**
>
> SmartThings Public API

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

However when using the following script I get an error

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/7/57242e59c4cfa18b557bba7c0fc00f762c591910.png)

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

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/1/915860e9838f8d999fe599decf5b8d7911f76311.png)

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [October 15, 2024, 3:43pm UTC](https://forum.inductiveautomation.com/t/maker-edition-api-call-to-smartthings-api/97262/2 "2024-10-15T15:43:25Z")

</div>

the keyword arg when using `system.net.httpGet` is `headerValues`: [system.net.httpGet | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-net/system-net-httpGet)

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

---

<div class="post-metadata">

**Author:** ![Nicholas\_Houston](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nicholas_houston/32/68700_2.png) [@Nicholas\_Houston](https://forum.inductiveautomation.com/u/Nicholas_Houston)\
**Post date:** [October 15, 2024, 3:45pm UTC](https://forum.inductiveautomation.com/t/maker-edition-api-call-to-smartthings-api/97262/3 "2024-10-15T15:45:53Z")

</div>

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