Insights API (v1)

Download OpenAPI specification:

Introduction

The Insights API provides endpoints to retrieve real estate and property-related documents using Alma Property Insights service. It enables users to configure agency settings, validate realty identifiers and place document orders.

Contact

If you have any questions, comments or feedback regarding our APIs, please contact developer@ovipro.fi.

Agency configuration

Used to get and set agency configuration for Insights API.

Get Insights API configuration

Returns the current configuration for the agency office.

Authorizations:
bearerAuth
query Parameters
agencyOfficeId
required
string
Example: agencyOfficeId=161f90cc-90f7-4e43-b4ad-a09b4f02689c

ID of the agency to get configuration for.

header Parameters
Request-ID
required
string <uuid>
Example: 9031d1c5-7d40-41dd-b2b8-7919a2fc4fe9

A unique id which identifies the HTTP request. The value of this header must be created by the client. This identifier is used for troubleshooting purposes.

Responses

Response samples

Content type
application/json
{
  • "agencyOfficeId": "161f90cc-90f7-4e43-b4ad-a09b4f02689c",
  • "isTokenConfigured": true,
  • "configuration": {
    }
}

Set Insights API configuration

Sets the configuration for accessing the Insights API. Configuration can be set at agency office, customer, or customer group level.

Authorizations:
bearerAuth
header Parameters
Request-ID
required
string <uuid>
Example: 9031d1c5-7d40-41dd-b2b8-7919a2fc4fe9

A unique id which identifies the HTTP request. The value of this header must be created by the client. This identifier is used for troubleshooting purposes.

Request Body schema: application/json
required
One of
token
required
string

Secret token to authenticate to Insights API.

agencyOfficeId
required
string <uuid>

ID of the agency to set configuration for.

Responses

Request samples

Content type
application/json
Example
{
  • "token": "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQC4v4kkS68+Iin6\n",
  • "agencyOfficeId": "161f90cc-90f7-4e43-b4ad-a09b4f02689c"
}

Response samples

Content type
application/json
{ }

Realty identification

Used to check if the given realty identification is valid.

Get housing companies

Returns a list of housing companies and their business identifiers matching the given name.

Authorizations:
bearerAuth
query Parameters
housingCompanyName
required
string non-empty
Example: housingCompanyName=Asunto Oy Esimerkki

Partial or full name of the housing company to search for.

header Parameters
Request-ID
required
string <uuid>
Example: 9031d1c5-7d40-41dd-b2b8-7919a2fc4fe9

A unique id which identifies the HTTP request. The value of this header must be created by the client. This identifier is used for troubleshooting purposes.

Responses

Response samples

Content type
application/json
{
  • "housingCompanies": [
    ]
}

Get share group identifiers

Returns a list of share group identifiers for the given housing company.

Authorizations:
bearerAuth
query Parameters
businessId
required
string^[0-9]{7}-[0-9]$
Example: businessId=1234567-8

Business ID (Y-tunnus) of the housing company.

header Parameters
Request-ID
required
string <uuid>
Example: 9031d1c5-7d40-41dd-b2b8-7919a2fc4fe9

A unique id which identifies the HTTP request. The value of this header must be created by the client. This identifier is used for troubleshooting purposes.

Responses

Response samples

Content type
application/json
{
  • "shareGroupIdentifiers": [
    ]
}

Get property identifier

Returns property identifier (kiinteistötunnus) for the given address. Street names and municipality names can be provided in either Finnish or Swedish.

Authorizations:
bearerAuth
query Parameters
streetName
required
string non-empty
Example: streetName=Esimerkkikatu

Name of the street (can be in Finnish or Swedish).

streetNumber
string
Example: streetNumber=1

Street number.

municipalityName
required
string non-empty
Example: municipalityName=Helsinki

Name of the municipality (can be in Finnish or Swedish).

header Parameters
Request-ID
required
string <uuid>
Example: 9031d1c5-7d40-41dd-b2b8-7919a2fc4fe9

A unique id which identifies the HTTP request. The value of this header must be created by the client. This identifier is used for troubleshooting purposes.

Responses

Response samples

Content type
application/json
{
  • "propertyIdentifiers": [
    ]
}

Document orders

Used to create PDF orders for documents that are availaible in Alma Property Insights.

Get document orders

Returns a list of document orders.

Authorizations:
bearerAuth
query Parameters
ownerCode
required
string
Enum: "REALTY" "ASSIGNMENT"
Example: ownerCode=REALTY

Owner code of the entity for which the document orders are requested.

ownerEntityId
required
string <uuid>
Example: ownerEntityId=d6d8d138-4aea-4cd3-8b6e-1a9e45bb409f

PublicId of the owner entity for which the document orders are requested.

startIndex
integer <int32> >= 0
Default: 0

Paginate returned documents starting from this index. Index starts from 0. example: 20

size
integer <int32> [ 1 .. 200 ]
Default: 100
header Parameters
Request-ID
required
string <uuid>
Example: 9031d1c5-7d40-41dd-b2b8-7919a2fc4fe9

A unique id which identifies the HTTP request. The value of this header must be created by the client. This identifier is used for troubleshooting purposes.

Responses

Response samples

Content type
application/json
{
  • "documentOrders": [
    ],
  • "totalCount": 2
}

Create a new document order

Creates a new document order for the specified realty from Alma Property Insights.

Authorizations:
bearerAuth
header Parameters
Request-ID
required
string <uuid>
Example: 9031d1c5-7d40-41dd-b2b8-7919a2fc4fe9

A unique id which identifies the HTTP request. The value of this header must be created by the client. This identifier is used for troubleshooting purposes.

Request Body schema: application/json
required
orderedFor
required
string <uuid>

PublicId of the business user for whom the document is being ordered.

required
object

Identification of the entity for which the documents will be saved.

required
Array of PropertyDocumentByPropertyId (object) or PropertyDocumentByFacilityId (object) or PropertyDocumentByParcelCode (object) or ShareDocumentForHousingCompany (object) or ShareDocumentForShareGroup (object) (Document) non-empty unique

List of documents to order.

Responses

Request samples

Content type
application/json
{
  • "orderedFor": "cd1c227b-38b4-4f64-9e3a-c00f429a57ae",
  • "ownerEntity": {
    },
  • "documents": [
    ]
}

Response samples

Content type
application/json
{
  • "documentOrderId": "d6d8d138-4aea-4cd3-8b6e-1a9e45bb409f"
}