What the API does
The Solar Potential & Financial Analysis API analyses one property per request. You send a location; Solarise finds the building, selects the best available aerial imagery, identifies the roof and its faces, places panels and sizes a solar system for each preset of your SunnyForm. Each system comes back priced with your products, prices and discounts, with its payback, savings, a 25-year projection, battery figures, monthly production and financing.
It is the analysis the Solarise calculator runs for your website visitors, without the visitor: nobody selects the roof by hand. Use it to enrich CRM leads, power your own quoting tool or analyse many properties in bulk.
POST /api/v1/roof-analyses · Analyse a roof's solar potential and financials
Runs Solarise's complete analysis for one property and returns the result: Solarise finds the location, selects the best aerial imagery, identifies the building and its roof faces, places panels, sizes a system for every preset of the SunnyForm, and prices and finances each one. A successful analysis uses one measurement of your plan; a failed one uses none. Analyses usually take 30 to 90 seconds.
Quick start
- Create a free Solarise account, sign in to the dashboard, open API and create an API key. Copy it straight away: it is shown only once.
- Store the key on your server, for example in the
SOLARISE_API_KEYenvironment variable. - Send your first analysis from a terminal.
Coordinates only: Solarise defaults for the country
curl -X POST https://app.solarise.app/api/v1/roof-analyses \
-H "Authorization: Bearer $SOLARISE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
--max-time 180 \
-d '{
"location": {
"latitude": 53.3438,
"longitude": -6.2546
}
}'The response arrives in the same request, usually after 30 to 90 seconds. Without sunnyform_id, Solarise prices the systems with its defaults for the property’s country; send your own SunnyForm to use your products and prices.
Coverage
- Roof analysis works worldwide wherever suitable aerial imagery exists. Where none is available, the request fails with
no_imagery_availableand is not charged. - Electricity prices: Solarise has default import and export prices for 45+ countries, with US prices by state and UK prices by region. Other countries use a general default, so send
import_price_per_kwhandexport_price_per_kwhthere for accurate savings. - Roof geometry: Solarise also measures roofs with open elevation surveys: LIDAR in England, Wales, Scotland, the Netherlands, North Rhine-Westphalia, Hesse and most of France, and surface models from aerial photography in Brandenburg, Berlin, Mecklenburg-Western Pomerania and the rest of France. Elsewhere it measures the roof from the imagery.
- Tariffs:
STANDARDworks everywhere;OCTOPUS_FLUXandECONOMY_7are UK tariffs. - Currencies: results are in the SunnyForm’s
currency, which can be any currency a SunnyForm supports. - Buildings: houses, commercial buildings and apartment buildings, set with
building_type;COMMUNITYis the value for an apartment building.
Authentication
Every request needs an API key in the Authorization header: Authorization: Bearer <key>. Keys look like solarise_sk_<id>_<secret>.
- Create a key: sign in to the Solarise dashboard, open API and create an API key. The full key is shown once; store it in your secret manager or server environment straight away. Afterwards the dashboard shows only its non-secret beginning.
- Revoke or regenerate: revoke a key you no longer need, or regenerate it to replace it under the same name. In both cases the old key stops working immediately.
- Scope: a key belongs to one company. It can use that company’s SunnyForms and draws on the account’s measurements.
- Keep it server-side: never put a key in a website, mobile app, repository or log. Anyone with the key can run analyses on your plan.
A missing, unknown or revoked key returns missing_api_key, invalid_api_key or api_key_revoked (HTTP 401). A key of an inactive account returns account_inactive (HTTP 403).
Measurements and billing
- Each successful analysis uses one measurement of your Solarise plan. The API shares the measurement balance with your SunnyForm calculators.
- Solarise checks the balance before the analysis starts. With no measurements left, or with a paused subscription, the request fails at once with
insufficient_measurements(HTTP 402) and nothing runs. Add measurements in the dashboard and send the request again. - Failed analyses are never charged. When an analysis fails after it started, its measurement goes back to your balance.
- A retry with the same
Idempotency-Keyreturns the stored result without using another measurement. - Every successful response reports
measurements.chargedandmeasurements.remaining, so you can track the balance without another call. Recorded requests also appear in the dashboard’s request history under theiranalysis_id.
Request
Send one JSON object per property. Only location is required; every other field is optional and falls back to the default in the table below. Unknown fields are rejected with invalid_request, so check every field name.
Headers
| Header | Format | Required | Description |
|---|---|---|---|
Authorization | Bearer solarise_sk_<id>_<secret> | Yes | A Solarise API key, created in the Solarise dashboard under API, sent as Authorization: Bearer <key>. |
Content-Type | application/json | Yes | The body is a JSON object. |
Idempotency-Key | string, up to 255 characters | No, but always send it | A unique value per analysis, such as a UUID: 1 to 255 visible ASCII characters, compared exactly. Retrying with the same key returns the stored result of a finished analysis instead of paying for a second one. |
Body fields
| Field and type | Description |
|---|---|
locationobject · required | The property to analyse. Where the property is: exactly one of latitude and longitude together, address, eircode or plus_code. |
location.number or null · optional | Latitude of a point on the building, in decimal degrees (WGS 84). Send with longitude.
|
location.number or null · optional | Longitude of a point on the building, in decimal degrees (WGS 84). Send with latitude.
|
location.string or null · optional | A full street address including the house number, for example '1600 Amphitheatre Parkway, Mountain View, CA 94043'. A postcode, street or town alone is rejected.
|
location.string or null · optional | An Irish Eircode, which identifies one address, for example 'D02 X285'.
|
location.string or null · optional | An Open Location Code (Plus Code): a full code such as '9C5M8WRQ+2V', or a short code with its town, such as '8WRQ+2V Dublin'.
|
country_codestring · optional | ISO 3166-1 alpha-2 code of the property's country, for example 'GB'. It restricts address lookups to that country; coordinates do not need it.
|
building_typestring · optional | The kind of building on the property.
|
sunnyform_idstring (uuid) or null · optional | A SunnyForm of the API key's company whose products, prices, discounts, financing, presets and panel orientation the analysis uses. Without it, Solarise uses the company's API default SunnyForm for the location's country, which it creates on first use with the defaults of a new SunnyForm.
|
roof_materialstring or null · optional | The roof's material. Required when the SunnyForm prices systems by roof material, and one of the SunnyForm's roof materials when given.
|
annual_consumption_kwhnumber or null · optional | The building's electricity use per year in kWh. Send this or average_monthly_energy_bill, not both. Without either, Solarise estimates the consumption.
|
average_monthly_energy_billnumber or null · optional | The average monthly electricity bill in the SunnyForm's currency. Send this or annual_consumption_kwh, not both.
|
usage_patternstring · optional | When the building uses most of its electricity: ALL_DAY, or MORNINGS_AND_EVENINGS for households that are out during the day.
|
import_price_per_kwhnumber or null · optional | The price paid per kWh imported from the grid, in the SunnyForm's currency. Defaults to Solarise's average price for the location.
|
export_price_per_kwhnumber or null · optional | The price received per kWh exported to the grid, in the SunnyForm's currency. Defaults to Solarise's average export price for the location.
|
include_batteryboolean or null · optional | true: every system includes a battery, or the analysis fails with battery_not_available. false: no system includes one, or the analysis fails with battery_required. Left out, each system gets the first battery of the SunnyForm that fits it when sunnyform_id names a SunnyForm with a battery for the building type, and otherwise only a battery its inverter is built into.
|
tariffstring · optional | The electricity tariff after installation. OCTOPUS_FLUX and ECONOMY_7 are UK tariffs for systems with a battery and must be enabled in the SunnyForm's tariff step.
|
namestring · optional | The customer's name. Stored with the lead when save_to_crm is true; with send_webhook alone it goes only to the webhooks.
|
emailstring · optional | The customer's email address. Stored with the lead when save_to_crm is true: details of an existing customer of your account link the lead to that customer, and details that cannot be linked to one customer of your account are refused with customer_contact_conflict. With send_webhook alone it goes only to the webhooks.
|
phone_numberstring · optional | The customer's phone number in international format, for example '+353861234567'. Stored with the lead when save_to_crm is true; with send_webhook alone it goes only to the webhooks.
|
save_to_crmboolean · optional | Save the analysis as a lead in the SunnyForm's CRM, as if the customer had used the calculator. Left out or false, nothing of the analysis is kept but the record of the request in your API history.
|
send_webhookboolean · optional | Send the finished analysis once, as an offer.created event, to every enabled webhook of the SunnyForm that subscribes to it, right after the response and whatever the webhook's send interval. Left out or false, no webhook receives the analysis.
|
Location formats
Send exactly one of these in location:
- Coordinates:
location.latitudeandlocation.longitudetogether, in decimal degrees, on the building. - Address:
location.address, a full street address with the house number. Addcountry_codeto restrict the lookup to one country. - Eircode:
location.eircode, an Irish Eircode, which identifies one address. Eircodes are always looked up in Ireland. - Plus Code:
location.plus_code, a full Plus Code, or a short code followed by its town.
Coordinates and Plus Codes mark the building itself. An address or Eircode is geocoded to a point on its plot, so send coordinates when you have them. A postcode, street or town on its own does not identify one building and is rejected with location_not_specific; a location that cannot be found returns location_not_found. The response’s location shows the address and coordinates Solarise analysed.
SunnyForms
A SunnyForm is the calculator configuration you manage in the Solarise dashboard. Send sunnyform_id to analyse with one of your company’s SunnyForms: the analysis then uses its products, prices, discounts, financing, presets and panel orientation, so results match the offers your calculator makes.
- The SunnyForm must belong to the API key’s company, or the request fails with
sunnyform_not_found. - It must support the
building_type(building_type_not_supported). When it prices systems by roof material, sendroof_materialwith one of its materials (roof_material_required,roof_material_not_supported). - Without
sunnyform_id, Solarise uses your company’s “API defaults <country code>” SunnyForm for the property’s country, for example “API defaults IE”. Solarise creates it on first use with the defaults a new SunnyForm gets for that country. It is listed in your dashboard with your other SunnyForms: change its products, prices and settings there, and later analyses in that country use them. - The response’s
sunnyform_idnames the SunnyForm the analysis used.
Electricity consumption
Send the building’s yearly use as annual_consumption_kwh or its average_monthly_energy_bill in the SunnyForm’s currency, not both. Without either, Solarise estimates the consumption:
- Homes: the typical yearly electricity use of a household in the property’s country: ODYSSEE-MURE (2023 data) for EU countries, Ofgem for the United Kingdom, the EIA for the United States and national sources elsewhere. Where no national figure exists, Solarise uses the EU-27 average.
- Commercial and apartment buildings: the analysed roof’s footprint, taken as one storey of floor area, at 136 kWh per m² per year in the United States (EIA CBECS 2018) or 95 kWh per m² per year elsewhere (CIBSE TM46 general office benchmark).
An estimate fits a typical building, not this one, so send the real figure when you know it. usage_pattern says when the building uses its electricity (ALL_DAY or MORNINGS_AND_EVENINGS); it changes how much of the solar production the building uses itself, and so the savings.
Prices and tariffs
import_price_per_kwh and export_price_per_kwh default to Solarise’s average prices for the location: by state in the United States, by region in the United Kingdom and by country elsewhere, in the SunnyForm’s currency. Send your customer’s actual prices when you know them. The response’s electricity_prices shows the prices used and whether each was PROVIDED or a LOCATION_DEFAULT.
tariff is the electricity tariff after installation. STANDARD, the default, keeps single-rate import and export prices. OCTOPUS_FLUX and ECONOMY_7 model those UK time-of-use tariffs. They need a property in the United Kingdom, a system with a battery and the tariff enabled in the SunnyForm’s tariff step; otherwise the request fails with tariff_not_available.
Batteries
- Set
include_batteryto true to require a battery in every system. A preset gets the first battery of the SunnyForm that fits its system, as the calculator offers when a customer turns batteries on. The request fails withbattery_not_availablewhen the SunnyForm has no battery for the building type, or when no battery fits one of the systems. - Set it to false for solar-only systems. The request fails with
battery_requiredwhen a system can only work with a battery because its inverter is built into the battery. - Leave it out to let each system follow the SunnyForm. If you sent
sunnyform_idand that SunnyForm has a battery for the building type, each system gets the first battery that fits it. Otherwise, including with the API defaults SunnyForm, a system gets a battery only when its inverter is built into one. presets[].system.batteryshows each system’s battery, or null.battery_includedis true when any system has one, and always equalsinclude_batterywhen you set it. A failed request is not charged.presets[].battery_metricscompares the system with and without its battery: backup hours for critical loads, and the first-year savings and self-consumption without the battery.
CRM leads and webhooks
By default an analysis only comes back to you: nothing of it is kept but the record of the request in your API history, and no webhook receives it. Two options change that for the request that sets them:
save_to_crm: true saves the analysis as a lead in the SunnyForm’s CRM, as if the customer had used the calculator.crm.lead_urllinks to the lead in the dashboard. From then on it is a lead like any other.send_webhook: true sends the finished analysis once, as anoffer.createdevent, to every enabled webhook of the SunnyForm that subscribes to it, right after the response and whatever the webhook’s delivery interval.webhook.receiverssays how many webhooks receive it. Withoutsave_to_crmthere is no lead to open, so the event’sfull_quote_urlis empty.
The customer’s name, email and phone_number are stored only with a lead, when save_to_crm is true. Details of an existing customer of your account link the lead to that customer. If they cannot be linked to one customer of your account, for example because the email address and phone number belong to different contacts, the request fails with customer_contact_conflict: send the pair that belongs together, other details, or none. With send_webhook alone, the details go only to the webhooks.
Request examples
Coordinates only: Solarise defaults for the country
curl -X POST https://app.solarise.app/api/v1/roof-analyses \
-H "Authorization: Bearer $SOLARISE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
--max-time 180 \
-d '{
"location": {
"latitude": 53.3438,
"longitude": -6.2546
}
}'An address analysed with a SunnyForm and the customer's consumption
curl -X POST https://app.solarise.app/api/v1/roof-analyses \
-H "Authorization: Bearer $SOLARISE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
--max-time 180 \
-d '{
"location": {
"address": "12 Example Close, Leicester LE2 0XX"
},
"country_code": "GB",
"sunnyform_id": "3f2c8a51-7d64-4e0b-9a1d-5c3e2b7f9a10",
"annual_consumption_kwh": 3200,
"usage_pattern": "MORNINGS_AND_EVENINGS",
"include_battery": true
}'An Eircode saved as a CRM lead and sent to the SunnyForm's webhooks
curl -X POST https://app.solarise.app/api/v1/roof-analyses \
-H "Authorization: Bearer $SOLARISE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
--max-time 180 \
-d '{
"location": {
"eircode": "D04 X2Y3"
},
"sunnyform_id": "3f2c8a51-7d64-4e0b-9a1d-5c3e2b7f9a10",
"average_monthly_energy_bill": 140,
"roof_material": "TILES",
"name": "Alex Murphy",
"email": "[email protected]",
"phone_number": "+353861234567",
"save_to_crm": true,
"send_webhook": true
}'Response
A new analysis returns HTTP 201 with status OK. A retry with the same Idempotency-Key after the analysis finished returns the stored result with HTTP 200 and the header Idempotent-Replayed: true.
Prices and amounts are in currency, the SunnyForm’s currency. Measurements are always metric (unit_system METRIC: m², kWh, kWp, °C, kg and m), also in the United States. The top level describes the property: location, roof, climate and electricity_prices. presets holds one complete system per preset, and crm, webhook and measurements report what happened to the analysis.
Status codes
| Status | Meaning |
|---|---|
| 200 | The stored result of an earlier request with the same Idempotency-Key. The response carries the Idempotent-Replayed: true header and no measurement is used. |
| 201 | Successful Response |
| 400 | The body is not valid JSON. |
| 401 | The API key is missing, invalid or revoked. |
| 402 | No measurements are left on the plan. |
| 403 | The account of the key is not active. |
| 404 | The SunnyForm does not belong to the key's company. |
| 409 | The Idempotency-Key or the contact details conflict. |
| 413 | The body is too large. |
| 422 | The request is invalid, or the property cannot be analysed (location, imagery, roof, system). |
| 429 | Too many requests or analyses running. |
| 500 | The analysis failed. Not charged. |
| 503 | A dependency is unavailable. Not charged. |
| 504 | The analysis took too long. Not charged. |
Presets
Presets are the system sizing strategies of the SunnyForm’s calculator. presets has one entry for each preset the SunnyForm supports, in the SunnyForm’s order. default_preset names the preset the calculator shows first; its entry has presets[].is_default set to true. Presets are chosen from the panel layouts alone, before any battery is added, so a preset’s payback with its battery can come later than another preset’s.
| Preset | Name in the calculator | How the system is sized |
|---|---|---|
FASTEST_BREAK_EVEN | Fastest payback | The panel layout that pays for itself soonest without a battery. |
HIGHEST_PRODUCTION | Highest production | The system that produces the most electricity the roof allows. |
OPTIMAL_FOR_USER_ELECTRICITY_BILL | Perfect fit | The system whose yearly production best matches the building's electricity use. |
OPTIMAL_PANEL_PLACEMENT | Optimal panel placement | The system that fills the best-oriented face of each roof. |
Every preset includes its presets[].system (panels, inverters, battery, size and cabling), presets[].pricing before and after the SunnyForm’s discounts, presets[].financials (payback, first-year and 25-year savings, home value increase, self-consumption), presets[].battery_metrics, presets[].environment, presets[].generation per year and per month, and presets[].financing with the SunnyForm’s default package of each enabled financing type.
How the figures are calculated
Solarise simulates each system hour by hour: the production of the placed panels with the location’s solar irradiance and weather, the building’s consumption spread over the day by its usage pattern, the battery’s charging and discharging, and grid imports and exports at their prices. It projects 25 years with the expected electricity price growth for the country (or US state), 0.5% yearly panel degradation and battery capacity fade.
presets[].financials.payback_years is when the cumulative savings repay the price after discounts, and null when that does not happen within 25 years. All figures are estimates for sales conversations, not a guaranteed quote, yield or saving.
Response fields
| Field and type | Description |
|---|---|
analysis_idstring (uuid) | The analysis; also listed in the dashboard's request history. |
statusstring | Always OK for an analysis; errors answer with status ERROR and an error object.
|
created_atstring (date-time) | When the analysis was requested, in UTC. |
sunnyform_idstring (uuid) | The SunnyForm whose configuration the analysis used. |
building_typestring | The building type the analysis used.
|
currencystring | Currency of every price and amount in the response.
|
unit_systemstring | Units of every measurement: m², kWh, kWp, °C, kg and m.
|
locationobject | The address Solarise resolved and the point it analysed. |
location.string | The address Solarise resolved and analysed. |
location.number | Latitude of the analysed building, in decimal degrees. |
location.number | Longitude of the analysed building, in decimal degrees. |
location.string | ISO 3166-1 alpha-2 code of the location's country. |
roofobject | The roof Solarise identified on the building. |
roof.number | Total area of the roof surfaces, in m². |
roof.number | Area of the roof that can hold panels after obstacles, setbacks and unsuitable faces, in m². |
roof.number | Area-weighted average pitch of the roof faces, in degrees. |
climateobject | Sunshine and last year's temperatures at the location. |
climate.number | Sunshine hours per year at the location. |
climate.number | Lowest air temperature at the location last year, °C. |
climate.number | Highest air temperature at the location last year, °C. |
climate.integer | Days with frost at the location last year. |
electricity_pricesobject | The import and export prices the financial figures use, and where they come from. |
electricity_prices.number | Price per kWh imported from the grid, analysis currency. |
electricity_prices.number | Price per kWh exported to the grid, analysis currency. |
electricity_prices.string | PROVIDED when the request set the price, LOCATION_DEFAULT when Solarise used its default for the location.
|
electricity_prices.string | PROVIDED when the request set the price, LOCATION_DEFAULT when Solarise used its default for the location.
|
usage_patternstring | When the building uses its electricity, which sets how much solar power it uses itself.
|
tariffstring | The electricity tariff the financial figures assume.
|
battery_includedboolean | Whether any preset's system includes a battery; each preset's system.battery says which. Equals include_battery when the request sets it. |
default_presetstring | The preset to show first; a lead saved to the CRM shows its system.
|
presetsarray of objects | One system per preset the SunnyForm supports. |
presets[].string | The system sizing strategy.
|
presets[].string | The preset's name in the Solarise calculator. |
presets[].boolean | Whether this is the preset the calculator selects first. |
presets[].object | The system: size, panels, inverters, battery and cabling. |
presets[].number | Installed panel capacity, in kWp. |
presets[].object | The panel model; quantity is the number of panels. |
presets[].string (uuid) | The product in the Solarise catalogue. |
presets[].string | The product's model name. |
presets[].string | The product's manufacturer. |
presets[].integer | Number of units in the system. |
presets[].number | Rated power of one panel at standard test conditions, in W. |
presets[].array of objects | The separate inverters. Empty when the battery's integrated inverter is used. |
presets[].string (uuid) | The product in the Solarise catalogue. |
presets[].string | The product's model name. |
presets[].string | The product's manufacturer. |
presets[].integer | Number of units in the system. |
presets[].number | Rated AC power of one inverter, in kW. |
presets[].object or null | The battery, when the system includes one. |
presets[].string (uuid) | The product in the Solarise catalogue. |
presets[].string | The product's model name. |
presets[].string | The product's manufacturer. |
presets[].integer | Number of units in the system. |
presets[].number | Usable capacity of one battery, in kWh. |
presets[].string or null | The battery expansion module, when the system has one. |
presets[].integer | Number of battery expansion modules. |
presets[].number | Estimated total length of DC, AC and earthing cable, in m. |
presets[].object | The system's price before and after discounts. |
presets[].number | Estimated system price before discounts. |
presets[].array of objects | The SunnyForm's discounts that apply. |
presets[].string | The discount's name, as the SunnyForm shows it. |
presets[].number | Discount amount, in the analysis currency. |
presets[].number | Estimated system price after discounts. |
presets[].object | Payback, savings, home value and self-consumption of the system. |
presets[].number or null | Years until savings repay the discounted price; null when they never do within 25 years. |
presets[].number | Savings in the first year, in the analysis currency. |
presets[].number | Electricity savings over 25 years before the system's price is subtracted, in the analysis currency. |
presets[].number | Estimated increase of the property's value, in %. |
presets[].number | Share of the solar production the building uses itself, from 0 to 1. |
presets[].object or null | Set when the system has a battery. |
presets[].number | Hours the battery can supply critical loads in an outage. |
presets[].number or null | First-year savings of the same system without the battery. |
presets[].number or null | Self-consumption of the same system without the battery, from 0 to 1. |
presets[].object | The emissions the system avoids. |
presets[].number | CO₂ emissions avoided per year, in kg. |
presets[].number | Number of trees that absorb that much CO₂. |
presets[].object | The system's electricity generation. |
presets[].number | Electricity the system generates in its first year, in kWh. |
presets[].array of numbers | Generation per calendar month, January first, in kWh. |
presets[].array of objects | Financing with the SunnyForm's default package of each enabled financing type. |
presets[].string | LOAN, LEASING or PPA (power purchase agreement).
|
presets[].string (uuid) | The SunnyForm's financing package the figures use. |
presets[].integer | Length of the financing, in years. |
presets[].number | First-year monthly payment, in the analysis currency. |
presets[].number | Savings over 25 years after the financing payments, in the analysis currency. |
presets[].number or null | The loan's annual percentage rate, for LOAN. |
presets[].number or null | Yearly payment increase, for LEASING and PPA, in %. |
presets[].number or null | First-year price per kWh of solar electricity, for PPA. |
crmobject | Whether the analysis was saved as a lead in the CRM. |
crm.boolean | Whether the analysis was saved as a lead in the SunnyForm's CRM. |
crm.string or null | The lead in the Solarise dashboard, when it was saved. |
webhookobject | Whether the analysis was sent to the SunnyForm's webhooks. |
webhook.boolean | Whether the request set send_webhook. |
webhook.integer | Enabled webhooks of the SunnyForm that will receive offer.created. |
measurementsobject | The measurement the analysis used and the plan's balance. |
measurements.integer | Measurements the analysis took from the plan: 1. A replay (HTTP 200 with Idempotent-Replayed: true) returns this stored answer unchanged and takes none. |
measurements.integer | Measurements left on the plan when the analysis finished; a replay repeats the stored value. |
Example response
A residential analysis with a battery:
{
"analysis_id": "5b0e9c2a-8f1d-4c6e-a3b7-2d9f4e6a1c58",
"status": "OK",
"created_at": "2026-11-20T10:15:42Z",
"sunnyform_id": "3f2c8a51-7d64-4e0b-9a1d-5c3e2b7f9a10",
"building_type": "RESIDENTIAL",
"currency": "GBP",
"unit_system": "METRIC",
"location": {
"address": "12 Example Close, Leicester LE2 0XX, UK",
"latitude": 52.608512,
"longitude": -1.121704,
"country_code": "GB"
},
"roof": {
"total_area_m2": 118.4,
"usable_area_m2": 61.7,
"average_slope_degrees": 30.5
},
"climate": {
"sunny_hours_per_year": 1892.1,
"min_temperature_last_year_c": -6.1,
"max_temperature_last_year_c": 30.9,
"frost_days_last_year": 28
},
"electricity_prices": {
"import_price_per_kwh": 0.2541,
"export_price_per_kwh": 0.1203,
"import_price_source": "LOCATION_DEFAULT",
"export_price_source": "LOCATION_DEFAULT"
},
"usage_pattern": "MORNINGS_AND_EVENINGS",
"tariff": "STANDARD",
"battery_included": true,
"default_preset": "OPTIMAL_PANEL_PLACEMENT",
"presets": [
{
"preset": "FASTEST_BREAK_EVEN",
"name": "Fastest payback",
"is_default": false,
"system": {
"size_kwp": 0.88,
"panel": {
"id": "8a1f3c5e-2b7d-4e9a-b6c4-1d3f5a7b9c20",
"name": "Q.TRON BLK M-G2+ 440W",
"manufacturer": "Qcells",
"quantity": 2,
"power_w": 440
},
"inverters": [
{
"id": "4c6e8a0b-3d5f-4a7c-9e1b-6f8a2c4e6d31",
"name": "IQ8M-72-2-US",
"manufacturer": "Enphase",
"quantity": 2,
"rated_power_kw": 0.325
}
],
"battery": {
"id": "9e2b4d6f-7a1c-4e3b-8d5f-0a2c4e6b8d42",
"name": "IQ Battery 5P",
"manufacturer": "Enphase",
"quantity": 1,
"usable_capacity_kwh": 5,
"expansion_name": null,
"expansion_quantity": 0
},
"estimated_cabling_m": 28.4
},
"pricing": {
"price_without_discounts": 6496,
"discounts": [],
"price_with_discounts": 6496
},
"financials": {
"payback_years": null,
"annual_savings": 121.04,
"twenty_five_year_savings": 3706.78,
"home_value_increase_percent": 8,
"self_consumption_rate": 0.9996
},
"battery_metrics": {
"backup_duration_hours": 3.2,
"annual_savings_without_battery": 120.84,
"self_consumption_rate_without_battery": 0.9962
},
"environment": {
"co2_reduction_kg_per_year": 101,
"trees_equivalent": 4
},
"generation": {
"annual_kwh": 476.4,
"monthly_kwh": [
18.3,
19.7,
37.4,
54.2,
63.5,
66.8,
61.2,
55.9,
43,
27.3,
18.4,
10.7
]
},
"financing": []
},
{
"preset": "HIGHEST_PRODUCTION",
"name": "Highest production",
"is_default": false,
"system": {
"size_kwp": 6.6,
"panel": {
"id": "8a1f3c5e-2b7d-4e9a-b6c4-1d3f5a7b9c20",
"name": "Q.TRON BLK M-G2+ 440W",
"manufacturer": "Qcells",
"quantity": 15,
"power_w": 440
},
"inverters": [
{
"id": "4c6e8a0b-3d5f-4a7c-9e1b-6f8a2c4e6d31",
"name": "IQ8M-72-2-US",
"manufacturer": "Enphase",
"quantity": 15,
"rated_power_kw": 0.325
}
],
"battery": {
"id": "9e2b4d6f-7a1c-4e3b-8d5f-0a2c4e6b8d42",
"name": "IQ Battery 5P",
"manufacturer": "Enphase",
"quantity": 1,
"usable_capacity_kwh": 5,
"expansion_name": null,
"expansion_quantity": 0
},
"estimated_cabling_m": 149.6
},
"pricing": {
"price_without_discounts": 16220,
"discounts": [],
"price_with_discounts": 16220
},
"financials": {
"payback_years": 22.4,
"annual_savings": 617.55,
"twenty_five_year_savings": 18595.44,
"home_value_increase_percent": 8,
"self_consumption_rate": 0.7005
},
"battery_metrics": {
"backup_duration_hours": 3.2,
"annual_savings_without_battery": 527.76,
"self_consumption_rate_without_battery": 0.4464
},
"environment": {
"co2_reduction_kg_per_year": 621.5,
"trees_equivalent": 28
},
"generation": {
"annual_kwh": 2931.6,
"monthly_kwh": [
85.6,
104.9,
216.8,
335.9,
424.5,
460.7,
413.6,
354.1,
247.8,
149.3,
87.1,
51.2
]
},
"financing": []
},
{
"preset": "OPTIMAL_FOR_USER_ELECTRICITY_BILL",
"name": "Perfect fit",
"is_default": false,
"system": {
"size_kwp": 6.6,
"panel": {
"id": "8a1f3c5e-2b7d-4e9a-b6c4-1d3f5a7b9c20",
"name": "Q.TRON BLK M-G2+ 440W",
"manufacturer": "Qcells",
"quantity": 15,
"power_w": 440
},
"inverters": [
{
"id": "4c6e8a0b-3d5f-4a7c-9e1b-6f8a2c4e6d31",
"name": "IQ8M-72-2-US",
"manufacturer": "Enphase",
"quantity": 15,
"rated_power_kw": 0.325
}
],
"battery": {
"id": "9e2b4d6f-7a1c-4e3b-8d5f-0a2c4e6b8d42",
"name": "IQ Battery 5P",
"manufacturer": "Enphase",
"quantity": 1,
"usable_capacity_kwh": 5,
"expansion_name": null,
"expansion_quantity": 0
},
"estimated_cabling_m": 149.6
},
"pricing": {
"price_without_discounts": 16220,
"discounts": [],
"price_with_discounts": 16220
},
"financials": {
"payback_years": 22.4,
"annual_savings": 617.55,
"twenty_five_year_savings": 18595.44,
"home_value_increase_percent": 8,
"self_consumption_rate": 0.7005
},
"battery_metrics": {
"backup_duration_hours": 3.2,
"annual_savings_without_battery": 527.76,
"self_consumption_rate_without_battery": 0.4464
},
"environment": {
"co2_reduction_kg_per_year": 621.5,
"trees_equivalent": 28
},
"generation": {
"annual_kwh": 2931.6,
"monthly_kwh": [
85.6,
104.9,
216.8,
335.9,
424.5,
460.7,
413.6,
354.1,
247.8,
149.3,
87.1,
51.2
]
},
"financing": []
},
{
"preset": "OPTIMAL_PANEL_PLACEMENT",
"name": "Optimal panel placement",
"is_default": true,
"system": {
"size_kwp": 3.08,
"panel": {
"id": "8a1f3c5e-2b7d-4e9a-b6c4-1d3f5a7b9c20",
"name": "Q.TRON BLK M-G2+ 440W",
"manufacturer": "Qcells",
"quantity": 7,
"power_w": 440
},
"inverters": [
{
"id": "4c6e8a0b-3d5f-4a7c-9e1b-6f8a2c4e6d31",
"name": "IQ8M-72-2-US",
"manufacturer": "Enphase",
"quantity": 7,
"rated_power_kw": 0.325
}
],
"battery": {
"id": "9e2b4d6f-7a1c-4e3b-8d5f-0a2c4e6b8d42",
"name": "IQ Battery 5P",
"manufacturer": "Enphase",
"quantity": 1,
"usable_capacity_kwh": 5,
"expansion_name": null,
"expansion_quantity": 0
},
"estimated_cabling_m": 74.4
},
"pricing": {
"price_without_discounts": 10236,
"discounts": [],
"price_with_discounts": 10236
},
"financials": {
"payback_years": 21.5,
"annual_savings": 403.41,
"twenty_five_year_savings": 12319.27,
"home_value_increase_percent": 8,
"self_consumption_rate": 0.9435
},
"battery_metrics": {
"backup_duration_hours": 3.2,
"annual_savings_without_battery": 333.41,
"self_consumption_rate_without_battery": 0.5952
},
"environment": {
"co2_reduction_kg_per_year": 353.5,
"trees_equivalent": 16
},
"generation": {
"annual_kwh": 1667.5,
"monthly_kwh": [
64,
69,
130.7,
189.8,
222.3,
233.9,
214.3,
195.7,
150.4,
95.5,
64.4,
37.5
]
},
"financing": []
}
],
"crm": {
"saved": false,
"lead_url": null
},
"webhook": {
"requested": false,
"receivers": 0
},
"measurements": {
"charged": 1,
"remaining": 249
}
}Enumerations
The values of the API’s enumerated fields, and the fields that use them.
Currency
Used by the response field currency.
AEDAFNALLAMDANGAOAARSAUDAWGAZNBAMBBDBDTBGNBHDBIFBMDBNDBOBBRLBSDBTCBTNBWPBYNBYRBZDCADCDFCHFCLFCLPCNYCNHCOPCRCCUCCUPCVECZKDJFDKKDOPDZDEGPERNETBEURFJDFKPGBPGELGGPGHSGIPGMDGNFGTQGYDHKDHNLHRKHTGHUFIDRILSIMPINRIQDIRRISKJEPJMDJODJPYKESKGSKHRKMFKPWKRWKWDKYDKZTLAKLBPLKRLRDLSLLTLLVLLYDMADMDLMGAMKDMMKMNTMOPMRUMURMVRMWKMXNMYRMZNNADNGNNIONOKNPRNZDOMRPABPENPGKPHPPKRPLNPYGQARRONRSDRUBRWFSARSBDSCRSDGSEKSGDSHPSLESLLSOSSRDSTDSVCSYPSZLTHBTJSTMTTNDTOPTRYTTDTWDTZSUAHUGXUSDUYUUZSVESVNDVUVWSTXAFXAGXAUXCDXDRXOFXPFYERZARZMKZMWZWL
ElectricityUsagePatternType
Used by the request field usage_pattern, the response field usage_pattern.
MORNINGS_AND_EVENINGSALL_DAY
OfferPresetType
Used by the response field default_preset, the response field presets[].preset.
FASTEST_BREAK_EVENHIGHEST_PRODUCTIONOPTIMAL_FOR_USER_ELECTRICITY_BILLOPTIMAL_PANEL_PLACEMENT
RoofAnalysisBuildingType
The building to analyse: RESIDENTIAL for houses, COMMERCIAL for business buildings, COMMUNITY for apartment buildings with shared systems. The SunnyForm must serve the building type.
Used by the request field building_type, the response field building_type.
RESIDENTIALCOMMERCIALCOMMUNITY
RoofAnalysisTariff
The electricity tariff the financial figures assume. STANDARD keeps the location's single-rate import and export prices. OCTOPUS_FLUX and ECONOMY_7 are UK time-of-use tariffs for systems with a battery, available when the SunnyForm's tariff step offers them.
Used by the request field tariff, the response field tariff.
STANDARDOCTOPUS_FLUXECONOMY_7
Timing, timeouts and idempotency
- Analyses are synchronous: the response arrives in the same HTTP request, usually after 30 to 90 seconds.
- Use an HTTP client timeout of at least 180 seconds, and make the call outside a user-facing request, for example in a background job.
- Send an
Idempotency-Keyheader with a new unique value, such as a UUID, for every analysis, and keep it with the job until the job is done. A key is 1 to 255 visible ASCII characters and is compared exactly, letter case included.
Retry the same request with the same key when the call fails with a network error or the response is 500, 503, 504. The key makes the retry safe:
- If the analysis is still running, the retry gets
request_in_progresswith aRetry-Afterheader. Wait that many seconds and retry again. - Once the analysis has finished, the retry gets the stored result with HTTP 200 and
Idempotent-Replayed: true. No second measurement is used. - If the analysis failed, its key is released: the retry starts a new analysis, which is charged only if it succeeds.
- A key belongs to one request body. Reusing it with a different body returns
idempotency_key_reused. Keys are scoped to the company the API key belongs to.
Do not retry other 4xx errors without changing the request. An analysis that runs too long is stopped with analysis_timeout, and you are not charged.
Rate limits
- 60 requests per minute per Solarise account, across all its keys. Further requests return
rate_limited. - 3 analyses running at the same time per Solarise account, across all its keys. Further analyses return
too_many_concurrent_requests. - Repeated requests with invalid keys from one IP address are blocked for a while with
rate_limited.
These responses carry a Retry-After header with the seconds to wait. For bulk work, run at most three analyses in parallel and queue the rest.
Errors
Every error has the same envelope: status ERROR, analysis_id and error with error.code, error.message, error.request_id and, for invalid input, error.details.
- Branch on
error.code, never on the message: messages are written for people and can change. analysis_ididentifies the recorded request, which is also listed in the dashboard’s request history. It is null when the request was rejected before it was recorded, for example for an invalid key.- Quote
error.request_idwhen you contact Solarise support at [email protected]. - For
invalid_request,error.detailslists each invalid field as a dotted path with a message.
| Field and type | Description |
|---|---|
statusstring | Always ERROR for an error response.
|
analysis_idstring (uuid) or null | The recorded request, also listed in the dashboard's request history. |
errorobject | What went wrong. |
error.string | Stable machine-readable error code.
|
error.string | What went wrong and what to do, in English. |
error.string or null | Quote it when you contact Solarise support. |
error.array of objects or null | The invalid fields of the request. |
error.string | The request field, as a dotted path, for example 'location.latitude'. |
error.string | Why the field is invalid. |
Error codes
Stable machine-readable error codes. Each code always comes with the same HTTP status; the x-error-codes catalogue lists them with their default messages.
| Code | HTTP status | Meaning |
|---|---|---|
missing_api_key | 401 | Send your API key in the Authorization header as 'Bearer <key>'. |
invalid_api_key | 401 | The API key is not valid. |
api_key_revoked | 401 | This API key has been revoked. Create a new key in the Solarise dashboard. |
account_inactive | 403 | The Solarise account or company of this API key is not active. |
insufficient_measurements | 402 | Your plan has no measurements left, or your subscription is paused. Add measurements in the Solarise dashboard and try again. |
invalid_json | 400 | The request body is not valid JSON. |
invalid_request | 422 | The request does not match the API contract. See error.details. |
payload_too_large | 413 | The request body is too large. |
sunnyform_not_found | 404 | No SunnyForm with this ID belongs to the company of this API key. |
building_type_not_supported | 422 | The SunnyForm does not support this building type. |
roof_material_required | 422 | The SunnyForm prices systems by roof material, so roof_material is required. |
roof_material_not_supported | 422 | The SunnyForm does not offer this roof material. |
battery_not_available | 422 | The SunnyForm has no battery for this building type, so include_battery cannot be true. |
battery_required | 422 | Every inverter of the SunnyForm for this building type is built into a battery, so include_battery cannot be false. |
tariff_not_available | 422 | This tariff is not available for this analysis. |
location_not_found | 422 | The location could not be found. |
location_not_specific | 422 | The location is not specific enough to identify one building. Send a full street address with its house number, an Eircode, a Plus Code, or coordinates. |
location_not_supported | 422 | Solarise cannot analyse properties in this location's country yet. |
customer_contact_conflict | 409 | The contact details cannot be linked to one customer of this account, for example because the email and phone number belong to different contacts. Send the pair that belongs together, other details, or none. |
idempotency_key_reused | 409 | This Idempotency-Key was already used with a different request. |
request_in_progress | 409 | An analysis with this Idempotency-Key is still running. Retry the same request later to get its result. |
rate_limited | 429 | Too many requests. Retry after the time in the Retry-After header. |
too_many_concurrent_requests | 429 | Too many analyses are running for this account. Retry after the time in the Retry-After header. |
no_imagery_available | 422 | No suitable aerial imagery is available at this location. |
roof_not_found | 422 | No roof could be identified at this location. |
no_suitable_system | 422 | No solar system configuration with the SunnyForm's products fits this roof. |
analysis_failed | 500 | The analysis could not be completed. You were not charged. |
analysis_timeout | 504 | The analysis took too long and was stopped. You were not charged. |
service_unavailable | 503 | A service the analysis depends on is temporarily unavailable. You were not charged. Retry later. |
internal_error | 500 | An unexpected error occurred. You were not charged. |
Handling errors
| Situation | Codes | What to do |
|---|---|---|
| The key or account cannot be used | Stop and fix the configuration: check the key, or create a new one in the dashboard. | |
| No measurements are left | Stop sending analyses and ask an administrator to add measurements. | |
| The request is invalid | Fix the request. Sending it again unchanged gives the same error. | |
| The location does not identify one building | Ask for coordinates or a full street address with the house number. | |
| The location’s country is not supported | Check that the property’s country is right; Solarise does not analyse properties there yet. | |
| The property cannot be analysed | Tell the user that this property could not be analysed automatically. | |
| The same analysis is still running | Wait for the seconds in Retry-After, then retry with the same Idempotency-Key. | |
| The Idempotency-Key belongs to another request | Use a new Idempotency-Key for a new request. | |
| Too many requests | Wait for the seconds in Retry-After, then retry. | |
| The analysis failed on our side | Retry later with the same Idempotency-Key. You were not charged. |
Error examples
HTTP 400The body is not valid JSON
{
"status": "ERROR",
"analysis_id": null,
"error": {
"code": "invalid_json",
"message": "The request body is not valid JSON.",
"request_id": "kqzvtbmhwrcxfdpn",
"details": null
}
}HTTP 401An unknown or mistyped key
{
"status": "ERROR",
"analysis_id": null,
"error": {
"code": "invalid_api_key",
"message": "The API key is not valid.",
"request_id": "kqzvtbmhwrcxfdpn",
"details": null
}
}HTTP 402The plan has no measurements left
{
"status": "ERROR",
"analysis_id": "0b6f9a3e-1c2d-4e5f-8a7b-9c0d1e2f3a4b",
"error": {
"code": "insufficient_measurements",
"message": "Your plan has no measurements left, or your subscription is paused. Add measurements in the Solarise dashboard and try again.",
"request_id": "kqzvtbmhwrcxfdpn",
"details": null
}
}HTTP 404The SunnyForm belongs to another company
{
"status": "ERROR",
"analysis_id": "d97a8475-9762-487a-9bf2-62ba1118586d",
"error": {
"code": "sunnyform_not_found",
"message": "No SunnyForm with this ID belongs to the company of this API key.",
"request_id": "kqzvtbmhwrcxfdpn",
"details": null
}
}HTTP 409A retry while the first request still runs
{
"status": "ERROR",
"analysis_id": null,
"error": {
"code": "request_in_progress",
"message": "An analysis with this Idempotency-Key is still running. Retry the same request later to get its result.",
"request_id": "kqzvtbmhwrcxfdpn",
"details": null
}
}HTTP 422Invalid fields
{
"status": "ERROR",
"analysis_id": "9f8d6da2-60fd-4458-bf14-f0814d165fd5",
"error": {
"code": "invalid_request",
"message": "The request does not match the API contract. See error.details.",
"request_id": "kqzvtbmhwrcxfdpn",
"details": [
{
"field": "location",
"message": "Send latitude and longitude together."
},
{
"field": "tariff",
"message": "Input should be 'STANDARD', 'OCTOPUS_FLUX' or 'ECONOMY_7'"
}
]
}
}HTTP 422A postcode instead of an address
{
"status": "ERROR",
"analysis_id": "a0aa7763-9b99-404d-8137-e18822c40626",
"error": {
"code": "location_not_specific",
"message": "The location is not specific enough to identify one building. Send a full street address with its house number, an Eircode, a Plus Code, or coordinates.",
"request_id": "kqzvtbmhwrcxfdpn",
"details": null
}
}HTTP 422No roof at the location
{
"status": "ERROR",
"analysis_id": "5d1c7b2e-8f3a-4b6c-9d0e-1f2a3b4c5d6e",
"error": {
"code": "roof_not_found",
"message": "No roof could be identified at this location.",
"request_id": "kqzvtbmhwrcxfdpn",
"details": null
}
}HTTP 429Too many requests in a minute
{
"status": "ERROR",
"analysis_id": null,
"error": {
"code": "rate_limited",
"message": "Too many requests. Retry after the time in the Retry-After header.",
"request_id": "kqzvtbmhwrcxfdpn",
"details": null
}
}HTTP 500The analysis failed; nothing was charged
{
"status": "ERROR",
"analysis_id": "6e2d8c3f-9a4b-4c7d-8e1f-2a3b4c5d6e7f",
"error": {
"code": "analysis_failed",
"message": "The analysis could not be completed. You were not charged.",
"request_id": "kqzvtbmhwrcxfdpn",
"details": null
}
}HTTP 504The analysis ran too long
{
"status": "ERROR",
"analysis_id": "8a4f0e5b-1c6d-4e9f-8a3b-4c5d6e7f8091",
"error": {
"code": "analysis_timeout",
"message": "The analysis took too long and was stopped. You were not charged.",
"request_id": "kqzvtbmhwrcxfdpn",
"details": null
}
}Limitations
- The API analyses new rooftop systems. Balcony systems and battery retrofits for existing solar systems are not available in version 1.
- One property per request, answered synchronously. There is no batch endpoint and no endpoint to read an earlier analysis, so store each response you need with its
analysis_id. - Results are estimates from aerial imagery, elevation data where available, weather data and your SunnyForm’s configuration. They support sales conversations and do not replace a site survey; see the Terms of service.
- All measurements are metric. Convert them if you show imperial units.
Integration patterns
CRM enrichment
When a lead with an address arrives in your CRM, run an analysis from a background job and write the roof area, system size, price and payback onto the lead. Keep analysis_id with the record, and leave save_to_crm off when the lead already lives in your own CRM.
Quoting tool
Send your sunnyform_id so prices, discounts and financing match your offers. Show the default_preset first and let users compare the other presets. Ask for the customer’s consumption or bill, so the systems are sized for the building rather than a typical one.
Bulk processing
Put the properties in a queue and run at most three analyses at once. Give every property its own Idempotency-Key, stored with the job, so a retry after a crash or timeout never pays twice. Honour Retry-After, and pause the queue on insufficient_measurements until measurements are added.
Coding agents
Give your AI coding agent the prompt below. It points the agent to this page and the OpenAPI document and lists the rules for keys, timeouts, retries and errors.
Prompt for coding agents
Paste this prompt into your AI coding agent in the project that should call the API. It asks the agent to confirm the fields to store before it writes code, and never to enable CRM or webhook delivery without asking you.
Integrate the Solarise Solar Potential & Financial Analysis API into this project. Solarise analyses a property's roof from a single API call: it finds the building, measures its roof faces, places panels, sizes a solar system for each preset, and returns prices, savings, payback, generation, battery and financing figures. Read these first and treat them as the source of truth: - Documentation: https://www.solarise.app/docs/api - OpenAPI 3.1 document: https://www.solarise.app/docs/api/openapi.json (generate request and response types from it instead of writing them by hand) The API in short: - Endpoint: POST https://app.solarise.app/api/v1/roof-analyses with a JSON body. - Authentication: the header `Authorization: Bearer <key>`. Read the key from the environment variable SOLARISE_API_KEY. Never hard-code it, never log it, and never send it to a browser or mobile app: call the API from server-side code only. - The only required field is `location`, with exactly one of: `latitude` and `longitude`; `address` (a full street address with the house number); `eircode`; or `plus_code`. Everything else is optional and has documented defaults. Send `sunnyform_id` to use one of our SunnyForms (products, prices, discounts, financing); without it Solarise uses its defaults for the country. - Each successful analysis uses one measurement of our Solarise plan. Failed analyses are free. Do not call the live API from automated tests. - Analyses take 30 to 90 seconds. Use an HTTP timeout of at least 180 seconds and do not block a user-facing request thread while waiting; run the call in a background job if this project has a job system. - Always send an `Idempotency-Key` header with a new UUID per analysis. When a call fails with a network error or returns 500, 503 or 504, retry the same request with the same key: a finished analysis is returned instead of run again, and a retry is never charged twice. A 409 `request_in_progress` means an analysis with that key has not finished yet: wait for the `Retry-After` seconds and retry with the same key. - Success is HTTP 201 with `"status": "OK"`; a replay of a stored result is HTTP 200 with the `Idempotent-Replayed: true` header. Errors have `"status": "ERROR"` and `error.code`, `error.message`, `error.request_id` and, for invalid input, `error.details` with one entry per field. Branch on `error.code`, never on the message text. - Handle at least these codes: `invalid_api_key` and `api_key_revoked` (stop and report a configuration problem), `insufficient_measurements` (402: stop and tell an administrator to add measurements), `invalid_request` (fix the input; do not retry), `location_not_found` and `location_not_specific` (ask the user for a full address or coordinates), `roof_not_found` and `no_suitable_system` (show that this property could not be analysed), `rate_limited` and `too_many_concurrent_requests` (wait for `Retry-After`), `service_unavailable` and `analysis_timeout` (retry later with the same Idempotency-Key). - The response describes one system per preset in `presets`, and `default_preset` names the one to show first. All amounts are in `currency`; all measurements are metric (m², kWh, kWp, °C, kg, m). Send `annual_consumption_kwh` or `average_monthly_energy_bill` when the user knows it; without either, Solarise sizes the systems for a typical building. - `save_to_crm: true` also saves the analysis as a lead in our Solarise CRM, and `send_webhook: true` sends it to the SunnyForm's webhooks. Both default to false, and then nothing of the analysis is kept but the record of the request; only set them when the user asks for it. Your tasks: 1. Find where this project needs roof or solar analyses and confirm with me which fields to store and show before writing code. 2. Add one small server-side client for the endpoint: typed request and response models generated from the OpenAPI document, the bearer key from SOLARISE_API_KEY, the Idempotency-Key, the timeout and the retry rules above. 3. Map the response into this project's own models. Keep `analysis_id` so a result can be found again, and store the full response if the project keeps raw provider data. 4. Turn each error code into a clear message or action for the user, as listed above. 5. Write tests with recorded responses taken from the documented examples (success, a 422 validation error, a 402, and a 409 in progress). Mock the HTTP layer; never call the live API in tests. 6. Document the SOLARISE_API_KEY variable and how to create a key: Solarise dashboard, then API, then Create API key. The key is shown only once. Ask me before choosing a SunnyForm, sending customer contact details, or enabling save_to_crm or send_webhook.
OpenAPI document
The OpenAPI 3.1.0 document at /docs/api/openapi.json describes the endpoint, every field, the examples on this page and the error catalogue (in x-error-codes). Generate request and response types from it instead of writing them by hand. This page is generated from the same document, for API version 1.0.0.
FAQ
How long does an analysis take?
Usually 30 to 90 seconds. The API answers in the same HTTP request, so use a client timeout of at least 180 seconds and run the call from a background job.
Does a failed analysis use a measurement?
No. Only successful analyses use a measurement. When an analysis fails after it started, its measurement goes back to your balance, and retrying with the same Idempotency-Key never charges twice.
Do I need a SunnyForm to use the API?
No. Without one, Solarise uses an “API defaults” SunnyForm for the property’s country, which it creates on first use with the defaults of a new SunnyForm. Send your own SunnyForm’s ID to price systems with your products, prices, discounts and financing.
Which locations can I send?
Coordinates, a full street address with the house number, an Irish Eircode or a Plus Code. A postcode, street or town on its own is rejected because it does not identify one building.
Which countries does the API cover?
Any location with suitable aerial imagery. Default electricity prices cover 45+ countries, with US prices by state and UK prices by region, and open elevation surveys refine roofs in England, Wales, Scotland, the Netherlands, France and four German states.
What if I do not know the customer’s electricity use?
Solarise estimates it: a typical household of the country for homes, and the roof’s footprint at a typical commercial use per square metre for commercial and apartment buildings. Send the real consumption or bill when you have it, so the systems and savings fit the building.
Can I call the API from a browser or a mobile app?
No. Keep the API key on your server and call the API from server-side code only. Anyone with the key can run analyses on your plan.
Is there a test environment?
No, the API has one production environment. Test your integration against the documented example responses with a mocked HTTP layer; every successful live call uses a measurement.
