Skip to content

List Routes

Retrieve all route records from Samsara with automatic pagination handling.

listRoutes

route

This operation has no required parameters.

OptionTypeDefaultDescription
Tag IDsstring-Comma-separated list of tag IDs to filter routes by
Created After TimedateTime-Filter routes created after this time (RFC 3339 format)
Updated After TimedateTime-Filter routes updated after this time (RFC 3339 format)
Include Debug InfobooleanfalseWhether to include metadata about the API request

Returns an array of route records:

{
"id": "route_123",
"name": "Morning Delivery Route",
"driverId": "driver_456",
"vehicleId": "vehicle_789",
"stops": [],
"settings": {}
}

With debug info enabled:

{
"id": "route_123",
"name": "Morning Delivery Route",
"_metadata": {
"totalRoutes": 25
}
}
{
"success": false,
"error": "API rate limit exceeded"
}
  • Missing API Token: Samsara credential is missing apiToken
  • Rate Limiting: API rate limit exceeded
  • Invalid Date Format: Created/updated time is not in RFC 3339 format