The official API for ev.energy, version 2.
- Initiate vehicle onboarding
ev.energy v2 API (2.0)
Request
A single command log for a particular vehicle is uniquely identified by the timestamp it was logged at.
- Mock serverhttps://developers.ev.energy/_mock/ev.energy-api-v2/vehicles/{vehicle_id}/command_logs/{logged_at}
- Live API for both production and sandbox requests.https://api.ev.energy/v2/vehicles/{vehicle_id}/command_logs/{logged_at}
- Staging server for internal testing only.https://api-staging.ev.energy/v2/vehicles/{vehicle_id}/command_logs/{logged_at}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developers.ev.energy/_mock/ev.energy-api-v2/vehicles/vhcl01HRFF3SEVSCRAV9B3CHVDFN0H/command_logs/2024-04-17T09:39:45.984584Z?expand=vehicle' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'EvEnergy-Version: 2'Returns the Vehicle command logged at a specific time.
Indicates the version of the API that generated this response. If EvEnergy-Version was not specified in the request, this will be your OAuth application's default version.
The maximum number of requests that can be made to this endpoint per hour. Defaults to 1000 but may vary per client.
The number of requests remaining until this client's rate limit is reached.
The date and time when this command was logged by the ev.energy system.
The type of command that was sent to the vehicle.
External command ID from the vehicle provider.
If a start/stop command was sent, this is the current level that was sent in milliamps.
{ "url": "https://api.ev.energy/v2/vehicles/vhcl01HRFF3SEVSCRAV9B3CHVDFN0H/command_logs/2024-04-17T09:39:45.984584Z/", "logged_at": "2019-08-24T14:15:22Z", "vehicle": "https://api.ev.energy/v2/vehicles/vhcl01HRFF3SEVSCRAV9B3CHVDFN0H", "command": "START_CHARGE", "external_command_id": "ext-cmd-12345", "current_milliamps": 32000, "internal_command_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890" }
The ID of a user to onboard a device for.
Specify the make of vehicle to be onboarded.
Specify the model of vehicle to be onboarded.
Specify the trim of vehicle to be onboarded.
- Mock serverhttps://developers.ev.energy/_mock/ev.energy-api-v2/vehicle_onboarding
- Live API for both production and sandbox requests.https://api.ev.energy/v2/vehicle_onboarding
- Staging server for internal testing only.https://api-staging.ev.energy/v2/vehicle_onboarding
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developers.ev.energy/_mock/ev.energy-api-v2/vehicle_onboarding?user_id=user01HN2NJ9NMRZBXT1H6FT9N7735&make_id=vmak01J443798BF893ZHFQVCS0FA23&model_id=vhcl01HNARS42AVJN9QWQF6J52B7MB&trim_id=vhcl01HNARS42AVJN9QWQF6J52B7MB&client_id=sandbox-cc-id'Have the user's browser follow the redirect to be prompted to connect their vehicle to the ev.energy system.
If a make, model or trim were not provided, the user will first be redirect to a screen to select these.
No content- Mock serverhttps://developers.ev.energy/_mock/ev.energy-api-v2/vehicles/{vehicle_id}/reconnect
- Live API for both production and sandbox requests.https://api.ev.energy/v2/vehicles/{vehicle_id}/reconnect
- Staging server for internal testing only.https://api-staging.ev.energy/v2/vehicles/{vehicle_id}/reconnect
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://developers.ev.energy/_mock/ev.energy-api-v2/vehicles/vhcl01HRFF3SEVSCRAV9B3CHVDFN0H/reconnect \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"url": "https://app.ev.energy/vehicle-onboarding/start/56091b3b-86e9-4e7c-a825-f99e5d131234",
"expiry": "2022-11-03T20:26:10.344522Z"
}'Returns the newly generated reconnection URL and it's expiry time.
Indicates the version of the API that generated this response. If EvEnergy-Version was not specified in the request, this will be your OAuth application's default version.
The maximum number of requests that can be made to this endpoint per hour. Defaults to 1000 but may vary per client.
The number of requests remaining until this client's rate limit is reached.
{ "url": "https://app.ev.energy/vehicle-onboarding/start/56091b3b-86e9-4e7c-a825-f99e5d131234", "expiry": "2022-11-03T20:26:10.344522Z" }