The energy management API for buildings with several parties

Energy Manager is API-first: the web app is itself a client of the REST API. Partners get the same endpoints, with the same rights and the same balance per apartment, without access to the database.

Updated: 12.11.2026

What the API provides

  • Energy balance: production, consumption, grid import and export, self-consumption and self-sufficiency plus the history, computed server-side via GET /energy-balance, per apartment with unit_id. Live values via GET /metrics.
  • Structure: buildings (nodes), units and devices, including which devices belong to an apartment and which are shared.
  • Tariffs: current price, forecast and history per apartment, with supply and feed-in kept apart.
  • Scenes and operating modes: read and, with the right permissions, switch.
  • ZEV billing basis of a community per period and resolution, for your own billing system.
Device list with current readings
The API delivers the same readings the app shows, per device and unit.

Webhooks instead of polling

Partners subscribe to events and receive them by HTTP POST, signed with HMAC-SHA256, with up to 6 delivery attempts and a dead-letter queue for failures.

10 events, as of 11 Nov 2026.
EventWhen
ENERGY_BALANCE_SNAPSHOTbalance every 15 minutes
ENERGY_CURRENT_PRODUCTIONcurrent production
CUSTOM_OVERPRODUCTIONsurplus above your own threshold
TARIFF_LEVEL_CHANGEDchange of tariff level
SCENE_ACTIVATED, SCENE_DEACTIVATED, SCENE_MODIFIEDscenes
ALARM_TRIGGERED, ALARM_CLEARED, ALARM_MODIFIEDsystem alarms

Access and permissions

  • One tenant per access: the API runs on the tenant's subdomain, and every partner has its own database.
  • Permissions as in the app: an access sees only the buildings, apartments and devices it is entitled to; other apartments simply do not exist for it.
  • Sign-in: the app session, single sign-on through the tenant's identity provider, OAuth 2.1 with PKCE for AI assistants, or personal tokens for your own scripts.
  • OpenAPI reference: every endpoint is described with its schema and can be tried in the browser (Swagger, after sign-in).

What partners use the API for

  • Utilities show the balance in their own customer app or embed Energy Manager as white label.
  • Property managers import the ZEV billing basis into their property software.
  • Integrators connect building automation, charging infrastructure or their own analytics.
  • AI agents use the same API through the MCP server.

Frequently asked questions

Does Energy Manager have an open API?

Yes. Everything the app shows and controls runs through a documented REST API (OpenAPI). Partners use the same endpoints with the permissions of their access, plus signed webhooks for events.

Can I get the energy balance of a single apartment?

Yes. GET /energy-balance returns the balance for the whole building, or with unit_id for one apartment, including self-consumption and self-sufficiency.

How are webhooks secured?

Every delivery is signed with HMAC-SHA256 (header X-Webhook-Signature-256 with a timestamp). Failed deliveries are retried up to six times and then kept in a dead-letter queue.

Does the API support single sign-on?

Yes, per tenant through its identity provider (OIDC). AI assistants use OAuth 2.1 with PKCE, your own scripts use personal tokens.

Your building in the demo environment

We show the multi-family building, ZEV, resident app, admin interface and gateway on an example building.