REST API
HomeEaze Air exposes a local REST API on your hub device. All requests are made over your local network — no cloud dependency required for data access.
The API is currently in pre-release. Endpoints and authentication methods may change before the public launch. Apply for the pilot programme to get early API access.
Base URL
http://<hub-ip>:8080/api/v1
Authentication
All API requests require a bearer token obtained from the hub's local admin panel. Pass it in the Authorization header:
Authorization: Bearer <your-token>
Key Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /rooms |
List all rooms and their latest readings |
| GET | /rooms/:id |
Single room with full sensor detail |
| GET | /rooms/:id/history |
Historical readings (supports ?from & ?to params) |
| GET | /alerts |
All active and recent alerts |
| POST | /alerts/:id/dismiss |
Dismiss a specific alert |
| GET | /status |
Hub health, uptime, and firmware version |
Example Response — GET /rooms/:id
{
"id": "bedroom",
"name": "Bedroom",
"updated_at": "2025-06-01T22:14:00Z",
"readings": {
"co2": { "value": 1247, "unit": "ppm", "status": "warn" },
"pm25": { "value": 8, "unit": "µg/m³", "status": "good" },
"voc": { "value": 0.18, "unit": "mg/m³", "status": "good" },
"temp": { "value": 19.4, "unit": "°C", "status": "good" },
"humidity": { "value": 52, "unit": "%", "status": "good" }
},
"aqi": 62,
"aqi_status": "moderate"
}
Status Values
Reading is within healthy range. No action needed.
Reading is elevated. Consider ventilation or investigation.
Reading exceeds safe thresholds. Action recommended.
Sensor offline or no recent data received.