The official API for ev.energy, version 2.
ev.energy v2 API (2.0)
A resource representing a single, physical electric vehicle.
Unique identifier for the given Vehicle.
Defaults to a url, but can be expanded to the full Trim resource via the expand query parameter.
Defaults to a url, but can be expanded to the full Trim resource via the expand query parameter.
Defaults to a url, but can be expanded to the full User resource via the expand query parameter.
Defaults to a url, but can be expanded to the full User resource via the expand query parameter.
An expandable reference to the most recent status log for this Vehicle. This can be requested or expanded to get the most accurate information we have on the device's current status.
An expandable reference to the most recent status log for this Vehicle. This can be requested or expanded to get the most accurate information we have on the device's current status.
Provides a pre-constructed URL to list charging sub-sessions involving this Vehicle.
Whether we have an integration with this vehicle.
UNINTEGRATED: This vehicle is not integratedACTIVE: This vehicle is integrated and the connection is working.INACTIVE: This vehicle has been integrated but the connection has been severed, usually because the user needs to reconnect it.
{ "id": "vhcl01HRFF3SEVSCRAV9B3CHVDFN0H", "url": "https://api.ev.energy/v2/vehicles/vhcl01HRFF3SEVSCRAV9B3CHVDFN0H", "trim": "https://api.ev.energy/v2/trim/vehicle_trim01HRFHBCM7VBSWRPVYFBQMH2BR", "user": "https://api.ev.energy/v2/users/user01HN2NJ9NMRZBXT1H6FT9N7735", "latest_status_log": "https://api.ev.energy/v2/vehicles/vhcl01HRFF3SEVSCRAV9B3CHVDFN0H/status_logs/2024-04-17T09:39:45.994584Z/", "charging_sub_sessions": "https://api.ev.energy/charging_sub_sessions/?vehicle_id=vhcl01HRFF3SEVSCRAV9B3CHVDFN0H", "integrated": "UNINTEGRATED", "maximum_charge_limit_percentage": 100 }
Fields that can (or must) be set when creating a Vehicle resource.
{ "trim": "https://api.ev.energy/v2/trim/vehicle_trim01HRFHBCM7VBSWRPVYFBQMH2BR", "user": "https://api.ev.energy/v2/users/user01HN2NJ9NMRZBXT1H6FT9N7735" }
A resource representing a "trim level" of a particular vehicle model, which captures a specific set of features.
Unique identifier for the given Vehicle Trim.
A pre-constructed link to initiate onboarding for a vehicle with this trim. If it is null, then we do not support intergrating with this vehicle and you should POST the trim to /vehicles to create an unintegrated vehicle.
Note: if you are using client credentials authentication, the user ID will not be automatically included unless you set the EvEnergy-User header on your request.
{ "id": "trim01HRFHBCM7VBSWRPVYFBQMH2BR", "url": "https://api.ev.energy/v2/vehicle_trim/trim01HRFHBCM7VBSWRPVYFBQMH2BR", "name": "Recharge Core (69 kWh)", "model": "http://example.com", "onboarding_url": "https://api.ev.energy/v2/vehicle_onboarding?trim_id=trim01HN2NZ1040Y8E77CQGXADC2TZ&user_id=user01HN2NJ9NMRZBXT1H6FT9N7735" }