cURL
curl --request GET \ --url https://api.voltview.co.uk/v1/sites/annualSpendAndSavings \ --header 'Authorization: Bearer <token>'
[ { "siteId": "<string>", "period": "<string>", "spend": 123, "savings": 123, "comparisonPeriod": "<string>", "previousSpend": 123, "spendChange": 123 } ]
Retrieves annual energy spending and cost savings data across all sites
Supabase Auth JWT access token obtained after signing in via magic link or OTP
Annual spend and savings data retrieved successfully
Site identifier
Reporting period
Energy spend in GBP
Cost savings in GBP
Previous period for comparison
Previous period spend in GBP
Percentage change in spend