Luxor PlatformAPI DocumentationEnergySites

Report energy data

Report energy for an existing site in batches. Reference the getting started documentation here for more information on how you should report load. Each reading is validated individually: a self-reported reading above 110% of the site's max load, or timestamped more than 15 minutes in the future, is returned with success: false while the rest of the batch is stored.

POST
/api/v1/energy/sites/{site_id}/report-energy
AuthorizationBearer <token>

Send your API key for authentication as a bearer token: Authorization: Bearer <api key>.

In: header

Path Parameters

site_id*Site Id

The UUID of the site to report energy for

Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/v1/energy/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/report-energy" \  -H "Content-Type: application/json" \  -d '{    "reports": [      {        "load_kw": "50.5",        "timestamp": "2025-04-09T12:00:00Z"      },      {        "load_kw": "60.2",        "timestamp": "2025-04-09T13:00:00Z"      }    ]  }'
{  "results": [    {}  ],  "summary": {},  "url": "string"}
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string",      "input": null,      "ctx": {}    }  ]}