An API for the power grid.