The official API for ev.energy, version 2.
- List location logs for a vehicle
ev.energy v2 API (2.0)
Request
A single API error 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}/error_logs/{logged_at}
- Live API for both production and sandbox requests.https://api.ev.energy/v2/vehicles/{vehicle_id}/error_logs/{logged_at}
- Staging server for internal testing only.https://api-staging.ev.energy/v2/vehicles/{vehicle_id}/error_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/error_logs/2024-04-17T09:39:45.984584Z?expand=vehicle' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'EvEnergy-Version: 2'Returns the Vehicle API error 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 error was logged by the ev.energy system.
The HTTP status code of the error response from the vehicle telematics API.
The vehicle controller/integration that was being used when the error occurred.
The error code received from the provider or determined by the ev.energy system.
The error type received from the provider or determined by the ev.energy system.
The request ID that resulted in this error. Used for tracing and debugging.
The command/method that was being executed when the error occurred.
{ "url": "https://api.ev.energy/v2/vehicles/vhcl01HRFF3SEVSCRAV9B3CHVDFN0H/error_logs/2024-04-17T09:39:45.984584Z/", "logged_at": "2019-08-24T14:15:22Z", "vehicle": "https://api.ev.energy/v2/vehicles/vhcl01HRFF3SEVSCRAV9B3CHVDFN0H", "status_code": 401, "controller": "ENODE", "error_code": "AUTHENTICATION_ERROR", "error_type": "VehicleAPIUnauthorized", "request_id": "56rst-z2jku-tty9t-0dn2f-qazow", "command": "START_CHARGE", "error_detail": "string", "internal_command_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890" }
Request
List the historical location log timestamps for a specific Vehicle. Returns metadata about when location data was recorded, without exposing the actual location coordinates.
Return results from the page after this ID.
Return results from the page before this ID.
Specify the number of results to return per page.
Filters for logs sampled at or after this datetime.
Filters for logs sampled at or before this datetime.
- Mock serverhttps://developers.ev.energy/_mock/ev.energy-api-v2/vehicles/{vehicle_id}/location_logs
- Live API for both production and sandbox requests.https://api.ev.energy/v2/vehicles/{vehicle_id}/location_logs
- Staging server for internal testing only.https://api-staging.ev.energy/v2/vehicles/{vehicle_id}/location_logs
- 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/location_logs?page_before=xmpl01HNFZM7Q8FXASZXYZ6XM3TQRR&page_after=xmpl01HNFZM7Q8FXASZXYZ6XM3TQRR&page_size=10&sampled_at__gte=2024-04-17T09%3A39%3A45.984584Z&sampled_at__lte=2024-04-17T09%3A39%3A45.984584Z&expand=vehicle' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'EvEnergy-Version: 2'List all the location log timestamps for a specific Vehicle, sorted newest first.
Provides links to the previous and next pages of data, if they exist.
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 the location data was sampled from the vehicle (supplied by the API).
Whether the vehicle was at the user's home location when this data was sampled. Will be null if the user has no home location configured.
[ { "url": "https://api.ev.energy/v2/vehicles/vhcl01HRFF3SEVSCRAV9B3CHVDFN0H/location_logs/2024-04-17T09:39:45.984584Z/", "sampled_at": "2019-08-24T14:15:22Z", "logged_at": "2019-08-24T14:15:22Z", "vehicle": "https://api.ev.energy/v2/vehicles/vhcl01HRFF3SEVSCRAV9B3CHVDFN0H", "at_home": true } ]
Request
A single location log for a particular vehicle is uniquely identified by the timestamp it was sampled at. Returns metadata only, without exposing the actual location coordinates.
- Mock serverhttps://developers.ev.energy/_mock/ev.energy-api-v2/vehicles/{vehicle_id}/location_logs/{sampled_at}
- Live API for both production and sandbox requests.https://api.ev.energy/v2/vehicles/{vehicle_id}/location_logs/{sampled_at}
- Staging server for internal testing only.https://api-staging.ev.energy/v2/vehicles/{vehicle_id}/location_logs/{sampled_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/location_logs/2024-04-17T09:39:45.984584Z?expand=vehicle' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'EvEnergy-Version: 2'Returns the Vehicle location log metadata 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 the location data was sampled from the vehicle (supplied by the API).
{ "url": "https://api.ev.energy/v2/vehicles/vhcl01HRFF3SEVSCRAV9B3CHVDFN0H/location_logs/2024-04-17T09:39:45.984584Z/", "sampled_at": "2019-08-24T14:15:22Z", "logged_at": "2019-08-24T14:15:22Z", "vehicle": "https://api.ev.energy/v2/vehicles/vhcl01HRFF3SEVSCRAV9B3CHVDFN0H", "at_home": true }