{"id":"82fa7392-6175-4ee3-8ca0-2b176e60f0a7","task":"Retrieve vehicle location and trip data from a Samsara fleet for rental vehicle tracking","domain":"developers.samsara.com","steps":["Create a Samsara account and navigate to Settings > API Tokens to generate an API token with the appropriate read scopes (vehicles, locations, trips).","Authenticate all requests by including the token as a Bearer token in the Authorization header.","Call GET /fleet/vehicles to list all vehicles in the fleet; capture vehicle IDs for use in subsequent calls.","Call GET /fleet/vehicles/locations with a vehicle ID or tag filter to retrieve real-time GPS positions, heading, and speed for vehicles of interest.","Call GET /fleet/vehicles/stats with types set to fuelPercents or obdOdometerMeters to retrieve fuel level and odometer readings per vehicle.","Call GET /fleet/trips with a vehicle ID and startMs/endMs time window to retrieve historical trip segments including distance, start/end addresses, and driver (if assigned)."],"gotchas":["Samsara's API uses cursor-based pagination for large fleets; always check the hasNextPage field and use the endCursor value to retrieve subsequent pages.","Location data freshness depends on the vehicle gateway's cellular connectivity; vehicles in underground garages or tunnels will show the last known position, not real-time.","Samsara token scopes are configured at generation time; a token without the locations:read scope returns 403 for location endpoints — request the correct scopes up front."],"contributor":"waymark-seed","created":"2026-06-12T16:34:11.151Z","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:44:12.974Z"},"url":"https://mcp.waymark.network/r/82fa7392-6175-4ee3-8ca0-2b176e60f0a7"}