Device

/devices ๐Ÿงช

GET apiURL/devices

Get all devices.

Query Parameters

Name
Type
Description

skip

number

filter

string

orderby

string

limit

number

fields

string

{
  "data": [
    {
      "sku": "403020315F313210313745306131323034322531",
      "sku_220": "",
      "sku_ascii": "0002O21015613140C22088ML12",
      "sku_decimal": 368265997182764,
      "version": "2",
      "name": "ML01",
      "ppcp": null,
      "service_changed": null,
      "system_id": null,
      "model_number": null,
      "serial_number": null,
      "firmware_revision": "2.21",
      "hardware_revision": "3.21",
      "software_revision": "2.12",
      "manufacturer_name": "smarto",
      "rcdt": null,
      "comment": null,
      "last_update_date": "2018-04-06T00:00:00.000Z",
      "faulty_at": null,
      "created_at": "2017-06-22T15:12:59.000Z",
      "bound_at": "2018-04-06T15:09:53.000Z"
    }
  ],
  "total": 50,
  "skip": 0,
  "limit": 1
}

/device/:key ๐Ÿงช

GET apiURL/device/:key

Get a device by imei or serial.

Path Parameters

Name
Type
Description

key

string

Device imei or serial ex: 356938025643809

Query Parameters

Name
Type
Description

fields

string

{
  "sku": null,
  "sku_220": "",
  "sku_ascii": "0002O21015613140C22088ML12",
  "sku_decimal": 368265997182764,
  "version": "2",
  "name": null,
  "ppcp": null,
  "service_changed": null,
  "system_id": null,
  "model_number": null,
  "serial_number": null,
  "firmware_revision": null,
  "hardware_revision": null,
  "software_revision": null,
  "manufacturer_name": "smarto",
  "rcdt": null,
  "comment": null,
  "last_update_date": null,
  "faulty_at": null,
  "created_at": "2017-09-06T15:41:44.000Z",
  "bound_at": null
}

/:key/vehicles ๐Ÿงช

GET apiURL/device/:key/vehicles

Get all vehicles attached to a device.

Path Parameters

Name
Type
Description

key

string

Device imeil or serial ex: 356938025643809

Query Parameters

Name
Type
Description

skip

number

filter

string

orderby

string

limit

number

fields

string

{
  "data": [
    {
      "bound_at": "2018-04-06T14:43:22.000Z",
      "device_data": {
        "sku_ascii": "0002O21015613140C22088ML12"
      }
    }
  ],
  "total": 1,
  "skip": 0,
  "limit": 20
}

Last updated

Was this helpful?