Skip to main content
GET
/
v1
/
fleet
/
trailers
/
{trailerId}
/
assignments
List trailer assignments for a given trailer
curl --request GET \
  --url https://api.samsara.com/v1/fleet/trailers/{trailerId}/assignments \
  --header 'Authorization: Bearer <token>'
{
  "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.

Path Parameters

trailerId
integer<int64>
required

ID of trailer. Must contain only digits 0-9.

Query Parameters

startMs
integer<int64>

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

endMs
integer<int64>

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

Response

Returns trailer assignment data for a single trailer

id
integer<int64>
required

ID of the trailer

Example:

2041

name
string<string>
required

Assignment trailer name (given when creating trailer via the trailer portal)

Example:

"myTrailer"

trailerAssignments
object[]