Skip to main content
GET
/
v1
/
fleet
/
trailers
/
assignments
List trailer assignments for all trailers
curl --request GET \
  --url https://api.samsara.com/v1/fleet/trailers/assignments \
  --header 'Authorization: Bearer <token>'
{
  "pagination": {
    "endCursor": "MTU5MTEzNjA2OTU0MzQ3",
    "hasNextPage": true,
    "hasPrevPage": true,
    "startCursor": "MTU5MTEzNjA2OTU0MzQ3"
  },
  "trailers": [
    {
      "id": 2041,
      "name": "myTrailer",
      "trailerAssignments": [
        {
          "driverId": 2047,
          "endMs": 1462881998034,
          "startMs": 1462878398034
        }
      ]
    }
  ]
}

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

startMs
integer<int64>

Timestamp in Unix epoch miliseconds representing the start of the period to fetch. Omitting both startMs and endMs only returns current assignments.

endMs
integer<int64>

Timestamp in Unix epoch miliseconds representing the end of the period to fetch. Omitting endMs sets endMs as the current time

limit
number<int64>

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

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.

Response

Returns trailer assignment data for all trailers in your organization

pagination
object
trailers
object[]