# Authentication, input and response

## Get suggestions of real estate objects addresses from Altum AI.

<mark style="color:blue;">`GET`</mark> `https://api.altum.ai/autosuggest/v2?search={string}`

This endpoint allows you to get five (5) suggestions based on your query parameters. It needs at least one (1) character and responds with the best suggestions.

#### Query Parameters

| Name                                     | Type    | Description                                                                                                                                                                                                                       |
| ---------------------------------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| fuzzy                                    | boolean | Whether you need fuzzy results or not. This could be True, 1 or yes.                                                                                                                                                              |
| search<mark style="color:red;">\*</mark> | string  | Postcode, House Number, House Number Additions and Streetnames can be passed as queries, using the search parameter.                                                                                                              |
| limit                                    | int     | Maximum number of suggestions in response. Default(5)                                                                                                                                                                             |
| offset                                   | int     | <p>Integer used for pagination that shows number of items to skip from the start of the intended response.<br>For example, an offset of <code>10</code> means “ignore the first 10 records and return everything after that.”</p> |

#### Headers

| Name                                        | Type   | Description                                                                  |
| ------------------------------------------- | ------ | ---------------------------------------------------------------------------- |
| Content-Type                                | string | application/json                                                             |
| x-api-key<mark style="color:red;">\*</mark> | string | Unique API Key from Altum. Create one via Mopsus (<https://mopsus.altum.ai>) |

{% tabs %}
{% tab title="200: OK Successful" %}

```
[
	{
		"bagid": "0114010000295134",
		"houseaddress": "7887VD-11-",
		"postcode": "7887VD",
		"housenumber": "11",
		"houseaddition": null,
		"street": "Amsterdamscheveldlaan",
		"city": "Erica",
		"province": "Drenthe"
	},
	{
		"bagid": "1708010000017631",
		"houseaddress": "8338KC-6-",
		"postcode": "8338KC",
		"housenumber": "6",
		"houseaddition": null,
		"street": "Amsterdamselaan",
		"city": "Willemsoord",
		"province": "Overijssel"
	},
	{
		"bagid": "0424010000000631",
		"houseaddress": "1398BL-1-",
		"postcode": "1398BL",
		"housenumber": "1",
		"houseaddition": null,
		"street": "Amsterdamsepoort",
		"city": "Muiden",
		"province": "Noord-Holland"
	},
	{
		"bagid": "0114010000386075",
		"houseaddress": "7887VD-10-",
		"postcode": "7887VD",
		"housenumber": "10",
		"houseaddition": null,
		"street": "Amsterdamscheveldlaan",
		"city": "Erica",
		"province": "Drenthe"
	},
	{
		"bagid": "1708010000015107",
		"houseaddress": "8338KC-4-",
		"postcode": "8338KC",
		"housenumber": "4",
		"houseaddition": null,
		"street": "Amsterdamselaan",
		"city": "Willemsoord",
		"province": "Overijssel"
	},
	{
		"bagid": "1708010000010998",
		"houseaddress": "8338KC-2-",
		"postcode": "8338KC",
		"housenumber": "2",
		"houseaddition": null,
		"street": "Amsterdamselaan",
		"city": "Willemsoord",
		"province": "Overijssel"
	},
	{
		"bagid": "0114010000385731",
		"houseaddress": "7887VD-1-",
		"postcode": "7887VD",
		"housenumber": "1",
		"houseaddition": null,
		"street": "Amsterdamscheveldlaan",
		"city": "Erica",
		"province": "Drenthe"
	},
	{
		"bagid": "0114010000302108",
		"houseaddress": "7887VD-9-",
		"postcode": "7887VD",
		"housenumber": "9",
		"houseaddition": null,
		"street": "Amsterdamscheveldlaan",
		"city": "Erica",
		"province": "Drenthe"
	},
	{
		"bagid": "0034010000089763",
		"houseaddress": "1324RL-1-B",
		"postcode": "1324RL",
		"housenumber": "1",
		"houseaddition": "B",
		"street": "Amsterdamweg",
		"city": "Almere",
		"province": "Flevoland"
	},
	{
		"bagid": "0034010000004792",
		"houseaddress": "1324RR-46-",
		"postcode": "1324RR",
		"housenumber": "46",
		"houseaddition": null,
		"street": "Amsterdamweg",
		"city": "Almere",
		"province": "Flevoland"
	},
	{
		"bagid": "0034010000004820",
		"houseaddress": "1324RS-64-",
		"postcode": "1324RS",
		"housenumber": "64",
		"houseaddition": null,
		"street": "Amsterdamweg",
		"city": "Almere",
		"province": "Flevoland"
	},
	{
		"bagid": "0034010000004823",
		"houseaddress": "1324RS-58-",
		"postcode": "1324RS",
		"housenumber": "58",
		"houseaddition": null,
		"street": "Amsterdamweg",
		"city": "Almere",
		"province": "Flevoland"
	},
	{
		"bagid": "0034010000006470",
		"houseaddress": "1324RP-6-",
		"postcode": "1324RP",
		"housenumber": "6",
		"houseaddition": null,
		"street": "Amsterdamweg",
		"city": "Almere",
		"province": "Flevoland"
	},
	{
		"bagid": "0034010000037639",
		"houseaddress": "1324RL-11-",
		"postcode": "1324RL",
		"housenumber": "11",
		"houseaddition": null,
		"street": "Amsterdamweg",
		"city": "Almere",
		"province": "Flevoland"
	},
	{
		"bagid": "0034010000004818",
		"houseaddress": "1324RS-68-",
		"postcode": "1324RS",
		"housenumber": "68",
		"houseaddition": null,
		"street": "Amsterdamweg",
		"city": "Almere",
		"province": "Flevoland"
	}
]
```

{% endtab %}

{% tab title="400: Bad Request Unsuccessful response" %}

```
{
    "Output": "Could not find any object with your search query"
}
```

{% endtab %}

{% tab title="422: Unprocessable Entity Wrong input format" %}

```
{
    "errors": {
        "postcode": "Unsupported postcode length, it should be six."
    },
    "message": "Input payload validation failed"
}

OR

{
    "errors": {
        "postcode": "Unsupported postcode format, it should consist of four numbers following by two letters."
    },
    "message": "Input payload validation failed"
}
```

{% endtab %}

{% tab title="500: Internal Server Error Service is not available and/or down" %}

```
{
	"message": "Internal server error"
}
```

{% endtab %}

{% tab title="403: Forbidden Forbidden" %}

```
{
	"message": "Missing Authentication Token"
}
```

{% endtab %}

{% tab title="401: Unauthorized No access" %}

```
{
    'Output': 'Please use https://api.altum.ai or visit https://mopsus.altum.ai to make your request.'
}
```

{% endtab %}

{% tab title="429: Too Many Requests API key limit exceeded" %}

{% endtab %}
{% endtabs %}

{% hint style="info" %}
**Turn on** fuzzy to support multi string queries. Learn more about fuzzy search support [here](https://app.gitbook.com/o/pLuAKZrbll04y6968KwP/s/-Lw4gk5ARKsgVHFCdPZw/~/changes/725/apis/auto-suggest-api/fuzzy-search-support).
{% endhint %}

## Request query

#### Example request

```
https://api.altum.ai/autosuggest/v2?search=1181TV
https://api.altum.ai/autosuggest/v2?search=3947BA-1-b
https://api.altum.ai/autosuggest/v2?search=bellefleurho5&fuzzy=1
https://api.altum.ai/autosuggest/v2?search=bellefleurho%205&fuzzy=yes
https://api.altum.ai/autosuggest/v2?search=bellefleurho%205&fuzzy=true&limit=5
```

Spaces need to be inputted as `%20`


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.altum.ai/english/property-data/auto-suggest-api/authentication-input-and-response.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
