/api/v1/devices

GET /api/v1/devices

Return a JSON object keyed with serial numbers of known LinQ devices.

Example request:

GET /api/v1/devices?start=0&count=2 HTTP/1.0
Host: 192.168.0.22
Accept: application/json, text/javascript
Content-Type: application/json

Example response:

HTTP/1.0 200 OK
Content-Type: application/json

{
  "4B_j7lZYk8UByAjU7vjyDB1Uam17wSzri5QMN11q_G8=": {
    "siteId": "LinQ2-Office",
    "product": "LINQ2",
    "prjVersion": "2.01.32",
    "mqxVersion": "4.2.0",
    "atxVersion": "2.02.01",
    "mac": "CC:7F:39:86:E4:DE",
    "sid": "4B_j7lZYk8UByAjU7vjyDB1Uam17wSzri5QMN11q_G8=",
    "lastSeen": 1580601600
  },
  "AsrxFq_Gb39asADB92SsriSqQmf33PoMzzerRf_afe=": {
    "siteId": "Netway8BT-Conference",
    "product": "Netway8BT",
    "prjVersion": "2.01.32",
    "mqxVersion": "4.2.0",
    "atxVersion": "2.02.01",
    "mac": "CC:7F:39:86:E4:DD",
    "sid": "AsrxFq_Gb39asADB92SsriSqQmf33PoMzzerRf_afe=",
    "lastSeen": 1580601600
  }
}
Query Parameters:
 
  • serial (string) – (optional) return only data for a single serial number device
  • search (string) – (optional) Return only keys that match this search
  • start (number) – (optional) return devices starting at a specific index
  • count (number) – (optional) return a specified amount of devices
  • sort (string) – (optional) sort result by a specific key
Response JSON Object:
 
  • siteId (string) – Location of the device
  • product (string) – Product type key
  • prjVersion (string) – Project Version
  • atxVersion (string) – Common Version
  • mqxVersion (string) – OS Version
  • mac (string) – MAC address
  • sid (string) – Serial Number
  • lastSeen (number) – The last time LinQ Network has seen the device in unix