Skip to main content
GET
/
v1
/
fleet
/
assets
/
locations
List current location for all assets
curl --request GET \
  --url https://api.samsara.com/v1/fleet/assets/locations \
  --header 'Authorization: Bearer <token>'
{
  "assets": [
    {
      "id": 1,
      "assetSerialNumber": "8dka2810",
      "cable": {
        "assetType": "Thermo King"
      },
      "engineHours": 104,
      "location": [
        {
          "latitude": 37,
          "location": "525 York, San Francisco, CA",
          "longitude": -122.7,
          "speedMilesPerHour": 35,
          "timeMs": 12314151
        }
      ],
      "name": "Trailer 123"
    }
  ],
  "pagination": {
    "endCursor": "MTU5MTEzNjA2OTU0MzQ3",
    "hasNextPage": true,
    "hasPrevPage": true,
    "startCursor": "MTU5MTEzNjA2OTU0MzQ3"
  }
}

Documentation Index

Fetch the complete documentation index at: https://samsara-showcase.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

startingAfter
string

Pagination parameter indicating the cursor position to continue returning results after. Used in conjunction with the 'limit' parameter. Mutually exclusive with 'endingBefore' parameter.

endingBefore
string

Pagination parameter indicating the cursor position to return results before. Used in conjunction with the 'limit' parameter. Mutually exclusive with 'startingAfter' parameter.

limit
number<int64>

Pagination parameter indicating the number of results to return in this request. Used in conjunction with either 'startingAfter' or 'endingBefore'.

Response

List of assets and their current locations.

assets
object[]
pagination
object