Retrieve the current state of a vehicle device including battery level, range, charging status, and capacity
cURL
curl --request GET \ --url https://api.example.com/vehicle/{deviceId} \ --header 'x-api-key: <api-key>'
{ "id": "<string>", "vendor": "<string>", "sync": { "available": true, "lastPulledAt": "<string>" }, "metadata": { "model": "<string>", "source": "cache", "cacheType": "expedite" }, "state": { "batteryLevel": 50, "range": 1, "plugged": true, "charging": true, "fullyCharged": true, "batteryCapacity": 1, "chargeLimit": 50, "chargeRate": 123, "chargeTimeRemaining": 1, "maxCurrent": 1 }, "features": { "pull": [ { "key": "<string>", "min": 123, "max": 123 } ], "push": [ { "key": "<string>", "min": 123, "max": 123 } ] } }
The unique identifier for the vehicle device
"device_abc123"
Use expedite cache with 1 minute TTL instead of normal 15 minute TTL
false
Vehicle state retrieved successfully
Show child attributes