curl --request GET \
--url https://api.energy-hub.io/v1.0.0/vehicles/{vehicleId} \
--header 'X-API-KEY: <api-key>'{
"isOnline": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "896f9d5a-b618-48a2-98ae-957059bf1bc9",
"staticData": {
"lastUpdated": "2023-11-07T05:31:56Z",
"vendor": "TESLA",
"vin": "1XKAD29X0KS502460",
"model": "Model 3",
"name": "My Tesla",
"engineType": "BEV",
"batteryCapacity": 60.12,
"vehicleVariant": "Base"
},
"lastUpdated": "2023-11-07T05:31:56Z",
"chargeState": {
"lastUpdated": "2023-11-07T05:31:56Z",
"stateOfCharge": 72.25,
"chargingTimeRemaining": 6,
"chargeLimitMax": 80.25,
"remoteChargingAllowed": true,
"estimatedRange": 106,
"chargingState": "CHARGING",
"chargeRate": 6.512,
"chargeLimitMin": 20.25,
"chargeCurrentMax": 12,
"scheduledDepartureTime": "2023-11-26T05:05:00Z",
"isPlugged": true,
"scheduledChargingStartTime": "2023-11-26T05:00:00Z"
},
"odometer": {
"lastUpdated": "2023-11-07T05:31:56Z",
"odometer": 12228
},
"location": {
"lastUpdated": "2023-11-07T05:31:56Z",
"latitude": 50.770774,
"longitude": -126.104965
},
"climateState": {
"lastUpdated": "2023-11-07T05:31:56Z",
"isClimateOn": true,
"isBatteryHeaterOn": true,
"temperatureCurrent": 18.1,
"temperatureTarget": 20.1
}
}Returns vehicle data of a single vehicle.
curl --request GET \
--url https://api.energy-hub.io/v1.0.0/vehicles/{vehicleId} \
--header 'X-API-KEY: <api-key>'{
"isOnline": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "896f9d5a-b618-48a2-98ae-957059bf1bc9",
"staticData": {
"lastUpdated": "2023-11-07T05:31:56Z",
"vendor": "TESLA",
"vin": "1XKAD29X0KS502460",
"model": "Model 3",
"name": "My Tesla",
"engineType": "BEV",
"batteryCapacity": 60.12,
"vehicleVariant": "Base"
},
"lastUpdated": "2023-11-07T05:31:56Z",
"chargeState": {
"lastUpdated": "2023-11-07T05:31:56Z",
"stateOfCharge": 72.25,
"chargingTimeRemaining": 6,
"chargeLimitMax": 80.25,
"remoteChargingAllowed": true,
"estimatedRange": 106,
"chargingState": "CHARGING",
"chargeRate": 6.512,
"chargeLimitMin": 20.25,
"chargeCurrentMax": 12,
"scheduledDepartureTime": "2023-11-26T05:05:00Z",
"isPlugged": true,
"scheduledChargingStartTime": "2023-11-26T05:00:00Z"
},
"odometer": {
"lastUpdated": "2023-11-07T05:31:56Z",
"odometer": 12228
},
"location": {
"lastUpdated": "2023-11-07T05:31:56Z",
"latitude": 50.770774,
"longitude": -126.104965
},
"climateState": {
"lastUpdated": "2023-11-07T05:31:56Z",
"isClimateOn": true,
"isBatteryHeaterOn": true,
"temperatureCurrent": 18.1,
"temperatureTarget": 20.1
}
}API key used for authorization and authentication.
Vehicle ID
Successful operation
Object of vehicle response.
Indicates if the vehicle is reachable trough the vendor system.
true
The ID of the vehicle.
The ID of the user.
"896f9d5a-b618-48a2-98ae-957059bf1bc9"
Object of static data of a vehicle.
Show child attributes
The timestamp of the last update of the static data.
The vendor of the vehicle.
TESLA, MERCEDES, BMW, MINI, VW, AUDI, SKODA, VOLVO, CUPRA The vehicle identification number (VIN).
"1XKAD29X0KS502460"
The model of the vehicle.
"Model 3"
The display name of the vehicle.
"My Tesla"
The engine type of the vehicle.
BEV, HEV, PHEV, ICEV "BEV"
The rated battery capacity of the vehicle in kWh.
60.12
The variant of the vehicle.
"Base"
The timestamp of the last update of any field in the vehicle data.
Object of charge state data of a vehicle.
Show child attributes
The timestamp of the last update of the charge state data.
The state of the charge of the vehicle battery in percent.
72.25
The remaining charging time in minutes.
6
The maximum state of charge set by the user for the vehicle in percent.
80.25
Indicates if remote charging controls are allowed. It does not simply mean that the vehicle is unplugged, but rather its a vendor specific restriction for not allowing remote charging at the current time (i.e. location of the vehicle is not correct). Can be NULL for vendors that don't have these kinds of restrictions
The estimated range based on the current battery level in km.
106
The current charging state.
UNPLUGGED, CHARGING, PREPARING, FINISHED, STOPPED, FAULT "CHARGING"
The rate of the charge while the vehicle is charging in kW.
6.512
The minimum state of charge set by the user for the vehicle in percent.
20.25
The maximum charging current in amperes.
12
The scheduled departure time set by the user as timestamp.
"2023-11-26T05:05:00Z"
Indicates if the charger is plugged into the car.
true
The scheduled charging start time set by the user as timestamp.
"2023-11-26T05:00:00Z"
Object of location data of a vehicle.
Show child attributes
Object of climate state of a vehicle.
Show child attributes
The timestamp of the last update of the climate state data.
Indicates if the climate control is on.
true
Indicates if the battery heater is on.
true
The current temperature inside the vehicle in °C.
18.1
The target temperature set by the user in °C.
20.1