GET /locations/{location_id}/devices

Get location devices

This endpoint provides a list of the devices installed at a specific location. By providing the location ID you get a list of all the devices installed in it.

Get location devices

Get location devices

GEThttps://api.getdor.com/dtm-api/v1/locations/{loc_id}/devices
Authorization
Path parameters
loc_id*string

loc_id

Response

Successful operation

Body
dataarray of Device (object)
metaobject
Request
const response = await fetch('https://api.getdor.com/dtm-api/v1/locations/{loc_id}/devices', {
    method: 'GET',
    headers: {
      "Authorization": "basic <token>"
    },
});
const data = await response.json();
Response
{
  "data": [
    {
      "serial_number": "AA000000",
      "device_type_name": "DTM",
      "board_id": "05555ee6f77c888e",
      "firmware_version_name": "1.0.0",
      "last_checkin_at": "2021-10-10T00:00:00Z",
      "update_interval_s": 3000,
      "location": {
        "id": "loc_xxx",
        "name": "Mike's Bikes"
      }
    }
  ]
}

Last updated