Luxor Documentation Hub Logo
Energy/API Documentation/Sites

Report energy data

Report energy data for a site in batch. Validates that the site exists before processing the reports.

POST
/api/v1/energy/sites/{site_id}/report_energy

Authorization

AuthorizationRequiredBearer <token>

In: header

Request Body

application/jsonRequired
reportsRequiredReports

Path Parameters

site_idRequiredSite Id
Format: "uuid"
curl -X POST "https://app.luxor.tech/api/v1/energy/api/v1/energy/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/report_energy" \
  -H "Authorization: Bearer <token>" \
  -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"
      }
    ]
  }'

Successful Response

{
  "results": [
    {}
  ],
  "summary": {},
  "url": "string"
}