v1

latestOpenAPI 3.1.02026-07-2617501.1 MB

List the location details of an asset (v2)

get/v2/asset_locations/{id}

Path parameters

idinteger required

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

Query parameters

start_datestring date required

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

end_datestring date required

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. Allowed values - 1 to 500

cursorstring

[OPTIONAL] Use this parameter to fetch the next page of results. First call the same endpoint without cursor. After you receive the first page, pass the cursor value returned in the response to retrieve the next set of results. Continue until the response returns pagination.cursor as null.

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"
    }
  ],
  "pagination": {
    "per_page": 250,
    "cursor": "next-page-token"
  }
}