# Get Device Information

> Request and retrieve detailed device information for both InvisOutlet and InvisDeco.

**Request**

* <mark style="color:red;">`packetID`</mark>: A randomly generated six-digit number.
* <mark style="color:red;">`payload`</mark>:&#x20;
  * <mark style="color:red;">`callbackName`</mark>: 12

```json
{
    "packetID": 373184,    
    "payload":
    {
        "callbackName": 12,  
    }
}
```

**Response**

* <mark style="color:red;">`sn`</mark>: The serial number of the device.
* <mark style="color:red;">`packetID`</mark>: A randomly generated six-digit number.
* <mark style="color:red;">`payload`</mark>:&#x20;
  * <mark style="color:red;">`callbackName`</mark>: 12
  * <mark style="color:red;">`callbackArgs`</mark>:&#x20;
    * <mark style="color:red;">`IM`</mark>:
      * <mark style="color:red;">`sn`</mark>: Serial number
      * <mark style="color:red;">`MAC`</mark>: MAC address
      * <mark style="color:red;">`device`</mark>: Name of the device role
      * <mark style="color:red;">`fw_rev`</mark>: Firmware version of the InvisOutlet
    * <mark style="color:red;">`PM`</mark>:
      * <mark style="color:red;">`online`</mark>: The status of whether the InvisDeco is connected to InvisOutlet
      * <mark style="color:red;">`sn`</mark>: Serial number
      * <mark style="color:red;">`MAC`</mark>: MAC address
      * <mark style="color:red;">`device`</mark>: Name of the device role
      * <mark style="color:red;">`type`</mark>: Name of the device type
      * <mark style="color:red;">`fw_rev`</mark>: Firmware version of the InvisDeco
      * <mark style="color:red;">`radar`</mark>: Occupancy sensor device information
        * <mark style="color:red;">`fw_rev`</mark>: Firmware version of the occupancy sensor
        * <mark style="color:red;">`hw_type`</mark>: Hardware type of the occupancy sensor
        * <mark style="color:red;">`MAC`</mark>: MAC address of the occupancy sensor

```json
{
    "sn": "11A1F7000FE",
    "packetID": 373184,
    "PUBACK": 1,
    "payload": {
        "callbackName": 12,
        "callbackArgs": {
            "IM": {
                "sn": "11A1F7000FE",
                "MAC": "4C7525F05D04",
                "device": "InvisOutlet",
                "fw_rev": "0.5.7"
            },
            "PM": {
                "online": true,
                "sn": "24A173000A2",
                "MAC": "10061CD059F8",
                "device": "InvisDeco",
                "type": "Pro",
                "fw_rev": "0.8.4",
                "radar": {
                    "fw_ver": "V2.49.24092710",
                    "hw_type": "0100",
                    "MAC": "1677294004E7"
                }
            }
        }
    }
}
```
