> ## Documentation Index
> Fetch the complete documentation index at: https://learn.nexudus.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get one Sensor

> Retrieve a single Sensor record by its Id.

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

<Note>
  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.
</Note>

## Path Parameters

<ParamField path="id" type="integer" required>
  The Id of the Sensor record to retrieve.
</ParamField>

## Code Examples

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET \
    "https://spaces.nexudus.com/api/sys/sensors/87654321" \
    -H "Authorization: Bearer YOUR_TOKEN"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://spaces.nexudus.com/api/sys/sensors/87654321',
    {
      headers: {
        'Authorization': 'Bearer YOUR_TOKEN'
      }
    }
  );

  const record = await response.json();
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      'https://spaces.nexudus.com/api/sys/sensors/87654321',
      headers={
          'Authorization': 'Bearer YOUR_TOKEN'
      }
  )

  record = response.json()
  ```
</CodeGroup>

## Response

### 200

<ResponseField name="BusinessId" type="integer">
  ID of the business linked to this record.
</ResponseField>

<ResponseField name="Desks" type="integer[]">
  List of desks linked to this record.
</ResponseField>

<ResponseField name="Resources" type="integer[]">
  List of resources linked to this record.
</ResponseField>

<ResponseField name="CannedResponseId" type="integer">
  ID of the canned response linked to this record.
</ResponseField>

<ResponseField name="CannedResponseName" type="string">
  Display name of the linked canned response (read-only).
</ResponseField>

<ResponseField name="Name" type="string">
  The name value for this sensor.
</ResponseField>

<ResponseField name="Reference" type="string">
  The reference value for this sensor.
</ResponseField>

<ResponseField name="Unit" type="string">
  The unit value for this sensor.
</ResponseField>

<ResponseField name="Active" type="boolean">
  Whether this sensor is currently active.
</ResponseField>

<ResponseField name="SensorType" type="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.
</ResponseField>

<ResponseField name="DataStrategy" type="integer">
  The data strategy value for this sensor. See `eSensorDataStrategy` enum values: `1` = Polling, `2` = Endpoint, `3` = DisruptiveTechnologies, `4` = Pressac.
</ResponseField>

<ResponseField name="PayloadDataPath" type="string">
  The payload data path value for this sensor.
</ResponseField>

<ResponseField name="ActionTriggerFunction" type="string">
  The action trigger function value for this sensor.
</ResponseField>

<ResponseField name="ValueFunction" type="string">
  The value function value for this sensor.
</ResponseField>

<ResponseField name="ActionSendEmailAlert" type="boolean">
  Whether action send email alert is enabled.
</ResponseField>

<ResponseField name="AlertEmailAddress" type="string">
  The alert email address value for this sensor.
</ResponseField>

<ResponseField name="WebhookUrl" type="string">
  The webhook url value for this sensor.
</ResponseField>

<ResponseField name="ActionUpdateDeskAvailability" type="boolean">
  Whether action update desk availability is enabled.
</ResponseField>

<ResponseField name="ActionUpdateResourceAvailability" type="boolean">
  Whether action update resource availability is enabled.
</ResponseField>

<ResponseField name="ActionUpdateBookingOccupancy" type="boolean">
  Whether action update booking occupancy is enabled.
</ResponseField>

<ResponseField name="ActionSendCustomerEmailAlert" type="boolean">
  Whether action send customer email alert is enabled.
</ResponseField>

<ResponseField name="ActionBookingStart" type="boolean">
  Whether action booking start is enabled.
</ResponseField>

<ResponseField name="ActionBookingTerminate" type="boolean">
  Whether action booking terminate is enabled.
</ResponseField>

<ResponseField name="ActionCheckInOrOut" type="boolean">
  Whether action check in or out is enabled.
</ResponseField>

<ResponseField name="ActionMakeHttpRequest" type="boolean">
  Whether action make http request is enabled.
</ResponseField>

<ResponseField name="ShowInNowDashboard" type="boolean">
  Whether show in now dashboard is enabled.
</ResponseField>

<ResponseField name="ShowInPortal" type="boolean">
  Whether show in portal is enabled.
</ResponseField>

<ResponseField name="SharedSecret" type="string">
  The shared secret value for this sensor.
</ResponseField>

<ResponseField name="ApiKey" type="string">
  The api key value for this sensor.
</ResponseField>

<ResponseField name="Username" type="string">
  The username value for this sensor.
</ResponseField>

<ResponseField name="Password" type="string">
  The password value for this sensor.
</ResponseField>

<ResponseField name="ReceivedDataOn" type="string">
  Date/time value for received data on.
</ResponseField>

<ResponseField name="LastReceivedValue" type="string">
  The last received value value for this sensor.
</ResponseField>

<ResponseField name="LastValueTriggeredAction" type="boolean">
  Whether last value triggered action is enabled.
</ResponseField>

<ResponseField name="BatteryLevel" type="integer">
  The battery level value for this sensor.
</ResponseField>

<ResponseField name="NetworkSignalStrength" type="integer">
  The network signal strength value for this sensor.
</ResponseField>

<ResponseField name="Id" type="integer">
  Unique record identifier.
</ResponseField>

<ResponseField name="UniqueId" type="string">
  UUID of the record.
</ResponseField>

<ResponseField name="CreatedOn" type="string">
  Date and time the record was created (ISO 8601).
</ResponseField>

<ResponseField name="UpdatedOn" type="string">
  Date and time the record was last updated (ISO 8601).
</ResponseField>

<ResponseField name="UpdatedBy" type="string">
  Email of the user who last updated this record.
</ResponseField>

<ResponseField name="IsNew" type="boolean">
  Whether the record was recently created.
</ResponseField>

<ResponseField name="SystemId" type="string">
  External system identifier.
</ResponseField>

```json Example Response theme={null}
{
  "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
}
```
