v1

latestOpenAPI 3.1.02026-07-2617501.1 MB

List the location details of an asset

get/v1/asset_locations/{id}

Path parameters

idinteger required

Specify the ID of an asset to know it's location details.

Query parameters

start_date (optional)string date

Specify the start date from which you want to fetch the asset's location history.

end_datestring date

Provide the end date for when you want to check the location history of the asset.

per_pageinteger

Number of records to display per page.

page_nointeger

Denotes the current page number.

Headers

X-Time-Zonestring

Specify the timezone for formatting the timestamps.

X-Metric-Unitsboolean

Specify if you want to use the Metric units or the Imperial units. TRUE: Metric units. FALSE: Imperial Units

X-User-Idinteger

Specify the ID of the Fleet Admin or the Fleet Manager who is accessing this endpoint.

Response

200

Example response

{
  "asset": {
    "id": 663,
    "name": "def",
    "status": "active",
    "type": "low_boy",
    "make": "AUTOMOTRIZ PEYCHA, S.A. DE C.V.",
    "model": "DAIMLERCHRYSLER AG",
    "year": "2011",
    "asset_gateway": {
      "id": 726,
      "identifier": "ATG-KTX-G0K",
      "active": true
    },
    "breadcrumbs": [
      {
        "uuid": "2a9bfd46-4bec-4760-a763-d99e7f3010a8",
        "lat": 1.1,
        "lon": 181.00001,
        "bearing": 0.1,
        "speed": 0.1,
        "motion_description": "Not Moving",
        "located_at": "2020-01-01T13:00:00Z"
      }
    ]
  }
}