# Rest services api

**URL:** <https://community.smartthings.com/t/rest-services-api/25861>\
**Category:** Writing Device Types\
**Created:** [October 12, 2015, 7:13pm UTC](https://community.smartthings.com/t/rest-services-api/25861 "2015-10-12T19:13:19Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sxganapa](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@sxganapa](https://community.smartthings.com/u/sxganapa)\
**Post date:** [October 12, 2015, 7:13pm UTC](https://community.smartthings.com/t/rest-services-api/25861/1 "2015-10-12T19:13:19Z")

</div>

Need to if there are REST APIs documented.  
If buy real devices how can I used REST apis to get the device info

---

<div class="post-metadata">

**Author:** ![sidjohn1](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/sidjohn1/32/16652_2.png) [@sidjohn1](https://community.smartthings.com/u/sidjohn1)\
**Post date:** [October 12, 2015, 7:15pm UTC](https://community.smartthings.com/t/rest-services-api/25861/2 "2015-10-12T19:15:50Z")

</div>

[http://docs.smartthings.com](http://docs.smartthings.com)

---

<div class="post-metadata">

**Author:** ![sxganapa](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@sxganapa](https://community.smartthings.com/u/sxganapa)\
**Post date:** [October 12, 2015, 7:18pm UTC](https://community.smartthings.com/t/rest-services-api/25861/3 "2015-10-12T19:18:01Z")

</div>

But I need to run the code in their env using groovy.  
Can I use any other technologies to get the info?

---

<div class="post-metadata">

**Author:** ![btk](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/btk/32/17453_2.png) [@btk](https://community.smartthings.com/u/btk)\
**Post date:** [October 12, 2015, 8:50pm UTC](https://community.smartthings.com/t/rest-services-api/25861/4 "2015-10-12T20:50:31Z")

</div>

You would need a SmartApp running within the ST environment that would provide the endpoints with which your external technologies would interact.

---

<div class="post-metadata">

**Author:** ![sxganapa](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@sxganapa](https://community.smartthings.com/u/sxganapa)\
**Post date:** [October 12, 2015, 8:52pm UTC](https://community.smartthings.com/t/rest-services-api/25861/5 "2015-10-12T20:52:19Z")

</div>

How I get the smart things env in my server to do this?

---

<div class="post-metadata">

**Author:** ![btk](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/btk/32/17453_2.png) [@btk](https://community.smartthings.com/u/btk)\
**Post date:** [October 13, 2015, 12:26am UTC](https://community.smartthings.com/t/rest-services-api/25861/6 "2015-10-13T00:26:33Z")

</div>

The SmartApp would have to run in the ST cloud and create the endpoints. You could then query that.

---

<div class="post-metadata">

**Author:** ![sxganapa](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@sxganapa](https://community.smartthings.com/u/sxganapa)\
**Post date:** [October 13, 2015, 5:03pm UTC](https://community.smartthings.com/t/rest-services-api/25861/7 "2015-10-13T17:03:36Z")

</div>

Can I deploy the code in our server instead of their cloud Also any one has number for the questions session with Smart Things happening every Wednesday ?

---

<div class="post-metadata">

**Author:** ![jody.albritton](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/jody.albritton/32/220661_2.png) [@jody.albritton](https://community.smartthings.com/u/jody.albritton)\
**Post date:** [October 13, 2015, 5:28pm UTC](https://community.smartthings.com/t/rest-services-api/25861/8 "2015-10-13T17:28:35Z")

</div>

@sxganapa You can host your code on your own server, but there is not a generalized API available, you have to make your own. The only thing that will reside on the SmartThings cloud is your API code. Take a look at the docs.

[http://docs.smartthings.com/en/latest/smartapp-web-services-developers-guide/index.html](http://docs.smartthings.com/en/latest/smartapp-web-services-developers-guide/index.html)

The link to the developer calls is here.

[https://community.smartthings.com/c/groups-events/developer-discussion](https://community.smartthings.com/c/groups-events/developer-discussion)
