{"_id":"55f28173f9f3991900f38a23","project":"54ebb40d6423300d003672c0","version":{"_id":"55f28172f9f3991900f38a13","project":"54ebb40d6423300d003672c0","__v":2,"createdAt":"2015-09-11T07:23:30.065Z","releaseDate":"2015-09-11T07:23:30.065Z","categories":["55f28172f9f3991900f38a14","55f28172f9f3991900f38a15","55f28172f9f3991900f38a16","55f66acb297b37170058accb"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1"},"category":{"_id":"55f28172f9f3991900f38a16","__v":3,"pages":["55f28173f9f3991900f38a1d","55f28173f9f3991900f38a1e","55f28173f9f3991900f38a1f","55f28173f9f3991900f38a20","55f28173f9f3991900f38a21","55f28173f9f3991900f38a22","55f28173f9f3991900f38a23","55f28173f9f3991900f38a24","55f28173f9f3991900f38a25","55f28173f9f3991900f38a26","55f28173f9f3991900f38a27","55f63d46fe4cce21005c785e","55f65cc16be5ea0d00bbbf4c"],"project":"54ebb40d6423300d003672c0","version":"55f28172f9f3991900f38a13","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-06-17T05:23:31.147Z","from_sync":false,"order":2,"slug":"api-endpoints","title":"API Endpoints"},"__v":7,"user":"557e2561eb75d80d00af3dab","parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-07-20T01:15:33.552Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"curl \"https://api.lifx.com/v1/scenes\" \\\n     -H \"Authorization: Bearer [[app:Token]]\"","language":"curl"},{"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":"php"},{"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)","language":"python"}]},"method":"get","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":"","auth":"required","params":[],"url":"/scenes"},"isReference":false,"order":9,"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.","excerpt":"","slug":"list-scenes","type":"endpoint","title":"List Scenes"}

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