Overview
Sensibo API (2.0.0)
The Sensibo API is built on HTTP and follows REST principles. It accepts and returns JSON data in all requests.
Client Libraries
You can use any HTTP/REST library in your preferred programming language to interact with our API. We also provide an official Python client library to get you started quickly.
Always use gzip in your requests
Always enable gzip compression by including the header Accept-Encoding: gzip in your requests to get a higher rate limit.
Try it Live
Want to explore the API interactively? Upload this specification file to Swagger Editor to try it live.
Getting Help
- Facebook Group: Join our official Sensibo Facebook group for community support and discussions
- Support Site: Visit our support site for additional resources and documentation
Authentication
- Generate your API keys in your account settings
- Send your API key in the
X-Api-Keyheader of each request:-H "X-Api-Key: {your_api_key}". This keeps the key out of URLs, which are written to logs and browser history. - The query parameter
?apiKey={your_api_key}also works. If a request has both, the header is used. - You can delete and rotate keys as needed from the same settings page
Keep your API key secret: it gives full control of your account.
OAuth2
OAuth2 is available for commercial users. To get access and start developing, please contact support@sensibo.com with specific details.
Making Requests
GET Requests
Most GET endpoints support a fields parameter to specify which data fields to retrieve:
- Use comma-separated field names to get specific fields
- Use
fields=*to get all available fields
Common Examples
Get all devices info:
curl --compressed -X GET "https://home.sensibo.com/api/v2/users/me/pods?fields=*&apiKey={api_key}"
Turn AC on:
curl --compressed -X POST "https://home.sensibo.com/api/v2/pods/{device_id}/acStates?apiKey={api_key}" \
-d '{"acState":{"on":true}}'
Turn AC off:
curl --compressed -X POST "https://home.sensibo.com/api/v2/pods/{device_id}/acStates?apiKey={api_key}" \
-d '{"acState":{"on":false}}'
Get historical measurements:
curl --compressed "https://home.sensibo.com/api/v2/pods/{device_id}/historicalMeasurements?apiKey={api_key}&days=1"
Use the header instead of the query parameter:
curl --compressed -H "X-Api-Key: {api_key}" "https://home.sensibo.com/api/v2/users/me/pods?fields=*"
Rate Limiting
- Requests are subject to rate limiting
- HTTP 429 status code indicates you’ve hit the limit
- Using gzip compression can help increase your rate limits
- To follow the state of your devices, use the event stream and not frequent requests
Event Stream
The event stream tells your client when a device changes. Use it instead of polling.
Polling of the devices at a short interval will be severely rate-limited. If your client reads /users/me/pods or /pods/{device_id} again and again to find changes, move it to the event stream.
GET /stream is a Server-Sent Events stream. Open it one time and keep it open. The API sends an event when something changes on one of the devices of your account.
curl -N --compressed -H "X-Api-Key: {api_key}" "https://home.sensibo.com/api/v2/stream"
event: hello
data: {"version":1,"heartbeatSeconds":120,"pods":2}
event: measurements
data: {"id":"AbCd1234","measurements":{"time":{"time":"2026-11-17T09:58:12.123456Z","secondsAgo":0},"temperature":23.4,"humidity":51.2,"feelsLike":23.4,"rssi":-58}}
event: changed
data: {"id":"AbCd1234","fields":["acState"]}
Events
Each event has a name and a JSON object as its data.
hello: the stream is open. Get the devices one time now, because changes can have occurred before the stream was open. Data:version,heartbeatSecondsandpods(the number of devices and sensors).measurements: new measurements. Put the fields ofmeasurementsinto themeasurementsobject that you have for the device. It has the same fields as in/pods/{device_id}. Data:id,measurements, and for a room or window sensor alsopodId(thenidis the sensor andpodIdis its device).changed: something else changed. Get the device again with/pods/{device_id}. Data:idandfields, which names what changed:acState,connectionStatusormeasurements. An empty list means that any field can be different (for example after a change of a schedule, a timer or Climate React).resync: the API closes the stream. Open it again. The data is an empty object.
Timing:
- A device gives at most one
measurementsevent in a minute, and only when a value changed. A change of motion or presence arrives immediately, withinstant: true. - A line that starts with a colon is a heartbeat. It arrives every
heartbeatSecondsseconds while there are no events. - The API closes a stream after some hours, and when the list of devices of the account changes.
Rules for Clients
- Authentication: send the API key in the
X-Api-Keyheader, so that the key is not in the URL. TheapiKeyquery parameter also works. - Limit: an account can have 10 open streams. One stream gives the events of all devices of the account.
- Open again after a close: wait before you open the stream again. Start with some seconds, make the delay longer after each failure (to a maximum of 5 minutes), and add a random part.
- HTTP 429 or 503: the stream is not available now. Wait at least the seconds of the
Retry-Afterheader. While the stream is not open, get the devices at the interval that you used before, not faster. - Timeout: if no data arrives for more than two heartbeat intervals, close the connection and open it again.
- Slow poll: not every field has an event. While the stream is open, also get the devices every 15 minutes or more.
- Commands (AC state, timer, schedules, Climate React) continue to use the REST endpoints.
Airbend API
The Airbend API is designed for commercial and enterprise customers who need to manage multiple devices across organizations. It provides bulk operations, user management, and advanced device control capabilities.
Key Features
- Organization Management: Create and manage organizations with device limits and user permissions
- Bulk Operations: Perform operations across multiple devices simultaneously
- User Management: Add/remove users and manage their permissions within organizations
- Advanced Device Control: Enhanced device management and monitoring capabilities
Access Requirements
- Admin Only: Organization admin privileges required for user management and sensitive operations
- Organization Member: Basic organization membership required for device access
- OpenAPI version: 3.1.0
Authentication
api_key_header
The API key in the X-Api-Key header (recommended)
Security scheme type: apiKey
Header parameter name: X-Api-Key
api_key
The API key in the apiKey query parameter
Security scheme type: apiKey
Query parameter name: apiKey