{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/scenes","auth":"required","examples":{"codes":[{"language":"curl","code":"curl \"https://api.lifx.com/v1/scenes\" \\\n     -H \"Authorization: Bearer [[app:Token]]\""},{"language":"php","code":"<?php\n\n$link = \"https://api.lifx.com/v1/scenes\";\n$authToken = \"[[app:Token]]\";\n\n$headers = array('Authorization: Bearer ' . $authToken);\n\n$ch = curl_init($link);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\n$response = curl_exec($ch);\n\n?>"},{"language":"python","code":"import requests\n\ntoken = \"[[app:Token]]\"\n\nheaders = {\n    \"Authorization\": \"Bearer %s\" % token,\n}\n\nresponse = requests.get('https://api.lifx.com/v1/scenes', headers=headers)"}]},"method":"get","params":[],"results":{"codes":[{"status":200,"language":"json","code":"[\n    {\n        \"uuid\": \"1d52671c-99ba-4631-a563-2c31809b700d\",\n        \"name\": \"Night time\",\n        \"account\": {\n            \"uuid\": \"cc7e0336-43c8-4f00-b874-830690884adc\"\n        },\n        \"states\": [\n            {\n                \"brightness\": 0.1,\n                \"selector\": \"id:d073d5002bb3\"\n            },\n            {\n                \"brightness\": 0.1,\n                \"selector\": \"id:d073d5002b35\"\n            },\n            {\n                \"brightness\": 0.1,\n                \"selector\": \"id:d073d5014c49\"\n            },\n            {\n                \"brightness\": 0.1,\n                \"selector\": \"id:d073d5014078\"\n            },\n            {\n                \"brightness\": 0.1,\n                \"selector\": \"id:d073d50111b0\"\n            },\n            {\n                \"brightness\": 0.1,\n                \"selector\": \"id:d073d5016a28\"\n            },\n            {\n                \"brightness\": 0.1,\n                \"selector\": \"id:d073d500da5d\"\n            },\n            {\n                \"brightness\": 0.1,\n                \"selector\": \"id:d073d500df18\"\n            }\n        ],\n        \"created_at\": 1430118664,\n        \"updated_at\": 1430118664\n    },\n    {\n        \"uuid\": \"05bfb786-ec87-4766-a61a-8698b3e08b81\",\n        \"name\": \"Warm\",\n        \"account\": {\n            \"uuid\": \"cc7e0336-43c8-4f00-b874-830690884adc\"\n        },\n        \"states\": [\n            {\n                \"color\": {\n                    \"hue\": 0,\n                    \"saturation\": 0,\n                    \"kelvin\": 2700\n                },\n                \"selector\": \"id:d073d5002bb3\"\n            },\n            {\n                \"color\": {\n                    \"hue\": 0,\n                    \"saturation\": 0,\n                    \"kelvin\": 2700\n                },\n                \"selector\": \"id:d073d5002b35\"\n            },\n            {\n                \"color\": {\n                    \"hue\": 0,\n                    \"saturation\": 0,\n                    \"kelvin\": 2700\n                },\n                \"selector\": \"id:d073d5014c49\"\n            },\n            {\n                \"color\": {\n                    \"hue\": 0,\n                    \"saturation\": 0,\n                    \"kelvin\": 2700\n                },\n                \"selector\": \"id:d073d5014078\"\n            },\n            {\n                \"color\": {\n                    \"hue\": 0,\n                    \"saturation\": 0,\n                    \"kelvin\": 2700\n                },\n                \"selector\": \"id:d073d50111b0\"\n            },\n            {\n                \"color\": {\n                    \"hue\": 0,\n                    \"saturation\": 0,\n                    \"kelvin\": 2700\n                },\n                \"selector\": \"id:d073d5016a28\"\n            },\n            {\n                \"color\": {\n                    \"hue\": 0,\n                    \"saturation\": 0,\n                    \"kelvin\": 2700\n                },\n                \"selector\": \"id:d073d500da5d\"\n            },\n            {\n                \"color\": {\n                    \"hue\": 0,\n                    \"saturation\": 0,\n                    \"kelvin\": 2700\n                },\n                \"selector\": \"id:d073d500df18\"\n            }\n        ],\n        \"created_at\": 1430118384,\n        \"updated_at\": 1430118384\n    }\n]","name":""}]},"settings":""},"next":{"description":"","pages":[]},"title":"List Scenes","type":"endpoint","slug":"list-scenes","excerpt":"","body":"Lists all the scenes available in the users account. Scenes listed here can be activated with the [Activate Scene](doc:activate-scene) endpoint.\n\nFor the purposes of this endpoint the `serial_number` field on each device corresponds to the `id` field for other endpoints. We are aware that this is not optimal and plan to fix this in a later release of the HTTP API.","updates":[],"order":13,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"55f28173f9f3991900f38a23","createdAt":"2015-07-20T01:15:33.552Z","project":"54ebb40d6423300d003672c0","version":{"version":"1","version_clean":"1.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["55f28172f9f3991900f38a14","55f28172f9f3991900f38a15","55f28172f9f3991900f38a16","55f66acb297b37170058accb","5d229ff5e59b8e003ab3a9da"],"_id":"55f28172f9f3991900f38a13","project":"54ebb40d6423300d003672c0","releaseDate":"2015-09-11T07:23:30.065Z","createdAt":"2015-09-11T07:23:30.065Z","__v":3},"category":{"sync":{"isSync":false,"url":""},"pages":["55f28173f9f3991900f38a1d","55f28173f9f3991900f38a1e","55f28173f9f3991900f38a1f","55f28173f9f3991900f38a20","55f28173f9f3991900f38a21","55f28173f9f3991900f38a22","55f28173f9f3991900f38a23","55f28173f9f3991900f38a24","55f28173f9f3991900f38a25","55f28173f9f3991900f38a26","55f28173f9f3991900f38a27","55f63d46fe4cce21005c785e","55f65cc16be5ea0d00bbbf4c"],"title":"API Endpoints","slug":"api-endpoints","order":2,"from_sync":false,"reference":false,"_id":"55f28172f9f3991900f38a16","__v":3,"createdAt":"2015-06-17T05:23:31.147Z","project":"54ebb40d6423300d003672c0","version":"55f28172f9f3991900f38a13"},"__v":7,"githubsync":"","user":"557e2561eb75d80d00af3dab","parentDoc":null}

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format


Documentation

Lists all the scenes available in the users account. Scenes listed here can be activated with the [Activate Scene](doc:activate-scene) endpoint. For the purposes of this endpoint the `serial_number` field on each device corresponds to the `id` field for other endpoints. We are aware that this is not optimal and plan to fix this in a later release of the HTTP API.

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 }}