Skip to main content
GET
/
api
/
public
/
sensors

List Sensors

Returns the list of IoT sensors and their current readings for the current location. Used to display environmental data (temperature, humidity, occupancy) on the dashboard.

Authentication

Requires a valid customer bearer token.

Response

Returns an array of sensor objects with current readings.

Examples

Fetch sensor data

GET /api/public/sensors
Authorization: Bearer {token}

TypeScript Integration

import endpoints from '@/api/endpoints'

const response = await httpClient.get(endpoints.sensors.list)