EnergyGrid Usage API
The EnergyGrid Usage API is the customer-facing read API behind the EnergyGrid app and partner web experiences. It exposes the energy consumption, budgeting, and insight surfaces that customers see — authenticated as the customer, not the utility.
Where the PowerBox API handles utility-to-platform integration (CIS sync, hardware binding), the Usage API handles customer-to-platform reads (usage history, budget management, AI-powered insights).
Audience
This API is intended for partner mobile apps and white-labelled web portals that surface energy usage to end customers. All requests are made on behalf of an authenticated customer.
Authentication
Clients exchange a utility identity token for an EnergyGrid customer token via POST /Customer/login. The returned token is bearer-format and scoped to the requesting customer — it cannot read data for other accounts. See the Integration Guide — Configure authentication (OAuth) for the full handshake.
Base URL
https://api.energygrid.example/usage/v1
Conventions
- Content type. Requests and responses use
application/json. - Time series granularity. Usage endpoints accept a
granularityparameter — values come fromGET /Metadata/granularity-types. Don't hard-code. - Currency and units. Monetary fields are returned in the customer's billing currency, energy fields in the meter's
unitOfMeasure(typicallykWhfor electric,thermsfor gas). - Pagination. List endpoints page via
pageSizeandpageToken. The next token is returned in the response body when more results are available. - Errors. Errors follow RFC 7807 Problem Details, content type
application/problem+json.
Sample
This specification is published as a portfolio sample. The contracts and schemas are representative of the kind of customer-facing usage API that a residential energy management platform would expose. The hostnames are illustrative and do not resolve.
Authentication
- HTTP: Bearer Auth
EnergyGrid authentication token obtained from /Customer/login
Security Scheme Type: | http |
|---|---|
HTTP Authorization Scheme: | bearer |
Bearer format: | JWT |
License
MIT