Get currently active driver-trailer assignments for driver.
Rate limit: 5 requests/sec (learn more about rate limits here).
To use this endpoint, select Read Assignments under the Assignments category when creating or editing an API token. Learn More.
Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
curl --request GET \
--url https://api.samsara.com/driver-trailer-assignments \
--header 'Authorization: Bearer <token>'{
"data": [
{
"driver": {
"driverId": "0987",
"externalIds": {}
},
"id": "08b3aeada5f4ab3010c0b4efa28d2d1890dbf8d48d2d6",
"startTime": "2019-06-13T19:08:25Z",
"trailer": {
"trailerId": "494123"
},
"createdAtTime": "2019-06-13T19:08:25Z",
"endTime": "2019-06-13T20:10:25Z",
"updatedAtTime": "2019-06-13T19:10:25Z"
}
],
"pagination": {
"endCursor": "MjkY",
"hasNextPage": true
}
}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.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
A filter on the data based on this comma-separated list of driver IDs and externalIds. Example: driverIds=1234,5678,payroll:4841
If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
Optional boolean indicating whether to return external IDs on supported entities
curl --request GET \
--url https://api.samsara.com/driver-trailer-assignments \
--header 'Authorization: Bearer <token>'{
"data": [
{
"driver": {
"driverId": "0987",
"externalIds": {}
},
"id": "08b3aeada5f4ab3010c0b4efa28d2d1890dbf8d48d2d6",
"startTime": "2019-06-13T19:08:25Z",
"trailer": {
"trailerId": "494123"
},
"createdAtTime": "2019-06-13T19:08:25Z",
"endTime": "2019-06-13T20:10:25Z",
"updatedAtTime": "2019-06-13T19:10:25Z"
}
],
"pagination": {
"endCursor": "MjkY",
"hasNextPage": true
}
}