{"openapi":"3.1.0","info":{"title":"Sensibo (BYOK) API","version":"0.1.0","description":"Sensibo (BYOK) lets an AI assistant read your own Sensibo devices and, with your approval of each change, change their state through the Sensibo API with a key you supply (Sensibo API key). Read tools plus 5 device-changing tools (set_ac_power, set_target_temperature, set_ac_mode, set_fan_level, set_swing); each change runs only when confirm is yes, after you approved it in chat. 10 tools in all...\n\nMost operations are read-only. These change the state of a device and run only with confirm = \"yes\" after the user approved that change: set_ac_power, set_target_temperature, set_ac_mode, set_fan_level, set_swing. The same tools are available over MCP (streamable HTTP) at https://byok-sensibo-ac-control.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-sensibo-ac-control/docs"},"termsOfService":"https://connectorbay.com/byok-sensibo-ac-control/terms"},"servers":[{"url":"https://byok-sensibo-ac-control.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-sensibo-ac-control/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/list_devices":{"post":{"operationId":"list_devices","summary":"List the Sensibo devices on the account. Use the fields parameter to choose which properties come back, or * for all. Us","description":"List the Sensibo devices on the account. Use the fields parameter to choose which properties come back, or * for all. Use for \"Which Sensibo devices do I have\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"fields":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated field names to return, or * for every field. Leave empty for the default fields.","title":"Fields"}},"title":"list_devicesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_device":{"post":{"operationId":"get_device","summary":"Get one Sensibo device with its current state. Use fields to pick properties or * for all. Use for \"What is the current ","description":"Get one Sensibo device with its current state. Use fields to pick properties or * for all. Use for \"What is the current state of my Sensibo device abcd1234\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"device_id":{"description":"Sensibo device (pod) id as returned by list_devices.","maxLength":40,"title":"Device Id","type":"string"},"fields":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated field names to return, or * for every field. Leave empty for the default fields.","title":"Fields"}},"required":["device_id"],"title":"get_deviceArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_ac_states":{"post":{"operationId":"list_ac_states","summary":"List the most recent AC states set on a device (latest first), at most 20. Use for \"What were the last AC settings on my","description":"List the most recent AC states set on a device (latest first), at most 20. Use for \"What were the last AC settings on my Sensibo device abcd1234\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"device_id":{"description":"Sensibo device (pod) id as returned by list_devices.","maxLength":40,"title":"Device Id","type":"string"},"limit":{"anyOf":[{"maximum":20,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"How many states to return (maximum 20).","title":"Limit"}},"required":["device_id"],"title":"list_ac_statesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_historical_measurements":{"post":{"operationId":"get_historical_measurements","summary":"Get temperature and humidity measurements of a device over the last number of days. Use for \"How did the temperature and","description":"Get temperature and humidity measurements of a device over the last number of days. Use for \"How did the temperature and humidity change over the last 3 days on Sensibo device abcd1234\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"device_id":{"description":"Sensibo device (pod) id as returned by list_devices.","maxLength":40,"title":"Device Id","type":"string"},"days":{"anyOf":[{"maximum":7,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"How many days back to return, starting at 1.","title":"Days"}},"required":["device_id"],"title":"get_historical_measurementsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_device_events":{"post":{"operationId":"list_device_events","summary":"List events recorded for a device (such as state changes and connections) over the last days. Use for \"What events happe","description":"List events recorded for a device (such as state changes and connections) over the last days. Use for \"What events happened on my Sensibo device abcd1234 in the last 2 days\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"device_id":{"description":"Sensibo device (pod) id as returned by list_devices.","maxLength":40,"title":"Device Id","type":"string"},"days_backwards":{"anyOf":[{"maximum":30,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"How many days back to look (default 1).","title":"Days Backwards"}},"required":["device_id"],"title":"list_device_eventsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/set_ac_power":{"post":{"operationId":"set_ac_power","summary":"Turn the air conditioner of a device on or off. This changes the real air conditioner. Use for \"Turn off my Sensibo AC a","description":"Turn the air conditioner of a device on or off. This changes the real air conditioner. Use for \"Turn off my Sensibo AC abcd1234\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"device_id":{"description":"Sensibo device (pod) id as returned by list_devices.","maxLength":40,"title":"Device Id","type":"string"},"power":{"description":"True to turn the AC on, false to turn it off.","title":"Power","type":"boolean"},"confirm":{"const":"yes","description":"Must be exactly yes, only after the user approved this change in chat.","title":"Confirm","type":"string"}},"required":["device_id","power","confirm"],"title":"set_ac_powerArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":false,"x-changes-device-state":true,"x-requires-confirmation":"confirm"}},"/v1/tools/set_target_temperature":{"post":{"operationId":"set_target_temperature","summary":"Change the target temperature of the air conditioner (whole degrees, in the unit the device is set to). This changes the","description":"Change the target temperature of the air conditioner (whole degrees, in the unit the device is set to). This changes the real air conditioner. Use for \"Set my Sensibo AC abcd1234 to 24 degrees\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"device_id":{"description":"Sensibo device (pod) id as returned by list_devices.","maxLength":40,"title":"Device Id","type":"string"},"temperature":{"description":"Target temperature as a whole number in the device's unit (Celsius usually 16 to 30, Fahrenheit 61 to 86).","maximum":90,"minimum":10,"title":"Temperature","type":"integer"},"confirm":{"const":"yes","description":"Must be exactly yes, only after the user approved this change in chat.","title":"Confirm","type":"string"}},"required":["device_id","temperature","confirm"],"title":"set_target_temperatureArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":false,"x-changes-device-state":true,"x-requires-confirmation":"confirm"}},"/v1/tools/set_ac_mode":{"post":{"operationId":"set_ac_mode","summary":"Change the operating mode of the air conditioner to cool, heat, fan, auto or dry. This changes the real air conditioner.","description":"Change the operating mode of the air conditioner to cool, heat, fan, auto or dry. This changes the real air conditioner. Use for \"Switch my Sensibo AC abcd1234 to cool mode\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"device_id":{"description":"Sensibo device (pod) id as returned by list_devices.","maxLength":40,"title":"Device Id","type":"string"},"mode":{"description":"AC mode; the device must support it (see remoteCapabilities in get_device).","enum":["cool","heat","fan","auto","dry"],"title":"Mode","type":"string"},"confirm":{"const":"yes","description":"Must be exactly yes, only after the user approved this change in chat.","title":"Confirm","type":"string"}},"required":["device_id","mode","confirm"],"title":"set_ac_modeArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":false,"x-changes-device-state":true,"x-requires-confirmation":"confirm"}},"/v1/tools/set_fan_level":{"post":{"operationId":"set_fan_level","summary":"Change the fan level of the air conditioner, for example low, medium, high or auto. This changes the real air conditione","description":"Change the fan level of the air conditioner, for example low, medium, high or auto. This changes the real air conditioner. Use for \"Set the fan on my Sensibo AC abcd1234 to low\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"device_id":{"description":"Sensibo device (pod) id as returned by list_devices.","maxLength":40,"title":"Device Id","type":"string"},"fan_level":{"description":"A fan level the device supports (see remoteCapabilities in get_device), for example low, medium, high or auto.","maxLength":24,"title":"Fan Level","type":"string"},"confirm":{"const":"yes","description":"Must be exactly yes, only after the user approved this change in chat.","title":"Confirm","type":"string"}},"required":["device_id","fan_level","confirm"],"title":"set_fan_levelArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":false,"x-changes-device-state":true,"x-requires-confirmation":"confirm"}},"/v1/tools/set_swing":{"post":{"operationId":"set_swing","summary":"Change the louver swing setting of the air conditioner, for example stopped or rangeful. This changes the real air condi","description":"Change the louver swing setting of the air conditioner, for example stopped or rangeful. This changes the real air conditioner. Use for \"Stop the swing on my Sensibo AC abcd1234\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"device_id":{"description":"Sensibo device (pod) id as returned by list_devices.","maxLength":40,"title":"Device Id","type":"string"},"swing":{"description":"A swing state the device supports (see remoteCapabilities in get_device), for example stopped or rangeful.","maxLength":24,"title":"Swing","type":"string"},"confirm":{"const":"yes","description":"Must be exactly yes, only after the user approved this change in chat.","title":"Confirm","type":"string"}},"required":["device_id","swing","confirm"],"title":"set_swingArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":false,"x-changes-device-state":true,"x-requires-confirmation":"confirm"}}}}