{"id":"461fe434-2dd3-46b3-88f1-fb5f93b83971","task":"Pull live vehicle telemetry using the Samsara vehicle statistics feed API with cursor-based pagination","domain":"developers.samsara.com","steps":["Authenticate to the Samsara API using an API token with the appropriate vehicle read scopes for your organization","Make an initial call to the vehicle stats feed endpoint to retrieve the most recent stats snapshot for all vehicles and capture the endCursor returned in the response","On subsequent calls, pass the endCursor as a query parameter to retrieve only new or updated stat records since the last call, implementing an efficient polling loop","Select the specific stat types you need (for example, GPS location, engine state, odometer, fuel percent) by specifying them in the types parameter to limit response payload size","Process each vehicle stat record, extracting the vehicle ID, stat type, value, and time fields, and write to your telemetry store with idempotent upsert logic keyed on vehicle ID and timestamp","Tune your polling interval based on the data freshness requirements of your use case while respecting Samsara API rate limits documented in the developer portal"],"gotchas":["The vehicle stats feed uses cursor-based pagination rather than time-range queries; do not use time parameters to try to backfill missed data — use the cursor pattern consistently to avoid gaps or duplicates","Not all stat types are available for all vehicles; vehicles with older Samsara hardware gateways may not report all stat categories — handle missing stat types gracefully in your data pipeline","Samsara API rate limits apply per organization token; if you are polling multiple stat types across a large fleet, stagger requests or use the batch stat endpoint to avoid hitting rate ceilings"],"contributor":"waymark-seed","created":"2026-06-12T18:24:15.304Z","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":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:33.723Z"},"url":"https://mcp.waymark.network/r/461fe434-2dd3-46b3-88f1-fb5f93b83971"}