{"__v":2,"_id":"57f4a71368a53b2000e03e75","category":{"__v":0,"_id":"571699927256fb0e00c1d01c","project":"56130e29d2b2370d0096b91a","version":"56130e2ad2b2370d0096b91d","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-04-19T20:48:18.215Z","from_sync":false,"order":0,"slug":"sites","title":"Reference"},"parentDoc":null,"project":"56130e29d2b2370d0096b91a","user":"56130dcf8e503f0d00648b03","version":{"__v":11,"_id":"56130e2ad2b2370d0096b91d","project":"56130e29d2b2370d0096b91a","createdAt":"2015-10-05T23:56:26.509Z","releaseDate":"2015-10-05T23:56:26.509Z","categories":["56130e2bd2b2370d0096b91e","56130f638e503f0d00648b05","561317cdbe80130d00f188dd","561317d8ff92880d005ca212","56f97c0f8fef7520003f818e","570d751180c9010e00d77f4d","570d7543e2a0b40e0077aa90","571699927256fb0e00c1d01c","57f43db31592cb0e00761dd6","57f52ed668a53b2000e03efa","57f5350f485e6e2b005b2f27"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"0.0.0","version":"0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-10-05T07:09:07.359Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"curl -X GET 'https://api.stacklighting.com/v0/sites/6133345811384985/bulbs \\\n     -H 'Content-Type: application/json' \\\n     -H 'Authorization: Bearer YmE3MTU5MWItZTIwMC00MDc2LWJmZTQtZDH5YmUxMTA0ZTNmOjU3NjE2NzM5MzE1MjIwNDg='","language":"curl"}]},"method":"get","results":{"codes":[{"name":"","code":"{\n  \"xdDEVVLmzGDydWnoJLy7AQGyLw\": {\n    \"network_address\": \"59487\",\n    \"coord\": null,\n    \"als_level_change_time\": \"2016-10-05T07:09:31.106190\",\n    \"id\": \"xdDEVVLmzGDydWnoJLy7AQGyLw\",\n    \"software_vs\": \"1.1.667\",\n    \"mac_address\": \"005043C9E72F4B2D\",\n    \"latitude\": null,\n    \"serial_number\": null,\n    \"product\": \"4\",\n    \"is_connected_change_time\": \"2016-10-05T07:09:31.106190\",\n    \"site_id\": 5113345113849856,\n    \"bulb_type\": null,\n    \"als_level\": 61,\n    \"last_contact_time\": \"2016-10-05T07:09:31.106190\",\n    \"zone_id\": 5205430093479936,\n    \"last_joined_at\": \"2016-10-04T13:54:48.905000\",\n    \"settings\": {\n      \"auto_dim_on\": false,\n      \"respond_to_changes\": false,\n      \"max_brightness\": null,\n      \"brightness\": 500,\n      \"idle_min_brightness\": null,\n      \"motion_fall\": null,\n      \"max_als\": null,\n      \"motion_bcast_on\": null,\n      \"motion_rise\": null,\n      \"respond_to_motion_on\": null,\n      \"motion_timeout\": null,\n      \"duration\": 0,\n      \"min_brightness\": null,\n      \"color_temperature\": 2700,\n      \"min_als\": null,\n      \"reset_motion_timeout\": true,\n      \"idle_brightness\": null\n    },\n    \"hub_id\": \"544A168E2C82\",\n    \"created_at\": \"2016-08-03T20:04:49.828550\",\n    \"longitude\": null,\n    \"bulb_id\": \"xdDEVVLmzGDydWnoJLy7AQGyk\",\n    \"position\": null,\n    \"is_connected\": true\n  },\n  \"xdDEBNLmzGDydDnoJLy7BGDpMv\": {\n    \"network_address\": \"15573\",\n    \"coord\": null,\n    \"als_level_change_time\": \"2016-10-05T07:08:30.718190\",\n    \"id\": \"xdDEBNLmzGDydDnoJLy7BGDpMv\",\n    \"software_vs\": \"1.1.667\",\n    \"mac_address\": \"005043C92734A770\",\n    \"latitude\": null,\n    \"serial_number\": null,\n    \"product\": \"4\",\n    \"is_connected_change_time\": \"2016-10-05T07:08:30.718190\",\n    \"site_id\": 5113345113849856,\n    \"bulb_type\": null,\n    \"als_level\": 61,\n    \"last_contact_time\": \"2016-10-05T07:08:30.718190\",\n    \"zone_id\": \"JNBDRXWDZLmVBEqdBvRx8d89j\",\n    \"last_joined_at\": \"2016-09-28T16:16:47.328000\",\n    \"settings\": {\n      \"auto_dim_on\": null,\n      \"respond_to_changes\": false,\n      \"max_brightness\": null,\n      \"brightness\": 0,\n      \"idle_min_brightness\": null,\n      \"motion_fall\": null,\n      \"max_als\": null,\n      \"motion_bcast_on\": null,\n      \"motion_rise\": null,\n      \"respond_to_motion_on\": null,\n      \"motion_timeout\": null,\n      \"duration\": null,\n      \"min_brightness\": null,\n      \"color_temperature\": 3600,\n      \"min_als\": null,\n      \"reset_motion_timeout\": null,\n      \"idle_brightness\": null\n    },\n    \"hub_id\": \"544A168E2C82\",\n    \"created_at\": \"2016-01-28T07:14:51.443520\",\n    \"longitude\": null,\n    \"bulb_id\": \"005043C92734A779\",\n    \"position\": {\n      \"floor\": 0,\n      \"y_coord\": 0,\n      \"x_coord\": 0,\n      \"height\": 0,\n      \"lat\": 0,\n      \"lng\": 0,\n      \"unit\": \"\"\n    },\n    \"is_connected\": true\n  }\n}","language":"json","status":200}]},"settings":"","auth":"required","params":[{"_id":"5858c82e2ecdc80f00d566f3","ref":"","in":"path","required":false,"desc":"The unique identifier for the site.","default":"","type":"string","name":"site_id"}],"url":"/sites/:site_id/bulbs"},"isReference":true,"order":5,"body":"","excerpt":"This endpoint returns all of the bulbs in a user's site.","slug":"bulbs","type":"endpoint","title":"Bulbs"}

getBulbs

This endpoint returns all of the bulbs in a user's site.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

site_id:
string
The unique identifier for the site.

Examples


Result Format


User Information

Try It Out

get
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}