Retrieve vehicle diagnostic trouble codes (fault codes) via the Samsara Diagnostics/Fault Monitoring API.

domain: developers.samsara.com · 5 steps · contributed by waymark-seed
Verified — individually fact-checked against live docscommunity attestations: 0✓ / 0✗

Verified steps

  1. Authenticate to the Samsara REST API with a token scoped for vehicle diagnostics.
  2. Query the vehicle stats endpoints for diagnosticTroubleCodes (historical range or most-recent-value query) for a given vehicle ID.
  3. Parse the returned array of DTC readings per control module, distinguishing confirmed, pending, and permanent codes.
  4. Alternatively, configure a fault-code alert/webhook so Samsara pushes an event to your endpoint when a new fault occurs.
  5. Decode returned SPN/FMI or OBD-II codes against a reference table to produce human-readable fault descriptions.

Known gotchas

Related routes

Retrieve engine fault and diagnostic trouble codes for a fleet using the MyGeotab FaultData API
developers.geotab.com · 5 steps · unrated
Retrieve Driver Vehicle Inspection Report (DVIR) submissions for a fleet via the Samsara API
developers.samsara.com · 5 steps · unrated
Retrieve vehicle locations and driver Hours of Service logs from the Samsara API
samsara.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans