Discussions

Ask a Question
ANSWERED

data-inputs/data-points/history end point

https://api.samsara.com/industrial/data-inputs/data-points/history this endpoint returning seconds level response for few data points. is there any way to pull the those values rollup to month or day.
ANSWERED

Cruise control, Power Take Off Reporting and Regeration Status

We are interested in getting vehicle status information on cruise control e.g. when it is enabled vs. disabled as well as what mode it is in. We are also interested in getting information about when power take-off (PTO) is enabled e.g. is a particular idle using PTO. Last but not least is when regeneration is occurring. Are these pieces of information available via the API? I do see PTO in the beta driver efficiency endpoint but it is not clear where that information is coming from. Let us know. Thanks!
ANSWERED

How to test webhook

How to test webhooks api
ANSWERED

Find Sensor Pairing Info Through API

Quick question - I am trying to determine which Sensors are assigned to which trailer through API. Which call can I use to do this? So far I have not been able to find it.
ANSWERED

Delay between Driver App login and assignment to a Vehicle

When using this API endpoint: https://api.samsara.com/fleet/vehicles/driver-assignments How soon after a driver logs in to the Samsara driver application would we expect to see a valid assignment? I understand this will not necessarily be a fixed delay but is the system designed to post these assignments on an event basis off of the login or is there some background process that is not event-driven that is making the assignment periodically? Is the assignment meant to be close to real-time? Any insight is appreciated.
ANSWERED

Vehicle/Device and Driver info for mobile application

We are developing a mobile application that runs alongside the Samsara driver mobile application. Is there a mobile SDK or recommended way to obtain the vehicle/device that the mobile is currently "working with" and to get notification of the driver login and logout within the mobile software environment? Things that we are wondering: - is there a well-known name for the gateway that shows up as a wifi SSID? - is there an android intent/notification that can be "hooked" when a driver logs in or out of the samsara driver app? Any insight is appreciated.
ANSWERED

Developer Sandbox Instance of SamSara

Hello, Are there any plans to allow developers to have a developer sandbox instance of SamSara? That would be very helpful!
ANSWERED

ETA Calculation

In [https://api.samsara.com/fleet/routes/{id}], how is the eta value being calculated? Is it coming straight from a Google Maps API? Using the vehicle's current speed along with posted speed limits? Any HOS considerations, truck routes, etc.?
ANSWERED

Do the document type IDs need to be persisted when creating a document?

I'm creating a document using the "Create Document" endpoint "fleet/documents". The documentation states that a UUID is required for creating the document, but it's unclear as to whether or not that UUID should persist. For example, if I create a document named "ABC" for driver X, and give it a UUID of "123" (for the sake of brevity here), then when I create another instance of the document "ABC", but this time for driver "Y", does that document also need a UUID of "123"?
ANSWERED

API Integration with ESRI GeoEvent

Has anyone used Samsara API on ESRI GeoEvent? I'm using ESRI GeoEvent to call Samsara API. The problem I have is that GeoEvent cannot make consecutive requests for multiple pages of data. It is required for all the results to be returned in one request. I’ve tried the recommendation on Samsara’s site(https://kb.samsara.com/hc/en-us/articles/360006667552-Integrating-with-ESRI-GIS) but had no luck. I got “POST not allowed on /v1/fleet/vehicles/locations (version 2021.06.09)” for the v1 version, and “invalid token” for the new version of the API.
ANSWERED

Gateway Timeouts More Frequently

Lately our API calls have been receiving a lot more 504 Gateway Timeout errors, which according to https://developers.samsara.com/docs/response-codes means these errors are on Samsara's end, have you experiencing any issues with your servers recently?
ANSWERED

Log Recorded Location Field

What does the logRecordedLocation field represent in the HoursOfService pull? Is that the location of the device the driver was using when the log changed or is that the location of the vehicle's gateway at the time of the log change? Endpoint in question. https://api.samsara.com/fleet/hos/logs Thank you.
ANSWERED

timestamp - api.samsara.com/v1/fleet/assets/locations

Hello! is there a parameter that can be used to retrieve only the most recent data (or filter by timestamp for example) when making a call to api.samsara.com/v1/fleet/assets/locations?
ANSWERED

cycle

J'ai un chauffeur que nous ne sommes pas en mesure de modifier son cycle de travail pour le canada? Nous avons essayé plusieurs option mais le système conserve toujours les anciennes donnés les autres chauffeurs sont tous correct sauf celui-là, alors comment corriger la situation?
ANSWERED

Create Custom Live Share Links

I'd like to generate a Live Share link through an API with a custom destination. Is this possible? Please note I am not an API dev but before I go down the hole of putting one on this I'd like to know if it's even possible. My Goal: Send address and assigned vehicle asset data to Samasara (via Monday.com API) > Generate Live Share Link with custom route and expiration > Send back link to Monday.com with a webhook.
ANSWERED

JSON Response Output/Schema Definition for Certain End Points

I'd like to know if there's a more specific JSON output/schema specification for certain end points like: * https://api.samsara.com/fleet/vehicles/stats/feed * https://api.samsara.com/fleet/vehicles/stats/history Specifically, would like to know the data types (mainly sizes) for: * gps.latitude * gps.longitude * gps.speedMilesPerHour The number of places of precision to the left and right of the decimal place is needed in order to create a relational database that's capable of containing the provided data.
ANSWERED

Will fleet_viewer_url be added to /fleet/routes?

Hello, wondering if we can expect the `fleet_viewer_url` field from `/v1/fleet/dispatch/routes` to be added to the new `/fleet/routes`? Thanks!

How precise is the odometer reading coming from the legacy locations endpoint?

Does the odometer reading returned from the legacy locations endpoint include fractional mileage? For example, it returns meters, and when I convert to miles using division by 1609.344 and then use basic rounding (from midpoint), sometimes I don't get the result I expect (i.e. the mileage reading can round down when I expect it to round up). I even cross compared with the new vehicle stats history endpoint and the last three digits always seem to be zero, which would tell me I lose precision.
ANSWERED

Driver-Assignments Endpoint Data Returned Question

Hello, I am using PowerShell to connect to the Driver-Assignments endpoint. I export the data to a CSV file, which we then use to automatically upload to our local databases. We use this format for 5 - 10 different API calls, but I have an issue with this specific end point. If multiple drivers have driven the same asset, the drivers are listed in a single cell, versus being listed as new rows for the same asset ID. Is there another way to pull this information? The way the data comes back currently is unusable in our databases. I need the data to be returned in a way that shows a single asset ID and then a single driver ID.
ANSWERED

Retrieve the Walkaround Inspection images in a DVIR from the API

Is there a way to get the images, or an URL to the images, that are part of a DVIR?