Read your chargers' log events
Read the OCPP messages your chargers exchanged with Voltra, and what Voltra did about them, with an API key. Filter by charger, page through a time window with a cursor, keep polling for new events, and know how long events are kept.
This guide is for developers who want their chargers' log events in their own systems. These are the events the Console's Logs page shows: every OCPP message a charger sent or received, and what Voltra did about it. By the end you will have read a day of events for one charger, page by page, and kept polling for new ones.
You need an API key and the organization ID. A key restricted to projects also needs x-project-id; see Who sees which events. A Console user needs a role with charger read access (READ_CHARGE_POINTS).
The endpoint is in beta and is being turned on one organization at a time. Where it is not on for your organization, it answers 404 like a path that does not exist.
- Charger — An OCPP charge point registered in a project. The guide covers its two identifiers, how it connects, its status and its lifecycle; the reference lists the operations that act on it.
Who sees which events
The organization is the one in x-organization-id, which must be your key's organization. The query string never chooses the organization or widens the project.
| Caller | x-project-id | Events returned |
|---|---|---|
| A key restricted to projects | Required: one of the key's projects | Only events of that project. Events with no project are never returned. |
| A key with no project restriction | Leave it out | Every event of the organization. |
| A Console user | Optional | With it, only that project's events; without it, the organization's. |
A restricted key that sends no x-project-id, or names a project it is not linked to, gets 401 or 403. See Fix 401 and 403 errors.
How long events are kept
meta. is how long your organization's log store keeps events, as the store reports it: 604800 seconds (7 days) today. Events older than that can already be gone, and it is null when the store cannot report it. A cursor that points at events retention has since removed continues with the oldest event still kept, so read at least once per retention period to miss nothing.
Read a page of events
curl "https://api.voltra.com/csms/v2/chargers/log-events?charge_box_id=CHARGER-001×tamp_after=2026-11-20T00:00:00Z&limit=100" \
-H "x-api-key: $VOLTRA_KEY" \
-H "x-organization-id: $VOLTRA_ORG" \
-H "x-project-id: $VOLTRA_PROJECT"
{
"data": [
{
"type": "csms.log_event",
"id": "5f0c2d8e-0000-4000-8000-000000000002",
"attributes": {
"id": "5f0c2d8e-0000-4000-8000-000000000002",
"timestamp": "2026-11-20T00:00:04.120Z",
"event_type": "protocol_event",
"event": "ocpp.message",
"source": "ocpp",
"level": "info",
"summary": "StatusNotification from CHARGER-001",
"charge_box_id": "CHARGER-001",
"project_id": "…",
"ocpp": {
"action": "StatusNotification",
"direction": "inbound",
"message_type": "CALL",
"unique_id": "5f0c2d8e-0000-4000-8000-000000000001",
"version": "1.6"
},
"raw_ocpp_frame": [2, "5f0c2d8e-0000-4000-8000-000000000001", "StatusNotification", { "connectorId": 1, "status": "Available", "errorCode": "NoError" }]
},
"relationships": null,
"meta": null
}
],
"meta": {
"request_id": "…",
"pagination": { "has_more": true, "limit": 100, "cursors": { "after": "eyJv…", "before": null } },
"retention_seconds": 604800
}
}
Events come oldest first, in the order Voltra recorded them.
Query parameters
| Parameter | Meaning |
|---|---|
limit | Events per page, 1 to 100. Default 20. |
after | The meta. of the previous page. |
timestamp_after | Only events recorded at or after this time (RFC 3339). Without it and without after, the window starts 24 hours ago. |
timestamp_before | Only events recorded before this time. Without it, the window ends with the newest event when the request is served. |
charge_box_id | Only events of this charger, by its OCPP identity. |
source, level | Only events with this source (for example ocpp) or level (for example error). |
direction, message_type, action, unique_id, status, error_code | Only OCPP messages whose ocpp field has this value. direction is inbound or outbound; message_type is CALL, CALLRESULT or CALLERROR. |
search | Only events whose summary, message, event name, charger, or OCPP action, message id, status or error code contains this text, ignoring case. |
Filters match exactly, except search, and all of them must match.
Page through a window
Repeat the call with after until has_more is false. Send the same filters and time bounds on every page. You get every matching event of the window once, with no gaps and no repeats.
#!/usr/bin/env bash
set -euo pipefail
base="https://api.voltra.com/csms/v2/chargers/log-events?charge_box_id=CHARGER-001×tamp_after=2026-11-20T00:00:00Z×tamp_before=2026-11-21T00:00:00Z&limit=100"
after=""
while :; do
page=$(curl -sSf "$base${after:+&after=$after}" \
-H "x-api-key: $VOLTRA_KEY" -H "x-organization-id: $VOLTRA_ORG" -H "x-project-id: $VOLTRA_PROJECT")
echo "$page" | jq -c '.data[].attributes'
after=$(echo "$page" | jq -r '.meta.pagination.cursors.after')
[ "$(echo "$page" | jq -r '.meta.pagination.has_more')" = "true" ] || break
done
A page can be short, or empty, while has_more is true. Filters are applied while Voltra reads the stored events, and one request reads at most 20,000 stored events, in at most 10 reads, for at most 5 seconds. With a narrow filter, such as one rarely seen charger, the page holds what was found before that budget ran out, and the cursor continues from where reading stopped. Keep going until has_more is false; do not stop on a short page.
Poll for new events
Leave out timestamp_before and walk to the last page. Its has_more is false, and its cursors. is still set: keep it. Call again later with that cursor, and the same filters, to get only the events recorded since. When nothing new has been recorded, the page is empty and the cursor is unchanged.
Poll no more often than every few seconds, and back off on 429 and 5xx as described in Back off on rate limits.
Event fields
Every field below is present on every event and is null when the event has none. An event can carry more fields.
| Field | Meaning |
|---|---|
id | The event's id. |
timestamp | When the event happened, in UTC. |
event_type | protocol_event (an OCPP message), domain_event (something Voltra did or decided) or application_log. |
event | The event name, for example ocpp.. |
source, level | Where it came from, for example ocpp, and its level, for example info or error. |
summary, message | One line for people, and the full message. |
charge_box_id, connect_shortcode | The charger, by its OCPP identity and its short code. See Charger. |
device_label, device_type | The device's label and type, where the event is about a device. |
org_id, project_id | The organization and project the event belongs to. |
ocpp | For an OCPP message: action, direction, message_type, unique_id, status, error_code, session_id, version and elapsed_ms. |
raw_ocpp_frame, raw | The OCPP-J frame exactly as it was sent. |
data | Event-specific details. |
subject | What the event is about: id, type and parent_id. |
trace | The trace it was recorded in: trace_id and span_id. Quote these to Voltra support. |
Errors
Errors use the error envelope.
| Status | code | Cause | Fix |
|---|---|---|---|
| 400 | validation_failed | limit is not 1 to 100, a time is not RFC 3339, or timestamp_after is not before timestamp_before. details. names the field. | Fix the parameter. |
| 400 | csms. | after was not returned by this endpoint for this organization. | Pass cursors. back unchanged, or start again without it. |
| 401, 403 | The key, organization or project is wrong, or a restricted key sent no x-project-id. | See Who sees which events. | |
| 404 | The endpoint is not on for your organization yet. | Contact Voltra support. | |
| 500 | csms. | The log store could not be read. | Retry with backoff. |