Pleevi API (0.1.0)
Download OpenAPI specification:Download
Create a new measurement
Create a new measurement. If possible consider relying on our MQTT broker to send measurements.
Authorizations:
Request Body schema: application/jsonrequired
| site_id required | string (Site Id) |
| asset_id required | string (Asset Id) |
| timestamp required | string <date-time> (Timestamp) |
| energyValue required | number (Energyvalue) |
| powerValue required | number (Powervalue) |
required | object (Pins) |
Responses
Request samples
- Payload
{- "site_id": "string",
- "asset_id": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "energyValue": 0,
- "powerValue": 0,
- "pins": {
- "property1": {
- "currentValue": 0,
- "powerValue": 0,
- "energyValue": 0,
- "voltageValue": 0
}, - "property2": {
- "currentValue": 0,
- "powerValue": 0,
- "energyValue": 0,
- "voltageValue": 0
}
}
}Response samples
- 200
- 422
{- "_id": "5eb7cf5a86d9755df3a6c593",
- "timestamp": "2019-08-24T14:15:22Z",
- "source": {
- "site_id": "string",
- "asset_id": "string",
- "partner_id": "string"
}, - "energyValue": 0,
- "powerValue": 0,
- "pins": {
- "property1": {
- "currentValue": 0,
- "powerValue": 0,
- "energyValue": 0,
- "voltageValue": 0
}, - "property2": {
- "currentValue": 0,
- "powerValue": 0,
- "energyValue": 0,
- "voltageValue": 0
}
}, - "received_at": "2019-08-24T14:15:22Z"
}Create a new transaction
Create a new transaction. If possible consider relying on our MQTT broker to send transactions.
Authorizations:
Request Body schema: application/jsonrequired
| site_id required | string (Site Id) |
| assetId required | string (Assetid) |
| transactionId required | string (Transactionid) A unique identifier that should pe provided for each transaction |
| timestamp required | string <date-time> (Timestamp) |
| transactionState required | string (TransactionState) Enum: "Started" "Updated" "SuspendedEV" "Ended" |
| startTime required | string <date-time> (Starttime) |
Stoptime (string) or Stoptime (null) (Stoptime) | |
Nochargingphases (string) or Nochargingphases (null) (Nochargingphases) | |
required | Array of Usedchargingpins (strings) or Usedchargingpins (null) (Usedchargingpins) |
required | Maxpower (number) or Maxpower (null) (Maxpower) |
| smartCharging | boolean (Smartcharging) Default: true |
| requestedMinEnergy required | integer (Requestedminenergy) |
| requestedMaxEnergy required | integer (Requestedmaxenergy) |
Estimateddeparturetime (string) or Estimateddeparturetime (null) (Estimateddeparturetime) | |
| priority required | integer (Priority) [ 0 .. 10 ] |
| category | string (Category) Default: "default" |
Responses
Request samples
- Payload
{- "site_id": "string",
- "assetId": "string",
- "transactionId": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "transactionState": "Started",
- "startTime": "2019-08-24T14:15:22Z",
- "stopTime": "2019-08-24T14:15:22Z",
- "noChargingPhases": "string",
- "usedChargingPins": [
- "string"
], - "maxPower": 0,
- "smartCharging": true,
- "requestedMinEnergy": 0,
- "requestedMaxEnergy": 0,
- "estimatedDepartureTime": "2019-08-24T14:15:22Z",
- "priority": 10,
- "category": "default"
}Response samples
- 200
- 422
{- "_id": "5eb7cf5a86d9755df3a6c593",
- "site_id": "string",
- "assetId": "string",
- "transactionId": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "transactionState": "Started",
- "startTime": "2019-08-24T14:15:22Z",
- "stopTime": "2019-08-24T14:15:22Z",
- "noChargingPhases": "string",
- "usedChargingPins": [
- "string"
], - "maxPower": 0,
- "smartCharging": true,
- "requestedMinEnergy": 0,
- "requestedMaxEnergy": 0,
- "estimatedDepartureTime": "2019-08-24T14:15:22Z",
- "priority": 10,
- "category": "default",
- "received_at": "2019-08-24T14:15:22Z",
- "partner_id": "string"
}Get all sites
Fetch a list of all existing sites
Authorizations:
Responses
Response samples
- 200
[- {
- "_id": "5eb7cf5a86d9755df3a6c593",
- "partner_id": "string",
- "site_id": "string",
- "name": "string",
- "location": {
- "name": "string",
- "coordinates": [
- 0,
- 0,
- 0
]
}, - "country": "string",
- "active": false,
- "validation_status": {
- "status": "ERROR",
- "site_configuration_status": {
- "status": "ERROR",
- "configuration_added": {
- "status": "ERROR"
}, - "configuration_complete": {
- "status": "ERROR",
- "missing_assets": [ ]
}, - "valid_for_optimization": {
- "status": "ERROR",
- "validation_errors": "string"
}
}, - "optimization_configuration_status": {
- "status": "ERROR"
}, - "ingress_status": {
- "status": "ERROR",
- "receiving_measurement_data": {
- "status": "ERROR",
- "not_receiving_data_from": [ ]
}
}, - "last_validation": "2025-05-27T08:25:17.576081Z"
}, - "configurations": {
- "site_configuration": {
- "device_list": [
- {
- "name": "string",
- "type": "charging_pole_3phase",
- "collector": "string",
- "line_current": 0,
- "pin_to_phase_mapping": {
- "pin_list": [
- "string"
], - "phase_list": [
- "string"
]
}, - "forecast_type": "pv"
}
], - "collector_list": [
- {
- "name": "string",
- "children": [ ],
- "phase_permutations": {
- "parent": [
- "string"
], - "child": [
- "string"
]
}, - "line_current": 0,
- "line_voltage": 0,
- "phase_voltage": 0,
- "commodity": "electricity",
- "1P_3P": "1P"
}
]
}, - "optimization_configuration": {
- "peak_minimization": {
- "active": false,
- "peak_price": 0
}, - "cost_minimization": {
- "active": false,
- "day_ahead_price": false,
- "injection_price": 0
}, - "planning_frequency": "PT15M"
}, - "forecasting_configuration": {
- "forecasted_collectors": [
- {
- "collector_id": "string",
- "train_window": 90,
- "sample_size": 900,
- "time_field": "string",
- "forecasted_field": "string",
- "training_interval": "string",
- "active": true,
- "forecast_type": "pv"
}
]
}
}, - "connections": {
- "mqtt": {
- "cluster": "mqtt.pleevi.ai",
- "energy_measurement_topic": "string",
- "transaction_topic": "string",
- "advice_topic": "string",
- "notification_topic": "string"
}
}
}
]Create site
Create a new site. In general it's a good idea to first creat a site without any configuration and then add the configuration separately. This allows us to validate the site based on measurement data when adding the configuration.
Authorizations:
Request Body schema: application/jsonrequired
| site_id required | string (Site Id) ^[a-zA-Z0-9_-]{1,64}$ |
| name required | string (Name) |
required | object (Location) |
| country required | string (Country) |
| active | boolean (Active) Default: false |
Configurations (object) or null |
Responses
Request samples
- Payload
{- "site_id": "string",
- "name": "string",
- "location": {
- "name": "string",
- "coordinates": [
- 0,
- 0,
- 0
]
}, - "country": "string",
- "active": false,
- "configurations": {
- "site_configuration": {
- "device_list": [
- {
- "name": "string",
- "type": "charging_pole_3phase",
- "collector": "string",
- "line_current": 0,
- "pin_to_phase_mapping": {
- "pin_list": [
- "string"
], - "phase_list": [
- "string"
]
}, - "forecast_type": "pv"
}
], - "collector_list": [
- {
- "name": "string",
- "children": [ ],
- "phase_permutations": {
- "parent": [
- "string"
], - "child": [
- "string"
]
}, - "line_current": 0,
- "line_voltage": 0,
- "phase_voltage": 0,
- "commodity": "electricity",
- "1P_3P": "1P"
}
]
}, - "optimization_configuration": {
- "peak_minimization": {
- "active": false,
- "peak_price": 0
}, - "cost_minimization": {
- "active": false,
- "day_ahead_price": false,
- "injection_price": 0
}, - "planning_frequency": "PT15M"
}, - "forecasting_configuration": {
- "forecasted_collectors": [
- {
- "collector_id": "string",
- "train_window": 90,
- "sample_size": 900,
- "time_field": "string",
- "forecasted_field": "string",
- "training_interval": "string",
- "active": true,
- "forecast_type": "pv"
}
]
}
}
}Response samples
- 200
- 422
{- "_id": "5eb7cf5a86d9755df3a6c593",
- "partner_id": "string",
- "site_id": "string",
- "name": "string",
- "location": {
- "name": "string",
- "coordinates": [
- 0,
- 0,
- 0
]
}, - "country": "string",
- "active": false,
- "validation_status": {
- "status": "ERROR",
- "site_configuration_status": {
- "status": "ERROR",
- "configuration_added": {
- "status": "ERROR"
}, - "configuration_complete": {
- "status": "ERROR",
- "missing_assets": [ ]
}, - "valid_for_optimization": {
- "status": "ERROR",
- "validation_errors": "string"
}
}, - "optimization_configuration_status": {
- "status": "ERROR"
}, - "ingress_status": {
- "status": "ERROR",
- "receiving_measurement_data": {
- "status": "ERROR",
- "not_receiving_data_from": [ ]
}
}, - "last_validation": "2025-05-27T08:25:17.576081Z"
}, - "configurations": {
- "site_configuration": {
- "device_list": [
- {
- "name": "string",
- "type": "charging_pole_3phase",
- "collector": "string",
- "line_current": 0,
- "pin_to_phase_mapping": {
- "pin_list": [
- "string"
], - "phase_list": [
- "string"
]
}, - "forecast_type": "pv"
}
], - "collector_list": [
- {
- "name": "string",
- "children": [ ],
- "phase_permutations": {
- "parent": [
- "string"
], - "child": [
- "string"
]
}, - "line_current": 0,
- "line_voltage": 0,
- "phase_voltage": 0,
- "commodity": "electricity",
- "1P_3P": "1P"
}
]
}, - "optimization_configuration": {
- "peak_minimization": {
- "active": false,
- "peak_price": 0
}, - "cost_minimization": {
- "active": false,
- "day_ahead_price": false,
- "injection_price": 0
}, - "planning_frequency": "PT15M"
}, - "forecasting_configuration": {
- "forecasted_collectors": [
- {
- "collector_id": "string",
- "train_window": 90,
- "sample_size": 900,
- "time_field": "string",
- "forecasted_field": "string",
- "training_interval": "string",
- "active": true,
- "forecast_type": "pv"
}
]
}
}, - "connections": {
- "mqtt": {
- "cluster": "mqtt.pleevi.ai",
- "energy_measurement_topic": "string",
- "transaction_topic": "string",
- "advice_topic": "string",
- "notification_topic": "string"
}
}
}Get site
Fetch details of a specific site using its site_id
Authorizations:
path Parameters
| site_id required | string (Site Id) |
Responses
Response samples
- 200
- 422
{- "_id": "5eb7cf5a86d9755df3a6c593",
- "partner_id": "string",
- "site_id": "string",
- "name": "string",
- "location": {
- "name": "string",
- "coordinates": [
- 0,
- 0,
- 0
]
}, - "country": "string",
- "active": false,
- "validation_status": {
- "status": "ERROR",
- "site_configuration_status": {
- "status": "ERROR",
- "configuration_added": {
- "status": "ERROR"
}, - "configuration_complete": {
- "status": "ERROR",
- "missing_assets": [ ]
}, - "valid_for_optimization": {
- "status": "ERROR",
- "validation_errors": "string"
}
}, - "optimization_configuration_status": {
- "status": "ERROR"
}, - "ingress_status": {
- "status": "ERROR",
- "receiving_measurement_data": {
- "status": "ERROR",
- "not_receiving_data_from": [ ]
}
}, - "last_validation": "2025-05-27T08:25:17.576081Z"
}, - "configurations": {
- "site_configuration": {
- "device_list": [
- {
- "name": "string",
- "type": "charging_pole_3phase",
- "collector": "string",
- "line_current": 0,
- "pin_to_phase_mapping": {
- "pin_list": [
- "string"
], - "phase_list": [
- "string"
]
}, - "forecast_type": "pv"
}
], - "collector_list": [
- {
- "name": "string",
- "children": [ ],
- "phase_permutations": {
- "parent": [
- "string"
], - "child": [
- "string"
]
}, - "line_current": 0,
- "line_voltage": 0,
- "phase_voltage": 0,
- "commodity": "electricity",
- "1P_3P": "1P"
}
]
}, - "optimization_configuration": {
- "peak_minimization": {
- "active": false,
- "peak_price": 0
}, - "cost_minimization": {
- "active": false,
- "day_ahead_price": false,
- "injection_price": 0
}, - "planning_frequency": "PT15M"
}, - "forecasting_configuration": {
- "forecasted_collectors": [
- {
- "collector_id": "string",
- "train_window": 90,
- "sample_size": 900,
- "time_field": "string",
- "forecasted_field": "string",
- "training_interval": "string",
- "active": true,
- "forecast_type": "pv"
}
]
}
}, - "connections": {
- "mqtt": {
- "cluster": "mqtt.pleevi.ai",
- "energy_measurement_topic": "string",
- "transaction_topic": "string",
- "advice_topic": "string",
- "notification_topic": "string"
}
}
}Patch site
Partially update a site by its site_id, modifying only specified fields
Authorizations:
path Parameters
| site_id required | string (Site Id) |
Request Body schema: application/jsonrequired
| property name* additional property | any |
Responses
Request samples
- Payload
{ }Response samples
- 200
- 422
{- "_id": "5eb7cf5a86d9755df3a6c593",
- "partner_id": "string",
- "site_id": "string",
- "name": "string",
- "location": {
- "name": "string",
- "coordinates": [
- 0,
- 0,
- 0
]
}, - "country": "string",
- "active": false,
- "validation_status": {
- "status": "ERROR",
- "site_configuration_status": {
- "status": "ERROR",
- "configuration_added": {
- "status": "ERROR"
}, - "configuration_complete": {
- "status": "ERROR",
- "missing_assets": [ ]
}, - "valid_for_optimization": {
- "status": "ERROR",
- "validation_errors": "string"
}
}, - "optimization_configuration_status": {
- "status": "ERROR"
}, - "ingress_status": {
- "status": "ERROR",
- "receiving_measurement_data": {
- "status": "ERROR",
- "not_receiving_data_from": [ ]
}
}, - "last_validation": "2025-05-27T08:25:17.576081Z"
}, - "configurations": {
- "site_configuration": {
- "device_list": [
- {
- "name": "string",
- "type": "charging_pole_3phase",
- "collector": "string",
- "line_current": 0,
- "pin_to_phase_mapping": {
- "pin_list": [
- "string"
], - "phase_list": [
- "string"
]
}, - "forecast_type": "pv"
}
], - "collector_list": [
- {
- "name": "string",
- "children": [ ],
- "phase_permutations": {
- "parent": [
- "string"
], - "child": [
- "string"
]
}, - "line_current": 0,
- "line_voltage": 0,
- "phase_voltage": 0,
- "commodity": "electricity",
- "1P_3P": "1P"
}
]
}, - "optimization_configuration": {
- "peak_minimization": {
- "active": false,
- "peak_price": 0
}, - "cost_minimization": {
- "active": false,
- "day_ahead_price": false,
- "injection_price": 0
}, - "planning_frequency": "PT15M"
}, - "forecasting_configuration": {
- "forecasted_collectors": [
- {
- "collector_id": "string",
- "train_window": 90,
- "sample_size": 900,
- "time_field": "string",
- "forecasted_field": "string",
- "training_interval": "string",
- "active": true,
- "forecast_type": "pv"
}
]
}
}, - "connections": {
- "mqtt": {
- "cluster": "mqtt.pleevi.ai",
- "energy_measurement_topic": "string",
- "transaction_topic": "string",
- "advice_topic": "string",
- "notification_topic": "string"
}
}
}Replace site
Replace the entire site data by its site_id
Authorizations:
path Parameters
| site_id required | string (Site Id) |
Request Body schema: application/jsonrequired
| site_id required | string (Site Id) ^[a-zA-Z0-9_-]{1,64}$ |
| name required | string (Name) |
required | object (Location) |
| country required | string (Country) |
Configurations (object) or null | |
ValidationStatus (object) or null |
Responses
Request samples
- Payload
{- "site_id": "string",
- "name": "string",
- "location": {
- "name": "string",
- "coordinates": [
- 0,
- 0,
- 0
]
}, - "country": "string",
- "configurations": {
- "site_configuration": {
- "device_list": [
- {
- "name": "string",
- "type": "charging_pole_3phase",
- "collector": "string",
- "line_current": 0,
- "pin_to_phase_mapping": {
- "pin_list": [
- "string"
], - "phase_list": [
- "string"
]
}, - "forecast_type": "pv"
}
], - "collector_list": [
- {
- "name": "string",
- "children": [ ],
- "phase_permutations": {
- "parent": [
- "string"
], - "child": [
- "string"
]
}, - "line_current": 0,
- "line_voltage": 0,
- "phase_voltage": 0,
- "commodity": "electricity",
- "1P_3P": "1P"
}
]
}, - "optimization_configuration": {
- "peak_minimization": {
- "active": false,
- "peak_price": 0
}, - "cost_minimization": {
- "active": false,
- "day_ahead_price": false,
- "injection_price": 0
}, - "planning_frequency": "PT15M"
}, - "forecasting_configuration": {
- "forecasted_collectors": [
- {
- "collector_id": "string",
- "train_window": 90,
- "sample_size": 900,
- "time_field": "string",
- "forecasted_field": "string",
- "training_interval": "string",
- "active": true,
- "forecast_type": "pv"
}
]
}
}, - "validation_status": {
- "status": "ERROR",
- "site_configuration_status": {
- "status": "ERROR",
- "configuration_added": {
- "status": "ERROR"
}, - "configuration_complete": {
- "status": "ERROR",
- "missing_assets": [ ]
}, - "valid_for_optimization": {
- "status": "ERROR",
- "validation_errors": "string"
}
}, - "optimization_configuration_status": {
- "status": "ERROR"
}, - "ingress_status": {
- "status": "ERROR",
- "receiving_measurement_data": {
- "status": "ERROR",
- "not_receiving_data_from": [ ]
}
}, - "last_validation": "2025-05-27T08:25:17.576081Z"
}
}Response samples
- 200
- 422
{- "_id": "5eb7cf5a86d9755df3a6c593",
- "partner_id": "string",
- "site_id": "string",
- "name": "string",
- "location": {
- "name": "string",
- "coordinates": [
- 0,
- 0,
- 0
]
}, - "country": "string",
- "active": false,
- "validation_status": {
- "status": "ERROR",
- "site_configuration_status": {
- "status": "ERROR",
- "configuration_added": {
- "status": "ERROR"
}, - "configuration_complete": {
- "status": "ERROR",
- "missing_assets": [ ]
}, - "valid_for_optimization": {
- "status": "ERROR",
- "validation_errors": "string"
}
}, - "optimization_configuration_status": {
- "status": "ERROR"
}, - "ingress_status": {
- "status": "ERROR",
- "receiving_measurement_data": {
- "status": "ERROR",
- "not_receiving_data_from": [ ]
}
}, - "last_validation": "2025-05-27T08:25:17.576081Z"
}, - "configurations": {
- "site_configuration": {
- "device_list": [
- {
- "name": "string",
- "type": "charging_pole_3phase",
- "collector": "string",
- "line_current": 0,
- "pin_to_phase_mapping": {
- "pin_list": [
- "string"
], - "phase_list": [
- "string"
]
}, - "forecast_type": "pv"
}
], - "collector_list": [
- {
- "name": "string",
- "children": [ ],
- "phase_permutations": {
- "parent": [
- "string"
], - "child": [
- "string"
]
}, - "line_current": 0,
- "line_voltage": 0,
- "phase_voltage": 0,
- "commodity": "electricity",
- "1P_3P": "1P"
}
]
}, - "optimization_configuration": {
- "peak_minimization": {
- "active": false,
- "peak_price": 0
}, - "cost_minimization": {
- "active": false,
- "day_ahead_price": false,
- "injection_price": 0
}, - "planning_frequency": "PT15M"
}, - "forecasting_configuration": {
- "forecasted_collectors": [
- {
- "collector_id": "string",
- "train_window": 90,
- "sample_size": 900,
- "time_field": "string",
- "forecasted_field": "string",
- "training_interval": "string",
- "active": true,
- "forecast_type": "pv"
}
]
}
}, - "connections": {
- "mqtt": {
- "cluster": "mqtt.pleevi.ai",
- "energy_measurement_topic": "string",
- "transaction_topic": "string",
- "advice_topic": "string",
- "notification_topic": "string"
}
}
}Delete site
Remove a site from the system using its site_id. This is not reversible. The measurements and transactions linked to this site wont be deleted. If you afterwards re-create a site with the same site_id it will match with the old measurements and transactions.
Authorizations:
path Parameters
| site_id required | string (Site Id) |
Responses
Response samples
- 200
- 422
nullValidate site
Revalidate a site and return the site with the updated validation information.
Authorizations:
path Parameters
| site_id required | string (Site Id) |
Responses
Response samples
- 200
- 422
{- "_id": "5eb7cf5a86d9755df3a6c593",
- "partner_id": "string",
- "site_id": "string",
- "name": "string",
- "location": {
- "name": "string",
- "coordinates": [
- 0,
- 0,
- 0
]
}, - "country": "string",
- "active": false,
- "validation_status": {
- "status": "ERROR",
- "site_configuration_status": {
- "status": "ERROR",
- "configuration_added": {
- "status": "ERROR"
}, - "configuration_complete": {
- "status": "ERROR",
- "missing_assets": [ ]
}, - "valid_for_optimization": {
- "status": "ERROR",
- "validation_errors": "string"
}
}, - "optimization_configuration_status": {
- "status": "ERROR"
}, - "ingress_status": {
- "status": "ERROR",
- "receiving_measurement_data": {
- "status": "ERROR",
- "not_receiving_data_from": [ ]
}
}, - "last_validation": "2025-05-27T08:25:17.576081Z"
}, - "configurations": {
- "site_configuration": {
- "device_list": [
- {
- "name": "string",
- "type": "charging_pole_3phase",
- "collector": "string",
- "line_current": 0,
- "pin_to_phase_mapping": {
- "pin_list": [
- "string"
], - "phase_list": [
- "string"
]
}, - "forecast_type": "pv"
}
], - "collector_list": [
- {
- "name": "string",
- "children": [ ],
- "phase_permutations": {
- "parent": [
- "string"
], - "child": [
- "string"
]
}, - "line_current": 0,
- "line_voltage": 0,
- "phase_voltage": 0,
- "commodity": "electricity",
- "1P_3P": "1P"
}
]
}, - "optimization_configuration": {
- "peak_minimization": {
- "active": false,
- "peak_price": 0
}, - "cost_minimization": {
- "active": false,
- "day_ahead_price": false,
- "injection_price": 0
}, - "planning_frequency": "PT15M"
}, - "forecasting_configuration": {
- "forecasted_collectors": [
- {
- "collector_id": "string",
- "train_window": 90,
- "sample_size": 900,
- "time_field": "string",
- "forecasted_field": "string",
- "training_interval": "string",
- "active": true,
- "forecast_type": "pv"
}
]
}
}, - "connections": {
- "mqtt": {
- "cluster": "mqtt.pleevi.ai",
- "energy_measurement_topic": "string",
- "transaction_topic": "string",
- "advice_topic": "string",
- "notification_topic": "string"
}
}
}Activate site
Activate a site
Authorizations:
path Parameters
| site_id required | string (Site Id) |
Responses
Response samples
- 200
- 422
{- "_id": "5eb7cf5a86d9755df3a6c593",
- "partner_id": "string",
- "site_id": "string",
- "name": "string",
- "location": {
- "name": "string",
- "coordinates": [
- 0,
- 0,
- 0
]
}, - "country": "string",
- "active": false,
- "validation_status": {
- "status": "ERROR",
- "site_configuration_status": {
- "status": "ERROR",
- "configuration_added": {
- "status": "ERROR"
}, - "configuration_complete": {
- "status": "ERROR",
- "missing_assets": [ ]
}, - "valid_for_optimization": {
- "status": "ERROR",
- "validation_errors": "string"
}
}, - "optimization_configuration_status": {
- "status": "ERROR"
}, - "ingress_status": {
- "status": "ERROR",
- "receiving_measurement_data": {
- "status": "ERROR",
- "not_receiving_data_from": [ ]
}
}, - "last_validation": "2025-05-27T08:25:17.576081Z"
}, - "configurations": {
- "site_configuration": {
- "device_list": [
- {
- "name": "string",
- "type": "charging_pole_3phase",
- "collector": "string",
- "line_current": 0,
- "pin_to_phase_mapping": {
- "pin_list": [
- "string"
], - "phase_list": [
- "string"
]
}, - "forecast_type": "pv"
}
], - "collector_list": [
- {
- "name": "string",
- "children": [ ],
- "phase_permutations": {
- "parent": [
- "string"
], - "child": [
- "string"
]
}, - "line_current": 0,
- "line_voltage": 0,
- "phase_voltage": 0,
- "commodity": "electricity",
- "1P_3P": "1P"
}
]
}, - "optimization_configuration": {
- "peak_minimization": {
- "active": false,
- "peak_price": 0
}, - "cost_minimization": {
- "active": false,
- "day_ahead_price": false,
- "injection_price": 0
}, - "planning_frequency": "PT15M"
}, - "forecasting_configuration": {
- "forecasted_collectors": [
- {
- "collector_id": "string",
- "train_window": 90,
- "sample_size": 900,
- "time_field": "string",
- "forecasted_field": "string",
- "training_interval": "string",
- "active": true,
- "forecast_type": "pv"
}
]
}
}, - "connections": {
- "mqtt": {
- "cluster": "mqtt.pleevi.ai",
- "energy_measurement_topic": "string",
- "transaction_topic": "string",
- "advice_topic": "string",
- "notification_topic": "string"
}
}
}Deactivate site
Deactivate a site
Authorizations:
path Parameters
| site_id required | string (Site Id) |
Responses
Response samples
- 200
- 422
{- "_id": "5eb7cf5a86d9755df3a6c593",
- "partner_id": "string",
- "site_id": "string",
- "name": "string",
- "location": {
- "name": "string",
- "coordinates": [
- 0,
- 0,
- 0
]
}, - "country": "string",
- "active": false,
- "validation_status": {
- "status": "ERROR",
- "site_configuration_status": {
- "status": "ERROR",
- "configuration_added": {
- "status": "ERROR"
}, - "configuration_complete": {
- "status": "ERROR",
- "missing_assets": [ ]
}, - "valid_for_optimization": {
- "status": "ERROR",
- "validation_errors": "string"
}
}, - "optimization_configuration_status": {
- "status": "ERROR"
}, - "ingress_status": {
- "status": "ERROR",
- "receiving_measurement_data": {
- "status": "ERROR",
- "not_receiving_data_from": [ ]
}
}, - "last_validation": "2025-05-27T08:25:17.576081Z"
}, - "configurations": {
- "site_configuration": {
- "device_list": [
- {
- "name": "string",
- "type": "charging_pole_3phase",
- "collector": "string",
- "line_current": 0,
- "pin_to_phase_mapping": {
- "pin_list": [
- "string"
], - "phase_list": [
- "string"
]
}, - "forecast_type": "pv"
}
], - "collector_list": [
- {
- "name": "string",
- "children": [ ],
- "phase_permutations": {
- "parent": [
- "string"
], - "child": [
- "string"
]
}, - "line_current": 0,
- "line_voltage": 0,
- "phase_voltage": 0,
- "commodity": "electricity",
- "1P_3P": "1P"
}
]
}, - "optimization_configuration": {
- "peak_minimization": {
- "active": false,
- "peak_price": 0
}, - "cost_minimization": {
- "active": false,
- "day_ahead_price": false,
- "injection_price": 0
}, - "planning_frequency": "PT15M"
}, - "forecasting_configuration": {
- "forecasted_collectors": [
- {
- "collector_id": "string",
- "train_window": 90,
- "sample_size": 900,
- "time_field": "string",
- "forecasted_field": "string",
- "training_interval": "string",
- "active": true,
- "forecast_type": "pv"
}
]
}
}, - "connections": {
- "mqtt": {
- "cluster": "mqtt.pleevi.ai",
- "energy_measurement_topic": "string",
- "transaction_topic": "string",
- "advice_topic": "string",
- "notification_topic": "string"
}
}
}Add or update site configuration
Add or modify the configuration (both site-configuration and optimization configuration) for a specific site using its site_id. First create a site with a POST call (see above) and then add the configurations.
Authorizations:
path Parameters
| site_id required | string (Site Id) |
Request Body schema: application/json
SiteConfiguration (object) or null | |
OptmizationConfiguration (object) or null |
Responses
Request samples
- Payload
{- "site_configuration": {
- "device_list": [
- {
- "name": "string",
- "type": "charging_pole_3phase",
- "collector": "string",
- "line_current": 0,
- "pin_to_phase_mapping": {
- "pin_list": [
- "string"
], - "phase_list": [
- "string"
]
}, - "forecast_type": "pv"
}
], - "collector_list": [
- {
- "name": "string",
- "children": [ ],
- "phase_permutations": {
- "parent": [
- "string"
], - "child": [
- "string"
]
}, - "line_current": 0,
- "line_voltage": 0,
- "phase_voltage": 0,
- "commodity": "electricity",
- "1P_3P": "1P"
}
]
}, - "optimization_configuration": {
- "peak_minimization": {
- "active": false,
- "peak_price": 0
}, - "cost_minimization": {
- "active": false,
- "day_ahead_price": false,
- "injection_price": 0
}, - "planning_frequency": "PT15M"
}
}Response samples
- 200
- 422
{- "_id": "5eb7cf5a86d9755df3a6c593",
- "partner_id": "string",
- "site_id": "string",
- "name": "string",
- "location": {
- "name": "string",
- "coordinates": [
- 0,
- 0,
- 0
]
}, - "country": "string",
- "active": false,
- "validation_status": {
- "status": "ERROR",
- "site_configuration_status": {
- "status": "ERROR",
- "configuration_added": {
- "status": "ERROR"
}, - "configuration_complete": {
- "status": "ERROR",
- "missing_assets": [ ]
}, - "valid_for_optimization": {
- "status": "ERROR",
- "validation_errors": "string"
}
}, - "optimization_configuration_status": {
- "status": "ERROR"
}, - "ingress_status": {
- "status": "ERROR",
- "receiving_measurement_data": {
- "status": "ERROR",
- "not_receiving_data_from": [ ]
}
}, - "last_validation": "2025-05-27T08:25:17.576081Z"
}, - "configurations": {
- "site_configuration": {
- "device_list": [
- {
- "name": "string",
- "type": "charging_pole_3phase",
- "collector": "string",
- "line_current": 0,
- "pin_to_phase_mapping": {
- "pin_list": [
- "string"
], - "phase_list": [
- "string"
]
}, - "forecast_type": "pv"
}
], - "collector_list": [
- {
- "name": "string",
- "children": [ ],
- "phase_permutations": {
- "parent": [
- "string"
], - "child": [
- "string"
]
}, - "line_current": 0,
- "line_voltage": 0,
- "phase_voltage": 0,
- "commodity": "electricity",
- "1P_3P": "1P"
}
]
}, - "optimization_configuration": {
- "peak_minimization": {
- "active": false,
- "peak_price": 0
}, - "cost_minimization": {
- "active": false,
- "day_ahead_price": false,
- "injection_price": 0
}, - "planning_frequency": "PT15M"
}, - "forecasting_configuration": {
- "forecasted_collectors": [
- {
- "collector_id": "string",
- "train_window": 90,
- "sample_size": 900,
- "time_field": "string",
- "forecasted_field": "string",
- "training_interval": "string",
- "active": true,
- "forecast_type": "pv"
}
]
}
}, - "connections": {
- "mqtt": {
- "cluster": "mqtt.pleevi.ai",
- "energy_measurement_topic": "string",
- "transaction_topic": "string",
- "advice_topic": "string",
- "notification_topic": "string"
}
}
}Get OAuth2 access token
Authenticate a client using basic credentials to obtain an OAuth2 access token.
Authorizations:
Request Body schema: application/x-www-form-urlencoded
| grant_type | string (Grant Type) client_credentials |
Responses
Response samples
- 200
- 422
{- "token_type": "bearer",
- "access_token": "string",
- "type": "partner_access",
- "expires_in": 0
}Retrieve the latest optimization for a site
Retrieve the latest optimization for a site
Authorizations:
path Parameters
| site_id required | string (Site Id) |
query Parameters
required | Timestamp (string) or Timestamp (null) (Timestamp) |
Responses
Response samples
- 200
- 422
[- {
- "assetId": "string",
- "siteId": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "profile": [
- {
- "timestamp": "2019-08-24T14:15:22Z",
- "powerValue": 0
}
]
}
]Retrieve the optimized energy schedule for a site at a specific time.
Retrieve the optimized energy schedule for a site at a specific time.
Authorizations:
path Parameters
| site_id required | string (Site Id) |
required | At Time (string) or At Time (null) (At Time) |
Responses
Response samples
- 200
- 422
{- "_id": "5eb7cf5a86d9755df3a6c593",
- "siteId": "string",
- "partner_id": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "schedules": [
- {
- "assetId": "string",
- "siteId": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "profile": [
- {
- "timestamp": "2019-08-24T14:15:22Z",
- "powerValue": 0
}
]
}
]
}