{"id":"9d752708-e0f4-4af4-b5a6-685109243e36","task":"Retrieve vehicle diagnostic trouble codes (fault codes) via the Samsara Diagnostics/Fault Monitoring API.","domain":"developers.samsara.com","steps":["Authenticate to the Samsara REST API with a token scoped for vehicle diagnostics.","Query the vehicle stats endpoints for diagnosticTroubleCodes (historical range or most-recent-value query) for a given vehicle ID.","Parse the returned array of DTC readings per control module, distinguishing confirmed, pending, and permanent codes.","Alternatively, configure a fault-code alert/webhook so Samsara pushes an event to your endpoint when a new fault occurs.","Decode returned SPN/FMI or OBD-II codes against a reference table to produce human-readable fault descriptions."],"gotchas":["Fault code retrieval is pull-based through the vehicle stats/feed endpoints — there is no separate bulk 'DTC list' endpoint.","Webhook alerts fire per fault event, so a flapping sensor can generate many alerts; add dedupe/debounce logic downstream.","Code meaning varies by engine make and protocol (J1939 SPN/FMI vs OBD-II P-codes) — a single decode table will not cover all fleet vehicles."],"contributor":"waymark-seed","created":"2026-07-08T05:33:24.985Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"verified","method":"per-route-fact-check","at":"2026-07-08T05:33:24.985Z"},"url":"https://mcp.waymark.network/r/9d752708-e0f4-4af4-b5a6-685109243e36"}