# \[Unsupported\] Homey v2 REST API

**URL:** <https://community.homey.app/t/unsupported-homey-v2-rest-api/7268>\
**Category:** Developers\
**Created:** [January 18, 2019, 3:07pm UTC](https://community.homey.app/t/unsupported-homey-v2-rest-api/7268 "2019-01-18T15:07:04Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Jamie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jamie/32/5274_2.png) [@Jamie](https://community.homey.app/u/Jamie)\
**Post date:** [January 18, 2019, 4:01pm UTC](https://community.homey.app/t/unsupported-homey-v2-rest-api/7268/3 "2019-01-18T16:01:22Z")

</div>

From previous forums (no idea if they still work):

> **[Rest API - Page 2](https://forum.athom.com/discussion/1192/rest-api/p2)**
>
> Anyone who knows the rest calls for the following? get better logic variable values. set better logic variable values.

```auto
# Get all zones
GET http://<HOMEY_IP>/api/manager/zones/

# Get all devices 
GET http://<HOMEY_IP>/api/manager/devices/

# Get all devices within a zone:
GET http://<HOMEY_IP>/api/manager/devices/?zone=01234567-89ab-cdef-0123-456789abcdef

# Get Device
GET http://<HOMEY_IP>//api/manager/device/01234567-89ab-cdef-0123-456789abcdef

```

From Candy

```auto
function updateFlowEnabled (flowId, enabled) {
  return api('put', `/manager/flow/flow/${flowId}/enabled`, {enabled})
  return api('put', '/manager/flow/flow/' + flowId, {enabled})
}

```

> **[Rest API - Page 2](https://forum.athom.com/discussion/1192/rest-api/p2)**
>
> Anyone who knows the rest calls for the following? get better logic variable values. set better logic variable values.

```auto
A few examples:

Get data
GET http://<HomeyIP>/api/manager/geolocation/ (read location)
GET http://<HomeyIP>/api/manager/devices/device/ (read all devices)
GET http://<HomeyIP>/api/manager/devices/device/<device_id>/ (read device by id)
GET http://<HomeyIP>/api/manager/flow/flow/ (read all flows)
GET http://<HomeyIP>/api/manager/flow/flow/<flow_id>/ (read all flow by id)

Set data
PUT http://<HomeyIP>/api/manager/devices/device/<device_id>/state/
(update capability of a device via json body, e.g. {'target_temperature': 20} triggers an thermostat to temperature of 20°, {'onoff': 1} switches a plug / switch 'on', etc). 

```

Im guesing : `http://<HomeyIP>/api/manager/devices/device/<device_id>/capability/target_temperature`

Speech :

```auto
http://YOUR-HOMEY-IP/api/manager/speech-output/

```

---

_[View the full topic](https://community.homey.app/t/unsupported-homey-v2-rest-api/7268)._
