> For the complete documentation index, see [llms.txt](https://docs.altum.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.altum.ai/english/sustainability/solar-panel-detection-api/authentication-input-and-response.md). Agents can also search and read this documentation through its [MCP server](https://docs.altum.ai/~gitbook/mcp).

# Authentication, input and response

## Assess the full potential of the Solar Panel Detection API by understanding the key parameters and response.

<mark style="color:green;">`POST`</mark> `https://api.altum.ai/satellite-roof-scan`

The endpoint allows you to interact with the Solar Panel Detection API by sending specific queries, such as postal codes, to retrieve detailed real estate data. You can find the full endpoint above.

### Query Parameters

| Parameter       | Type      | Description                                                                                                  |
| --------------- | --------- | ------------------------------------------------------------------------------------------------------------ |
| `postcode`      | `string`  | zip code in six character format e.g. 1234AB                                                                 |
| `housenumber`   | `string`  | house number of the object e.g. 1                                                                            |
| `huisletter`    | `string`  | addition to the house number e.g. A                                                                          |
| `roof_geometry` | `boolean` | The polygon shape of the selected roof; if false, it skips geometry and only performs image-based detection. |
| `image_source`  | `string`  | Specifies where the imagery comes from (auto, **pdok**,**esri**, or **google\_maps**).                       |
| `show_image`    | bool      | If `false`, skips drawing the annotated image. Use this to save time when only the count is needed.          |

{% hint style="info" %}
Note:

* The **huisletter** is an **optional** field, you can leave it empty ("") otherwise all fields are **required**.
* Some roof geometries are not always available.
* Google Maps Services are **temporarily disabled**.
* You can switch the image source between **pdok**, **esri**,or **auto** (default).
  {% endhint %}

### Headers

<table><thead><tr><th width="152">Name</th><th width="145">Type</th><th>Description</th></tr></thead><tbody><tr><td>Content-Type</td><td>string</td><td>application/json</td></tr><tr><td>x-api-key<mark style="color:red;">*</mark></td><td>string</td><td>Unique API key from Altum. Obtain one on <a href="https://platform.altum.ai/auth">https://platform.altum.ai</a></td></tr></tbody></table>

### Request body

A valid `POST` request body would look like this:

```
{
  "postcode": "4624AD",
  "housenumber": "4",
  "huisletter": "",
  "roof_geometry": true,
  "image_source": "auto",
  "show_image": true
}
```

### Response

Upon a successful `POST` request, the API returns a `200 OK` status with a JSON object containing the results.

**Example Complete Output**

| Field                 | Type          | Description                                                                                                                                        |
| --------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| `postcode`            | `string`      | zip code in six character format e.g. 1234AB                                                                                                       |
| `housenumber`         | `string`      | house number of the object e.g. 1                                                                                                                  |
| `huisletter`          | `string`      | addition to the house number e.g. A                                                                                                                |
| `imagery_source`      | `string`      | Source of the aerial image used.                                                                                                                   |
| `annotated_image_url` | `string`      | A public URL to the image with detected solar panels drawn on it.                                                                                  |
| `imagery_date`        | `date`        | Date of the aerial image was captured.                                                                                                             |
| `num_panels_detected` | `integer`     | The total number of solar panels (or other detected objects) found.                                                                                |
| `estimation_method`   | `string`      | `"detected"`, `"detected_unmasked"`, or `"estimated"`                                                                                              |
| `error_margin`        | `int \| null` | `±` panels of uncertainty around `num_panels_detected`                                                                                             |
| `detections`          | `array`       | An array of JSON objects, with each object describing a detected solar panel, including its label, confidence score, and bounding box coordinates. |

**Example Complete Output**

```
{
	"postcode": "4624AD",
	"housenumber": "4",
	"huisletter": "",
	"houseaddress": "4624AD-4-",
	"imagery_source": "PDOK Aerial RGB (Open), Current Ortho 25cm RGB",
	"annotated_image_url": "https://altum-gis.s3.eu-west-1.amazonaws.com/solar_panels/4624AD-4-_beb82c36.png",
	"imagery_date": "2026",
	"num_panels_detected": 11,
	"estimation_method": "estimated",
	"error_margin": 2,
	"detections": [
		{
			"label": "solar_array_region",
			"confidence": 0.84,
			"bbox": {
				"x1": 340,
				"y1": 615,
				"x2": 528,
				"y2": 691,
				"width": 188,
				"height": 76
			}
		}
	]
}
```

<figure><img src="https://1172273446-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lw4gk5ARKsgVHFCdPZw%2Fuploads%2FN5WqCMt10I0m4UxBjKD0%2F4624AD-4-_beb82c36.png?alt=media&amp;token=07244245-848c-4674-a2f6-53ff4972ce88" alt="" width="375"><figcaption></figcaption></figure>

{% tabs %}
{% tab title="200: OK Standard response" %}

```
{
	"postcode": "4624AD",
	"housenumber": "4",
	"huisletter": "",
	"houseaddress": "4624AD-4-",
	"imagery_source": "PDOK Aerial RGB (Open), Current Ortho 25cm RGB",
	"annotated_image_url": "https://altum-gis.s3.eu-west-1.amazonaws.com/solar_panels/4624AD-4-_beb82c36.png",
	"imagery_date": "2026",
	"num_panels_detected": 11,
	"estimation_method": "estimated",
	"error_margin": 2,
	"detections": [
		{
			"label": "solar_array_region",
			"confidence": 0.84,
			"bbox": {
				"x1": 340,
				"y1": 615,
				"x2": 528,
				"y2": 691,
				"width": 188,
				"height": 76
			}
		}
	]
}
```

{% endtab %}

{% tab title="400: Bad Request Unsuccessful response" %}
`postcode` or `housenumber` missing/empty.
{% endtab %}

{% tab title="404 Not Found" %}
Could not fetch any satellite imagery for the resolved address (all sources in the fallback chain failed).
{% endtab %}

{% tab title="500: Internal Server Error Service is not available and/or down" %}
Database connection not established, or the annotated image failed to upload to S3.
{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.altum.ai/english/sustainability/solar-panel-detection-api/authentication-input-and-response.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
