Which objects can you access via the API?
The Leafy Energy API is built around several core objects. In the demo, you can pretend these objects contain realistic data.
Key resources
- /customers – customer master data.
- /sites – locations such as “Home”, “Office”, “Charging hub”.
- /devices – smart meters, chargers, batteries.
- /pricing – dynamic hourly prices and forecasts.
- /sessions – EV charging sessions.
- /automation-rules – smart charging and automation scenarios.
Example request (all sites for a customer)
GET /v1/customers/{customer_id}/sites
In the sandbox you can experiment with fictional IDs and inspect the JSON responses in tools like Postman or your own dashboards.
Comments
0 comments
Please sign in to leave a comment.