{"openapi":"3.1.0","info":{"title":"DevDevices API","description":"\nThe DevDevices API gives you read access to your locations (hotels, restaurants,\noffices…), the service schedules and activities shown on your SlideLoop screens, and\nthe status of your devices in RoomStream, SlideLoop and DisplayDesk, **with a single\nAPI key**.\n\n- **Authentication:** `Authorization: Bearer ddk_live_…`. Keys are created in Manager.\n- **Rate limit:** 60 requests per minute per key (bursts of up to 20). Every response\n  carries `RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset`.\n- **Errors** always look like `{\"error\": {\"code\", \"message\", \"request_id\"}}`.\n- **Freshness:** data that comes from an app carries `as_of`, and `stale: true` when the\n  app is not answering and you get the last good copy (up to 10 minutes old).\n","version":"4"},"servers":[{"url":"https://manager.devdevices.com/api/v1"}],"paths":{"/locations":{"get":{"tags":["Locations"],"summary":"List your locations","operationId":"list_locations_locations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationList"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"HTTPBearer":[]}]}},"/locations/{location_id}":{"get":{"tags":["Locations"],"summary":"Get a location","operationId":"get_location_locations__location_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationOut"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"description":"Not Found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"description":"Service Unavailable"}}}},"/locations/{location_id}/schedules":{"get":{"tags":["SlideLoop"],"summary":"Service schedules of a location","description":"Reception, restaurant, bar, pool… as shown on its screens. Cached for 5 minutes.","operationId":"get_schedules_locations__location_id__schedules_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedules"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"description":"Not Found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"description":"Service Unavailable"}}}},"/locations/{location_id}/activities":{"get":{"tags":["SlideLoop"],"summary":"Entertainment activities of a location","description":"Day by day, with that day's cancellations already removed. Without parameters, today (local time of the location). Use `date` for one day, or `from` and `to` for up to 14 days.","operationId":"get_activities_locations__location_id__activities_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}},{"name":"date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"One day, YYYY-MM-DD.","title":"Date"},"description":"One day, YYYY-MM-DD."},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"First day, YYYY-MM-DD.","title":"From"},"description":"First day, YYYY-MM-DD."},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Last day, YYYY-MM-DD (at most 14 days).","title":"To"},"description":"Last day, YYYY-MM-DD (at most 14 days)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Activities"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"description":"Not Found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"description":"Service Unavailable"}}}},"/devices":{"get":{"tags":["Devices"],"summary":"Status of your devices in the three apps","description":"From Manager's last check of each app (every minute): this never waits for the apps.","operationId":"list_devices_devices_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"product","in":"query","required":false,"schema":{"anyOf":[{"enum":["roomstream","slideloop","displaydesk"],"type":"string"},{"type":"null"}],"title":"Product"}},{"name":"location_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["online","offline"],"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceList"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"description":"Not Found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"description":"Service Unavailable"}}}},"/devices/{device_id}":{"get":{"tags":["Devices"],"summary":"One device, with its product-specific details","operationId":"get_device_devices__device_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceDetail"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"description":"Not Found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"description":"Service Unavailable"}}}}},"components":{"schemas":{"Activities":{"properties":{"location_id":{"type":"string","title":"Location Id"},"as_of":{"type":"string","format":"date-time","title":"As Of"},"stale":{"type":"boolean","title":"Stale"},"timezone":{"type":"string","title":"Timezone"},"days":{"items":{"$ref":"#/components/schemas/ActivityDay"},"type":"array","title":"Days"}},"type":"object","required":["location_id","as_of","stale","timezone","days"],"title":"Activities"},"Activity":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"name":{"$ref":"#/components/schemas/Localized"},"place":{"anyOf":[{"$ref":"#/components/schemas/Localized"},{"type":"null"}]},"start":{"type":"string","title":"Start","examples":["11:00"]},"end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End","examples":["11:45"]}},"type":"object","required":["id","name","place","start","end"],"title":"Activity"},"ActivityDay":{"properties":{"date":{"type":"string","format":"date","title":"Date"},"activities":{"items":{"$ref":"#/components/schemas/Activity"},"type":"array","title":"Activities"}},"type":"object","required":["date","activities"],"title":"ActivityDay"},"Device":{"properties":{"id":{"type":"string","title":"Id","description":"Prefixed by product: rs_, sl_ or dd_.","examples":["dd_6543a1f0c2"]},"product":{"type":"string","enum":["roomstream","slideloop","displaydesk"],"title":"Product"},"name":{"type":"string","title":"Name"},"location_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Id"},"status":{"type":"string","enum":["online","offline"],"title":"Status"},"condition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Condition","description":"Detail, open list. RoomStream: playing, playing_fallback, paused, stream_error, idle, no_sound_card. SlideLoop: playing, unassigned, no_content, downloading, degraded. DisplayDesk: showing, player_missing, screen_asleep, agent_down."},"status_since":{"type":"string","format":"date-time","title":"Status Since","description":"When Manager saw the current status start."},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At"}},"type":"object","required":["id","product","name","location_id","status","condition","status_since","last_seen_at"],"title":"Device"},"DeviceDetail":{"properties":{"id":{"type":"string","title":"Id","description":"Prefixed by product: rs_, sl_ or dd_.","examples":["dd_6543a1f0c2"]},"product":{"type":"string","enum":["roomstream","slideloop","displaydesk"],"title":"Product"},"name":{"type":"string","title":"Name"},"location_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Id"},"status":{"type":"string","enum":["online","offline"],"title":"Status"},"condition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Condition","description":"Detail, open list. RoomStream: playing, playing_fallback, paused, stream_error, idle, no_sound_card. SlideLoop: playing, unassigned, no_content, downloading, degraded. DisplayDesk: showing, player_missing, screen_asleep, agent_down."},"status_since":{"type":"string","format":"date-time","title":"Status Since","description":"When Manager saw the current status start."},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At"},"details":{"additionalProperties":true,"type":"object","title":"Details","description":"Product-specific fields (see the guide)."}},"type":"object","required":["id","product","name","location_id","status","condition","status_since","last_seen_at","details"],"title":"DeviceDetail"},"DeviceList":{"properties":{"as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"As Of"},"stale":{"type":"boolean","title":"Stale"},"sources":{"items":{"$ref":"#/components/schemas/Source"},"type":"array","title":"Sources"},"data":{"items":{"$ref":"#/components/schemas/Device"},"type":"array","title":"Data"}},"type":"object","required":["as_of","stale","sources","data"],"title":"DeviceList"},"ErrorBody":{"properties":{"code":{"type":"string","title":"Code","examples":["insufficient_scope"]},"message":{"type":"string","title":"Message"},"request_id":{"type":"string","title":"Request Id","examples":["req_3f9c1a7d2b6e8f40a1c2"]}},"type":"object","required":["code","message","request_id"],"title":"ErrorBody"},"ErrorEnvelope":{"properties":{"error":{"$ref":"#/components/schemas/ErrorBody"}},"type":"object","required":["error"],"title":"ErrorEnvelope"},"Localized":{"properties":{"es":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Es"},"en":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"En"}},"type":"object","title":"Localized"},"LocationList":{"properties":{"data":{"items":{"$ref":"#/components/schemas/LocationOut"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"LocationList"},"LocationOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"latitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latitude"},"longitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Longitude"},"timezone":{"type":"string","title":"Timezone","examples":["Europe/Madrid"]},"language":{"type":"string","title":"Language","examples":["es"]},"alerts_paused":{"type":"boolean","title":"Alerts Paused","description":"Closed for the season or for works: its devices being offline is expected."},"products":{"items":{"type":"string"},"type":"array","title":"Products","description":"Products of your API plan this location is in.","examples":[["roomstream","slideloop"]]}},"type":"object","required":["id","name","city","latitude","longitude","timezone","language","alerts_paused","products"],"title":"LocationOut"},"Schedules":{"properties":{"location_id":{"type":"string","title":"Location Id"},"as_of":{"type":"string","format":"date-time","title":"As Of"},"stale":{"type":"boolean","title":"Stale"},"services":{"items":{"$ref":"#/components/schemas/Service"},"type":"array","title":"Services","description":"Only the services the location has switched on, with their switched-on slots. Times are local time of the location."}},"type":"object","required":["location_id","as_of","stale","services"],"title":"Schedules"},"Service":{"properties":{"key":{"type":"string","title":"Key","description":"check_in, restaurant, bar, pool, water_park, all_inclusive. Open list: accept new values.","examples":["restaurant"]},"label":{"$ref":"#/components/schemas/Localized"},"slots":{"items":{"$ref":"#/components/schemas/Slot"},"type":"array","title":"Slots"}},"type":"object","required":["key","label","slots"],"title":"Service"},"Slot":{"properties":{"kind":{"type":"string","enum":["range","time"],"title":"Kind","description":"`range` has start and end (it may cross midnight); `time` is a single time."},"label":{"anyOf":[{"$ref":"#/components/schemas/Localized"},{"type":"null"}]},"start":{"type":"string","title":"Start","examples":["07:30"]},"end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End","examples":["10:30"]}},"type":"object","required":["kind","label","start","end"],"title":"Slot"},"Source":{"properties":{"product":{"type":"string","title":"Product"},"as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"As Of","description":"Last time the product answered."},"ok":{"type":"boolean","title":"Ok"}},"type":"object","required":["product","as_of","ok"],"title":"Source"}},"securitySchemes":{"HTTPBearer":{"type":"http","description":"Your API key: `Authorization: Bearer ddk_live_…`","scheme":"bearer"}}}}