Skip to content

Error Events ​

Context ​

The Error Events API provides access to the same error events that are available through the ChargePilot Dashboard under the Error Events section. An error event is raised when a local controller goes offline, or when a charging station or one of its connectors reports a fault, and it is closed again once the asset recovers.

Each event is identified by an event_id. Use the list endpoint to find events for a site, then the detail endpoint to retrieve the full record for a single event.

Available Endpoints ​

  • GET /error-events/site/{id} - Retrieve error events for a specific site
  • GET /error-events/site/{id}/{event_id} - Retrieve a single error event

GET /error-events/site/{id} ​

Returns a paginated list of error events for the given site, filtered by time range and optionally searchable and sortable.

Path Parameters ​

ParameterTypeRequiredDescription
idstringYesThe ID of the site for which to retrieve error events

Query Parameters ​

ParameterTypeRequiredDescription
start_datestring (ISO 8601)YesStart of the time range
end_datestring (ISO 8601)YesEnd of the time range
search_textstringNoFree-text search across device ID, error message, and charging point name (max 100 characters)
sort_fieldstringNoField to sort results by — see Sort Fields
sort_orderasc | descNoSort order for results (defaults to desc)
takenumberNoNumber of records to return (max 200)
skipnumberNoNumber of records to skip, for pagination

Response ​

json
{
  "events": [
    {
      "event_id": "0f1c1f2e-9c4a-4a1f-8a1e-2f0f9b0f3c11",
      "error_status": "active",
      "device_id": "a1b2c3d4",
      "charging_point_name": "Charging Point 1",
      "error_message": "GroundFailure",
      "error_date": "2026-05-15T10:00:00.000Z",
      "automatic_recovery_status": "initiated",
      "site_name": "Depot North",
      "case_type": "connector_error"
    }
  ],
  "records_count": 42
}
FieldTypeDescription
eventsarrayList of error event objects
records_countnumberTotal number of matching records

GET /error-events/site/{id}/{event_id} ​

Returns the full record for a single error event, including when it was resolved and any vendor-specific error information reported by the charging station.

Responds with 404 if no error event exists for the given event_id.

Path Parameters ​

ParameterTypeRequiredDescription
idstringYesThe ID of the site the error event belongs to
event_idstringYesThe ID of the error event, as returned in event_id by the list endpoint

Response ​

json
{
  "site_name": "Depot North",
  "controller_id": "a1b2c3d4",
  "charger_id": "charger-1",
  "charging_point_name": "Charging Point 1",
  "error_status": "recovered",
  "error_message": "GroundFailure",
  "error_occurred": "2026-05-15T10:00:00.000Z",
  "error_resolved": "2026-05-15T11:00:00.000Z",
  "automatic_recovery_status": "initiated",
  "automatic_recovery_time": "2026-05-15T10:30:00.000Z",
  "case_type": "connector_error",
  "vendor_error_code": null,
  "vendor_info": null
}

Data ​

Error Event ​

Each entry in the events array contains the following fields:

FieldTypeDescription
event_idstringUnique identifier for the error event
error_statusstringWhether the error is ongoing — see Error Status
device_idstringID of the local controller or charging station that reported the error
charging_point_namestringDisplay name of the affected charging point
error_messagestringThe reported error, typically an OCPP error code (e.g. GroundFailure, Offline)
error_datestring (ISO 8601)When the error occurred
automatic_recovery_statusstringSee Automatic Recovery Status
site_namestringDisplay name of the site
case_typestringWhat kind of asset failed — see Case Types

Error Event Detail ​

The single-event endpoint returns the following fields:

FieldTypeDescription
site_namestringDisplay name of the site
controller_idstringID of the local controller managing the affected asset
charger_idstringID of the affected charging station
charging_point_namestringDisplay name of the affected charging point
error_statusstringWhether the error is ongoing — see Error Status
error_messagestringThe reported error, typically an OCPP error code
error_occurredstring (ISO 8601)When the error occurred
error_resolvedstring (ISO 8601)When the error was resolved, or null while it is still active
automatic_recovery_statusstringSee Automatic Recovery Status
automatic_recovery_timestring (ISO 8601)When the most recent automatic recovery was attempted. This does not indicate whether the attempt succeeded
case_typestringWhat kind of asset failed — see Case Types
vendor_error_codestringVendor-specific error code reported by the charging station, where available
vendor_infostringAdditional vendor-specific error information, where available

Any field may be null when the underlying data is not available.

Error Status ​

ValueDescription
activeThe error is ongoing and the asset has not recovered
recoveredThe asset has recovered and the error is closed

Case Types ​

ValueDescription
controller_errorThe local controller went offline
charger_errorThe charging station reported an error or fault
connector_errorA connector on the charging station reported an error or fault

Automatic Recovery Status ​

ChargePilot attempts to recover some errors automatically, for example by restarting an affected charging station.

ValueDescription
initiatedAn automatic recovery has been triggered for this error
not_initiatedNo automatic recovery has been triggered — either it does not apply to this error, it is still pending, or a previous attempt did not complete

Sort Fields ​

The sort_field query parameter accepts the following values:

ValueDescription
error_dateSort by when the error occurred
error_statusSort by error status
device_idSort by device ID
charging_point_nameSort by charging point name
error_messageSort by error message
case_typeSort by case type
site_nameSort by site name
automatic_recovery_statusSort by automatic recovery status