The official API for ev.energy, version 2.
ev.energy v2 API (2.0)
Request
Lists notifications for the user making the request. For each notification it returns a category (INFO, ERROR etc) and a title (in the user's language) for display in their inbox.
- Mock serverhttps://developers.ev.energy/_mock/ev.energy-api-v2/notifications
- Live API for both production and sandbox requests.https://api.ev.energy/v2/notifications
- Staging server for internal testing only.https://api-staging.ev.energy/v2/notifications
- 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/notifications?page_before=xmpl01HNFZM7Q8FXASZXYZ6XM3TQRR&page_after=xmpl01HNFZM7Q8FXASZXYZ6XM3TQRR&page_size=10' \
-H 'Accept-Language: string' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'EvEnergy-Version: 2'Retrieve all current notifications.
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.
Unique identifier for the Notification
Category of this notification type
URL of a web page giving further information about this notification
[ { "id": "notf67O36PLTFDB57M0E5L33JZLGM0", "url": "https://api.ev.energy/notifications/notf67O36PLTFDB57M0E5L33JZLGM0", "message_id": "ERR0123", "category": "ACTIONABLE", "event_time": "2019-08-24T14:15:22Z", "short_text_title": "Your car is disconnected", "short_text_body": "We need to reconnect to keep smart charging", "detail_page_title": "Your car is disconnected", "detail_page_body": "Your car has been disconnected. This happens when your password is reset.\nWe need you to re-authorise ev.energy to access your account in order for us to keep managing your charging.\nBlah blah blah.", "external_link": "https://example.com", "external_button_label": "More info" } ]
- Mock serverhttps://developers.ev.energy/_mock/ev.energy-api-v2/notifications/{notification_id}
- Live API for both production and sandbox requests.https://api.ev.energy/v2/notifications/{notification_id}
- Staging server for internal testing only.https://api-staging.ev.energy/v2/notifications/{notification_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
https://developers.ev.energy/_mock/ev.energy-api-v2/notifications/notf67O36PLTFDB57M0E5L33JZLGM0 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"read_at": "2019-08-24T14:15:22Z"
}'Notification updated successfully.
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.
{ "Notification": { "id": "notf67O36PLTFDB57M0E5L33JZLGM0", "url": "https://api.ev.energy/notifications/notf67O36PLTFDB57M0E5L33JZLGM0", "message_id": "ERR0123", "category": "ACTIONABLE", "event_time": "2019-08-24T14:15:22Z", "short_text_title": "Your car is disconnected", "short_text_body": "We need to reconnect to keep smart charging your car", "detail_page_title": "Your car is disconnected", "detail_page_body": "Your car has been disconnected. This happens when your password is reset. We need you to re-authorise ev.energy to access your account in order for us to keep managing your charging. Blah blah blah.", "external_link": "http://example.com", "external_button_label": "More info", "read_at": "2019-08-24T14:20:22Z", "resolved_at": "2019-08-25T14:15:22Z" } }
Request
Retrieves the full details of a specified notification. The title, short_text and long_text fields will be translated into the user's language.
- Mock serverhttps://developers.ev.energy/_mock/ev.energy-api-v2/notifications/{notification_id}
- Live API for both production and sandbox requests.https://api.ev.energy/v2/notifications/{notification_id}
- Staging server for internal testing only.https://api-staging.ev.energy/v2/notifications/{notification_id}
- 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/notifications/notf67O36PLTFDB57M0E5L33JZLGM0 \
-H 'Accept-Language: string' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'EvEnergy-Version: 2'Retrieve a specific notification.
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.
Unique identifier for the Notification
Category of this notification type
URL of a web page giving further information about this notification
{ "id": "notf67O36PLTFDB57M0E5L33JZLGM0", "url": "https://api.ev.energy/notifications/notf67O36PLTFDB57M0E5L33JZLGM0", "message_id": "ERR0123", "category": "ACTIONABLE", "event_time": "2019-08-24T14:15:22Z", "short_text_title": "Your car is disconnected", "short_text_body": "We need to reconnect to keep smart charging", "detail_page_title": "Your car is disconnected", "detail_page_body": "Your car has been disconnected. This happens when your password is reset.\nWe need you to re-authorise ev.energy to access your account in order for us to keep managing your charging.\nBlah blah blah.", "external_link": "https://example.com", "external_button_label": "More info" }