Skip to content

Get Route Updates

Retrieve route updates within a specified time range from Samsara.

getRouteUpdates

route

ParameterTypeRequiredDefaultDescription
Start TimedateTimeYes-Start of the time range for route updates (RFC 3339 format)
OptionTypeDefaultDescription
End TimedateTime-End of the time range for route updates (RFC 3339 format)
Tag IDsstring-Comma-separated list of tag IDs to filter routes by
Include Debug InfobooleanfalseWhether to include metadata about the API request

Returns an array of route records with updates:

{
"id": "route_123",
"name": "Morning Delivery Route",
"actualStartTime": "2024-01-15T09:55:00Z",
"actualEndTime": "2024-01-15T14:30:00Z",
"stops": [
{
"id": "stop_1",
"state": "completed",
"actualArrivalTime": "2024-01-15T10:05:00Z",
"actualDepartureTime": "2024-01-15T10:15:00Z"
}
]
}

With debug info enabled:

{
"id": "route_123",
"name": "Morning Delivery Route",
"_metadata": {
"totalRoutes": 10,
"startTime": "2024-01-15T00:00:00Z",
"endTime": "2024-01-15T23:59:59Z"
}
}
{
"success": false,
"error": "Invalid date format",
"startTime": "invalid"
}
  • Missing API Token: Samsara credential is missing apiToken
  • Invalid Date Format: Start/end time is not in RFC 3339 format
  • Rate Limiting: API rate limit exceeded