RestApiModule - Inputs Api

Get all or one or more inputs by inputName

Returns all available inputs and their (logical) state or one or more inputs by passing their inputName. See SupportedDevices to learn more about what inputs are available.

Authorization level

  • 30 (RestApiModuleGetData )

URL parameters

  • endcustomerId: Endcustomer Id.

  • assetId: Asset Id.

  • deviceId: Device Id of peripheral linked to the asset.

  • inputName1 / inputName2: (optional) See SupportedDevices to learn more about what inputs are available.

GET /endcustomers/{endcustomerId}/assets/{assetId}/restapi/hal/devices/{deviceId}/inputs?inputName={inputName1}&inputName={inputName2}

Example request:

GET /endcustomers/edfd1133-88ec-4f2d-abb8-16238c6ad926/assets/10401990013-123455789/restapi/hal/devices/WTIO1/inputs HTTP/1.1
Accept: application/json
Authorization: Bearer eyJhbGciOiJS...
X-API-Version: 1.0

Example response:

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Api-Supported-Versions: 1.0

[
   {
      "name": "IND1",
      "value": 0
   },
   {
      "name": "IND2",
      "value": 0
   },
   //...more inputs...
   {
      "name": "IND12",
      "value": 0
   }

]

Status Codes:
Response Headers:
  • Content-Type – application/json; charset=utf-8

  • Api-Supported-Versions – supported api versions

Response JSON Object:
  • inputs (array) – array with inputs and their logical values (0 or 1)

Events

A webhook message is sent when an input state changes.

Authorization level

  • 32 (RestApiModuleNotification )

Properties

{
   "event": {
      "methodName": "receiveInputs",
      "arguments": [
      {
         "inputs": [
         {
            "name": "IND2",
            "value": 1
         }],
         "deviceId": "WTIO1",
         "version": "1.0"
      }],
      "$type": 300
   },
   "moduleId": "RestApiModule1",
   "$type": 2,
   "version": 1,
   "createdUtc": "2026-11-20T10:56:56.0170712Z",
   "reportedUtc": "2026-11-20T10:56:47.056Z",
   "id": "7b1ad0e7-2759-48a4-8465-1a795f72c61c",
   "assetId": "10401990013-123004002"
}