Community
Question about Oauth2 implementation details
Hi,
Currently I am using Samsara Legacy API. The authorization logic atm is using the api key.
But I saw, that there is oaut2 mention. We prefer to use oauth2 based authorizations, to add additional level of security - using static api key is not as secure as oaut2.
So, for Oauth2 related info I see in the docs: https://www.samsara.com/api-legacy#section/Authentication/OAuth2 just that table.
From where can we get more info, about:
- how it must be implemented
- do we need to create app, which will be installed per client, with permissions .. etc
- what are the possible scopes
- possible examples, for:
- authorization, eg initiall "install" request
- refresh /get new token pairs/
Posted by Mihail Krastev over 3 years ago
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"?
Posted by tester222 about 3 years ago
List of error codes and definition
Can you please share a list of "possible" error codes?
Posted by Tim Park over 3 years ago
Geofences
I have 2 different customers inside the same building. When my driver gets to this address it confirms the 1st delivery, but then he has to leave the parking lot and drive back into the geofence to confirm the 2nd delivery. Is there a away to link the 2 customers to 1 geofence?
Posted by Corey Davidson over 3 years ago
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.
Posted by Sarah H. over 3 years ago
Cancel a route?
I initially thought I could cancel a route through the update endpoint, but I'm not seeing a way to mark a route as skipped or canceled. How can I cancel (not delete) a route?
Posted by Taco 🌮 over 3 years ago
AG26 / AG46P
Is there a way to get the battery status of these devices?
Posted by Matt Gibson almost 4 years ago
Live Share Via API
Is there any plans to manage Live Share links through the API?
Posted by Idas over 3 years ago
CORS Error - Anyone have any suggestions?
I'm trying to retrieve all routes for a given day and populate a Table in my web application. When I send the web request to Samsara I'm getting the following error message in my console log.
Access to XMLHttpRequest at 'https://api.samsara.com/fleet/routes?startTime=2021-11-01T01:00:00Z&endTime=2021-11-01T23:59:59Z&limit=512' from origin 'https://www-p02.intacct.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Any help would be greatly appreciated.
Randy
Posted by Randy Kardas almost 3 years ago
What if Samsara has incorrect speed or if GPS assumes the wrong (probably adjacent) road?
Drivers that have not exceeded posted speed limits are receiving reports of severe or heavy speeding. GPS is not always able to tell which roads are being traveled, particularly in densely populated areas where roads may be stacked on top of each other (NYC, Baltimore, DC, etc.). Driver morale suffers when they have been driving impeccably all week and then see their score drop 4 or more points in one day when they were not actually speeding. Getting drivers to go to certain destinations can be a tough sell when they know that their score will drop as a result. Gamification only exacerbates this problem because then the other drivers can see a score drop even though the drop was undeserved. Our drivers are exceedingly competitive, so this inaccuracy has caused some frustration.
Posted by Allen Howell over 1 year ago