Discussions

Ask a Question

API to query a list of log edits made by a driver

Is there a way to identify when a driver edits a log without having to re-pull a range of logs?

Refresh Token API not working

We have been using oAuth for our application for a while. Recently "oauth2/token" for refresh_token has been failing with error "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed" with error_hint "Make sure that the various parameters are correct, be aware of case sensitivity and trim your parameters. Make sure that the client you are using has exactly whitelisted the redirect_uri you specified" We are passing all mandatory fields "refresh_token","grant_type","redirect_uri" as x-www-form-urlencoded Headers: Authorization : Basic {{base64 encoded credentials}} I reverified the refresh_token and credentials multiple time. Not sure why the API says it it missing required parameter. Can someone help us with this?

Which url endpoint can i use to write live telematics of sensors?

Looking to write live telematics for multiple sensor types.
ANSWERED

What is the endpoint to create "Deliveries"?

We read the API reference and, we did not find the endpoint to create deliveries which is different to routes and for that reason it is more functional to our operations...

Vehicle "Safe" Status

Is there a quick/easy way to get the current vehicle safe/unsafe status? Without polling all or the last DVIRs?
ANSWERED

How i may to send the author type?

in https://api.samsara.com/fleet/defects/id where i want to update a defect is responding me with a error, it say: ""message":"Author type must be \\"mechanic\\""" but in the docs there dont say how i need to declarate it
ANSWERED

Upcoming Preventative Maintenance Items

I have a use case where I would like to access the "Upcoming Preventative Maintenance Items" and resolve them via an API call. I can't seem to find where this information exposed, is it available somehow?
ANSWERED

Route ID

Do Route ID remains constant or change every time?
ANSWERED

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
ANSWERED

Driver ID

I want to return the driver ID based on username is there a way to do that with the drivers api.