Skip to main content
GET
/
api
/
sys
/
sensors
/
{id}
Get one Sensor
curl --request GET \
  --url https://spaces.nexudus.com/api/sys/sensors/{id} \
  --header 'Authorization: Basic <encoded-value>'
{
  "BusinessId": 123,
  "Desks": [
    123
  ],
  "Resources": [
    123
  ],
  "CannedResponseId": 123,
  "CannedResponseName": "<string>",
  "Name": "<string>",
  "Reference": "<string>",
  "Unit": "<string>",
  "Active": true,
  "SensorType": 123,
  "DataStrategy": 123,
  "PayloadDataPath": "<string>",
  "ActionTriggerFunction": "<string>",
  "ValueFunction": "<string>",
  "ActionSendEmailAlert": true,
  "AlertEmailAddress": "<string>",
  "WebhookUrl": "<string>",
  "ActionUpdateDeskAvailability": true,
  "ActionUpdateResourceAvailability": true,
  "ActionUpdateBookingOccupancy": true,
  "ActionSendCustomerEmailAlert": true,
  "ActionBookingStart": true,
  "ActionBookingTerminate": true,
  "ActionCheckInOrOut": true,
  "ActionMakeHttpRequest": true,
  "ShowInNowDashboard": true,
  "ShowInPortal": true,
  "SharedSecret": "<string>",
  "ApiKey": "<string>",
  "Username": "<string>",
  "Password": "<string>",
  "ReceivedDataOn": "<string>",
  "LastReceivedValue": "<string>",
  "LastValueTriggeredAction": true,
  "BatteryLevel": 123,
  "NetworkSignalStrength": 123,
  "Id": 123,
  "UniqueId": "<string>",
  "CreatedOn": "<string>",
  "UpdatedOn": "<string>",
  "UpdatedBy": "<string>",
  "IsNew": true,
  "SystemId": "<string>"
}
A Sensor represents a physical IoT sensor deployed in a location for monitoring environmental conditions or occupancy. Sensors can detect presence, count people, measure temperature, humidity, noise, CO2 levels, and other metrics.

Authentication

This endpoint requires OAuth2 authentication. Include a valid bearer token in the Authorization header. The authenticated user must be a full unrestricted administrator or have the Sensor-Read role.

Path Parameters

id
integer
required
The Id of the Sensor record to retrieve.

Code Examples

curl -X GET \
  "https://spaces.nexudus.com/api/sys/sensors/87654321" \
  -H "Authorization: Bearer YOUR_TOKEN"

Response

200

BusinessId
integer
ID of the business linked to this record.
Desks
integer[]
List of desks linked to this record.
Resources
integer[]
List of resources linked to this record.
CannedResponseId
integer
ID of the canned response linked to this record.
CannedResponseName
string
Display name of the linked canned response (read-only).
Name
string
The name value for this sensor.
Reference
string
The reference value for this sensor.
Unit
string
The unit value for this sensor.
Active
boolean
Whether this sensor is currently active.
SensorType
integer
The sensor type value for this sensor. See eSensorType enum values: 1 = PresenceDetection, 2 = PeopleCounter, 3 = Temperature, 4 = Humidity, 5 = Light, 6 = Noise, 7 = CO2, 8 = VolatileOrganicCompounds, 9 = HarmfulParticulates, 10 = Touch, 11 = Water, 12 = AtmosphericPressure, 13 = Power, 14 = OpenClosed, 99 = Other.
DataStrategy
integer
The data strategy value for this sensor. See eSensorDataStrategy enum values: 1 = Polling, 2 = Endpoint, 3 = DisruptiveTechnologies, 4 = Pressac.
PayloadDataPath
string
The payload data path value for this sensor.
ActionTriggerFunction
string
The action trigger function value for this sensor.
ValueFunction
string
The value function value for this sensor.
ActionSendEmailAlert
boolean
Whether action send email alert is enabled.
AlertEmailAddress
string
The alert email address value for this sensor.
WebhookUrl
string
The webhook url value for this sensor.
ActionUpdateDeskAvailability
boolean
Whether action update desk availability is enabled.
ActionUpdateResourceAvailability
boolean
Whether action update resource availability is enabled.
ActionUpdateBookingOccupancy
boolean
Whether action update booking occupancy is enabled.
ActionSendCustomerEmailAlert
boolean
Whether action send customer email alert is enabled.
ActionBookingStart
boolean
Whether action booking start is enabled.
ActionBookingTerminate
boolean
Whether action booking terminate is enabled.
ActionCheckInOrOut
boolean
Whether action check in or out is enabled.
ActionMakeHttpRequest
boolean
Whether action make http request is enabled.
ShowInNowDashboard
boolean
Whether show in now dashboard is enabled.
ShowInPortal
boolean
Whether show in portal is enabled.
SharedSecret
string
The shared secret value for this sensor.
ApiKey
string
The api key value for this sensor.
Username
string
The username value for this sensor.
Password
string
The password value for this sensor.
ReceivedDataOn
string
Date/time value for received data on.
LastReceivedValue
string
The last received value value for this sensor.
LastValueTriggeredAction
boolean
Whether last value triggered action is enabled.
BatteryLevel
integer
The battery level value for this sensor.
NetworkSignalStrength
integer
The network signal strength value for this sensor.
Id
integer
Unique record identifier.
UniqueId
string
UUID of the record.
CreatedOn
string
Date and time the record was created (ISO 8601).
UpdatedOn
string
Date and time the record was last updated (ISO 8601).
UpdatedBy
string
Email of the user who last updated this record.
IsNew
boolean
Whether the record was recently created.
SystemId
string
External system identifier.
Example Response
{
  "BusinessId": 0,
  "Desks": [],
  "Resources": [],
  "CannedResponseId": null,
  "CannedResponseName": null,
  "Name": "",
  "Reference": "",
  "Unit": null,
  "Active": false,
  "SensorType": 0,
  "DataStrategy": 0,
  "PayloadDataPath": null,
  "ActionTriggerFunction": null,
  "ValueFunction": null,
  "ActionSendEmailAlert": false,
  "AlertEmailAddress": null,
  "WebhookUrl": null,
  "ActionUpdateDeskAvailability": false,
  "ActionUpdateResourceAvailability": false,
  "ActionUpdateBookingOccupancy": false,
  "ActionSendCustomerEmailAlert": false,
  "ActionBookingStart": false,
  "ActionBookingTerminate": false,
  "ActionCheckInOrOut": false,
  "ActionMakeHttpRequest": false,
  "ShowInNowDashboard": false,
  "ShowInPortal": false,
  "SharedSecret": null,
  "ApiKey": null,
  "Username": null,
  "Password": null,
  "ReceivedDataOn": null,
  "LastReceivedValue": null,
  "LastValueTriggeredAction": false,
  "BatteryLevel": null,
  "NetworkSignalStrength": null,
  "Id": 87654321,
  "UpdatedOn": "2025-01-15T10:30:00Z",
  "CreatedOn": "2025-01-10T08:00:00Z",
  "UniqueId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "UpdatedBy": "admin@example.com",
  "IsNew": false,
  "SystemId": null,
  "ToStringText": "Sensor Example",
  "LocalizationDetails": null,
  "CustomFields": null
}