Skip to content

ev.energy v2 API (2.0)

The official API for ev.energy, version 2.

Download OpenAPI description
Overview
Languages
Servers
Mock server
https://developers.ev.energy/_mock/ev.energy-api-v2
Live API for both production and sandbox requests.
https://api.ev.energy/v2
Staging server for internal testing only.
https://api-staging.ev.energy/v2

Carbon

Endpoints for interacting with carbon intensity data.

Schemas
Operations

Charging Sessions

Endpoints related to records of charging.

Schemas
Operations
Webhooks

CSV

Endpoints that return CSV responses only and are not linkable to other endpoint data.

EVSEs

Endpoints for interacting with EVSEs.

Schemas
Operations

Notifications

Endpoints for communicating notifications.

Operations

Programs

Endpoints related to incentivised charging programs.

Operations

Rebates

Endpoints for interacting with rebates.

Schemas
Operations

Root

The root endpoint which lists all the top-level collections.

Operations

Schedules

Schema definitions for charging schedules.

Schemas

Sites

Endpoints for interacting with sites containing multiple EVSEs.

Operations

Solar

Endpoints for interacting with solar arrays and inverters.

Operations

Subscriptions

Endpoints for interacting with user subscriptions.

Operations

Support Tickets

Endpoints for interacting with customer support tickets.

Schemas
Operations

Tariffs

Endpoints related to energy suppliers and their tariffs.

Schemas
Operations

Users

Endpoints for interacting with users.

Schemas
Operations

Vehicles

Endpoints for interacting with vehicles.

Schemas

Retrieve a specific command log for a vehicle

Request

A single command log for a particular vehicle is uniquely identified by the timestamp it was logged at.

Security
oauth2(Required scopes:
debug:read
)
Path
vehicle_idstringvhcl[A-Z\d]{26}required

The ID of the specific vehicle to retrieve.

Example: vhcl01HRFF3SEVSCRAV9B3CHVDFN0H
logged_atstring(date-time)required

The time the command was logged.

Example: 2024-04-17T09:39:45.984584Z
Query
expandArray of strings

Specify a url field to expand into a nested resource.

Items Enum"vehicle""vehicle.trim""vehicle.trim.model""vehicle.trim.model.make""vehicle.user"
Headers
EvEnergy-Versionnumber

Specify the version of this endpoint to use.

Value2
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'

Responses

Returns the Vehicle command logged at a specific time.

Headers
EvEnergy-Versionnumber

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.

Value2
X-RateLimit-Limitnumber

The maximum number of requests that can be made to this endpoint per hour. Defaults to 1000 but may vary per client.

Default 1000
X-RateLimit-Remainingnumber

The number of requests remaining until this client's rate limit is reached.

Default 999
RetryAfternumber

The number of seconds until this client's requests will not be rate limited.

Default 3600
Bodyapplication/json
urlstring(uri)read-only
Example: "https://api.ev.energy/v2/vehicles/vhcl01HRFF3SEVSCRAV9B3CHVDFN0H/command_logs/2024-04-17T09:39:45.984584Z/"
logged_atstring(date-time)read-only

The date and time when this command was logged by the ev.energy system.

vehiclestring or Vehicle (object)
One of:
string(uri)
commandstringread-only

The type of command that was sent to the vehicle.

Enum"START_CHARGE""STOP_CHARGE""WAKE_UP""SEND_SCHEDULE"
Example: "START_CHARGE"
external_command_idstring or nullread-only

External command ID from the vehicle provider.

Example: "ext-cmd-12345"
current_milliampsinteger or nullread-only

If a start/stop command was sent, this is the current level that was sent in milliamps.

Example: 32000
internal_command_idstring or null(uuid)read-only

Internal UUID to track this command dispatch. This links with device command logs and error logs.

Example: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
Response
application/json
{ "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" }

Initiate vehicle onboarding

Request

Initiate the onboarding process for a new vehicle in your user's browser (or an embedded web view in an app).

If none of make_id, model_id or trim_id are passed as query parameters, the user will be shown a user interface to pick their vehicle make.

Query
user_idstringuser[A-Z\d]{26}required

The ID of a user to onboard a device for.

Example: user_id=user01HN2NJ9NMRZBXT1H6FT9N7735
make_idstring

Specify the make of vehicle to be onboarded.

Example: make_id=vmak01J443798BF893ZHFQVCS0FA23
model_idstring

Specify the model of vehicle to be onboarded.

Example: model_id=vhcl01HNARS42AVJN9QWQF6J52B7MB
trim_idstring

Specify the trim of vehicle to be onboarded.

Example: trim_id=vhcl01HNARS42AVJN9QWQF6J52B7MB
client_idstringnon-emptyrequired

Your client ID, used to identify GET requests made in a user's browser.

Example: client_id=sandbox-cc-id
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'

Responses

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.

Headers
Locationstring

The URL that the users browser will be redirected to in order to integrate their Vehicle.

Response
No content

Create reconnection URL

Request

Create a reconnection request URL for the Vehicle.

Security
oauth2
Path
vehicle_idstringvhcl[A-Z\d]{26}required

The ID of the specific vehicle to retrieve.

Example: vhcl01HRFF3SEVSCRAV9B3CHVDFN0H
Bodyapplication/json
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"
  }'

Responses

Returns the newly generated reconnection URL and it's expiry time.

Headers
EvEnergy-Versionnumber

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.

Value2
X-RateLimit-Limitnumber

The maximum number of requests that can be made to this endpoint per hour. Defaults to 1000 but may vary per client.

Default 1000
X-RateLimit-Remainingnumber

The number of requests remaining until this client's rate limit is reached.

Default 999
RetryAfternumber

The number of seconds until this client's requests will not be rate limited.

Default 3600
Bodyapplication/json
urlstring(uri)read-only
Example: "https://app.ev.energy/vehicle-onboarding/start/56091b3b-86e9-4e7c-a825-f99e5d131234"
expires_atstring(date-time)read-only
Example: "2022-11-03T20:26:10.344522Z"
Response
application/json
{ "url": "https://app.ev.energy/vehicle-onboarding/start/56091b3b-86e9-4e7c-a825-f99e5d131234", "expiry": "2022-11-03T20:26:10.344522Z" }

Webhooks

Endpoints for configuring and managing webhooks.

Operations