Every request needs an Authorization header. Integrations (scripts, an energy management system, Home Assistant, your own server) use an API token.Create an API token#
2.
Choose a name, a permission and a lifetime.
3.
Copy the token. It is shown only once.
| Permission | Allows |
|---|
ReadOnly | GET requests: forecasts, your systems, your user record |
ReadWrite | Everything ReadOnly allows, plus POST, PUT and DELETE: create, change and delete systems, update your user record, the Forecast Optimizer |
Upload ("Read and upload measured data") | Everything ReadOnly allows, plus the measured-data uploads: production (values and daily totals) and irradiance. It cannot erase data or create, change or delete systems |
Lifetime: 3 months, 1 year or unlimited.
How many: an account holds at most 10 working tokens at a time.
Expiry: Solariance mails the account 7 days before a token expires, and again when it has expired.
Send it#
Authorization: Bearer <your API token>
All paths start with https://api.solariance.de/v1/, for example:Keep the word Bearer and one space before the token. A header without it is read as a session token of the website or the app, and an API token sent that way is refused.
A token does not need renewing when you create or delete systems. It carries no list of systems: ownership is checked on every request.
Treat a token like a password. Changing your account password does not revoke API tokens: delete a token you no longer trust on the Developer page.
Answers and errors#
Every answer is a JSON envelope:{ "code": 200, "message": "…", "data": { } }
code repeats the HTTP status. When a refusal has a data.reason, branch on that code; message is for people and can change.| Status | When | data.reason |
|---|
| 401 | No Authorization header | token_missing |
| 401 | The header cannot be read, for example Bearer without a token | token_malformed |
| 401 | The token's signature or content is not valid | token_invalid |
| 401 | The token has expired | token_expired |
| 401 | The token was deleted or revoked (message "Invalid or revoked API token") | none |
| 403 | The endpoint does not accept API tokens (message "API token not permitted for this endpoint") | none |
| 403 | A ReadOnly token was used for POST, PUT or DELETE | none |
| 403 | The system belongs to another account | not_owner |
| 403 | The system is paused because your plan does not cover it; data.locked_reason says why | system_locked |
| 429 | Too many requests: wait for the Retry-After header (also data.retry_after_seconds) | none |
| 503 | A service behind the API is briefly unavailable: retry after Retry-After | varies |
Plans and limits#
| Plan | Systems | kWp per system | Forecast days | Forecast requests per hour |
|---|
| Free | 1 | 15 | 2 (today and tomorrow) | 30 |
| Plus | 1 | 50 | 5 | 30 |
| Premium | 3 | 100 | 5 | 500 |
| Premium for Business | 1 | 500 | 5 | 500 |
| Enterprise | unlimited | unlimited | 5 | 5,000 |
The forecast budget applies to forecast/power and forecast/energy, each counted separately; every forecast/export also counts against forecast/power. forecast/temperature allows 300 requests an hour on every plan.
The other endpoints have their own hourly limits; a 429 says when to try again.
The Forecast Optimizer needs Premium, Premium for Business or Enterprise.
Enterprise contracts can set other limits.
Forecasts are recalculated several times a day and answers are cached for 60 seconds, so polling more often than every 15 minutes does not get you newer data.
The website and the app#
The Solariance website and app sign you in with a password, a mailed code, a passkey, Apple or Google, and use short-lived session tokens that are sent without Bearer. Session tokens are not meant for integrations: use an API token. Modified at 2026-11-19 12:33:28