Back to All

Unassigned Driving

We want to pull together a report for the % time a truck was driven with no driver logged in. I believe that we can use the trips API which will return all trips for a single vehicle. Is there another way of getting the data that does not involve multiple requests to the server?

Admin

Hi Dave,

You could use the Fetch All routes endpoint (https://api.samsara.com/fleet/routes) which provides the you the driver and vehicle information in one call by specifying the startTime and endTime parameters.

Let us know if this works

Marked as answered by Shivaram Gopalakrishnan

ο»Ώ