API

Getting started

With an API (Application Programming Interface), you can easily connect programs or develop your own extensions. At the bottom of this page, you will find all available commands.

Our API is available for paying users.

Enable or disable the API

You can enable the API in the Powertools. After logging in, you can test the commands before using them in your own app.

The API is disabled by default for accounts created through our platform or through partners such as Google. For accounts created through an external app, the API is enabled by default.

Register your app

Before you can connect an app, the developer must contact us so that we can assign the app a unique client_id and client_name.

Create or connect your account

The app can simply provide a button. The user will be shown our login screen, asking whether they want to connect an existing account or create a new one

The rest of the process takes place automatically between the app and our platform.

The app developers must set up the necessary communication channels between our platform and their app. First of all, all our API connections go through https://yourbuildingmanager.online/framework/_secured_api_v2.php. We use the OAuth standard for API connections, supplemented by some additional data to ensure the proper functioning of our platform.

The following table provides an overview of the expected data:

NameOriginTypeInfo
Resource Owner (User)OAuthstringThe owner of the account, who has to give consent to the API connection
Client (app)OAuthstringThe third-party application that request access to our platform yourbuildingmanager.online
Authorization ServerOAuthstringThe server that provides the access and issues access tokens to the client. In this case it is the server of yourbuildingmanager.online
Resource Server (API)OAuthstringThe server that will contain/contains the resource owner's data, which will provide access tokens to grant the client access

Phase 1. Authorization Request (Sent to the Authorization Server's /authorize endpoint)

The following table provides an overview of the expected data:

NameOriginTypeInfo
APIactionOur platformstringTells our API what action you want to take
APIactionModesOur platformarrayTells our API what mode of the requested action you want to take
scopeOAuthstringMust be 'OAuth' or 'OpenID'.
response_typeOAuthstringIndicates what you want to receive back.
client_idOAuthstringThe id of your app, received when you register your app with us
redirect_uriOAuthstringThe uri to wich our platform answers to your app. It needs to be identical as the uri registered with us!
code_challengeOAuthstringA cryptographic hash of the code_verifier
code_challenge_methodOAuthstringThe method used to hash the PKCE (Proof Key for Code Exchange) challenge. We use 'S256'
user_nameOur platformstringThe displayed name of this user, used to create a new account with us if desired
user_emailOur platformstringThe email of this user, used to create a new account with us if desired

The app generates a code_verifier, which is converted into a code_challenge using the code_challenge_method 'S256'. This data is stored internally, for example:

{
"code_verifier": "_NC96QvugVljCtNu8o9B8JIsUokGamlEsDh03STwqa0",
"code_challenge": "kJnSpDlgLZ1R97JpwnuE9Fjv_qtUvO_owMl9ZYq2gh4",
"code_challenge_method": "S256",
"state": "0123456789",
}

This data is then sent to the Authorization Server. Note that, in addition to the standard OAuth data, we also request the APIaction, APIactionModes, user_name and user_email, allowing users who do not yet have an account on our platform to create one with a single click:

{
"APIaction": "API.user.connect",
"APIactionModes": ["connectExternalAccount"],
"scope": "read write",
"response_type": "code",
"client_id": "34K0-1LSOCKBLEWMBLWAAPEEEG3BNW",
"redirect_uri": "https://example.com/callback.php",
"state": "0123456789",
"code_challenge": {string},
"code_challenge_method": "S256",
"user_name": "Steve",
"user_email": "steve@domain.com",
}

Phase 2. Authorization Code Callback (Returned to your redirect_uri)

The following table provides an overview of the expected data:

NameOriginTypeInfo
codeOAuthstringThe code will be received after the first reaching out. It is used to create the final connection
stateOAuthstringA random string up to 200 characters generated by your app to prevent Cross-Site Request Forgery (CSRF). It is generated and stored by your app, and echoed back by our platform during security checks.

A 'code' and a 'state' are returned to the client. The client can then verify that the request was received correctly.

{
"code": "3acc87d7164afb449dadc34ab6d5f5",
"state"; "0123456789",
}

Phase 3. Token Exchange Request (Sent via back-channel POST to /token)

The following table provides an overview of the expected data:

NameOriginTypeInfo
APIactionOur platformstringTells our API what action you want to take
APIactionModesOur platformarrayTells our API what mode of the requested action you want to take
client_idOAuthstringThe id of your app, received when you register your app with us
grant_typeOAuthstringMust be set to 'authorization_code'
codeOAuthstringThe code will be received after the first reaching out. It is used to create the final connection
code_verifierOAuthstringA code stored within your app. It is used to check the retrieved answer
redirect_uriOAuthstringThe uri to wich our platform answers to your app. It needs to be identical as the uri registered with us!

Next, send the following data to our platform:

{
"APIaction": "api.user.connect",
"APIactionModes": ["APItokenExchange"],
"client_id": "34K0-1LSOCKBLEWMBLWAAPEEEG3BNW",
"grant_type": "authorization_code",
"code": "3acc87d7164afb449dadc34ab6d5f5",
"code_verifier": "_NC96QvugVljCtNu8o9B8JIsUokGamlEsDh03STwqa0",
"redirect_uri": "https://example.com/callback.php",
}

Phase 4. Token Response (Returned as JSON from the Token Endpoint)

The following table provides an overview of the expected data:

NameOriginTypeInfo
access_tokenOAuthstringThis token is valid for 1 hour. If expired, the app has to request a new one via the refresh_token.
expires_inOAuthstringThe lifetime of the access_token in seconds.
refresh_tokenOAuthstringThis token is valid for 90 days. If expired, the user has to re-authenticate.
refresh_token_expires_inOAuthstringThe lifetime of the refresh_token in seconds.
scopeOAuthstringMust be 'OAuth' or 'OpenID'.
messageOur platformstringPossible extra info

In response, you will receive the 'access_code' and the 'refresh_code'. You must include the 'access_code' with every request to our platform in two HTTP headers: HTTP_AUTHORIZATION with 'access_code' as its value, and HTTP_X_API_CLIENT with the value 'external'.

{
"access_token": YJ4TRKO9PLKTK87KA34AKAIK75SA",
"token_type": "Bearer",
"expires_in": 3600,
"refresh_token": "242RG-BNQV9VNWNPPWAVHW-D_WOIBVOSDBSUBES",
"refresh_token_expires_in": 7776000,
"scope": "read write",
"message": "The token is attached to this message.",
}

Phase 5. Refresh Codes

The 'access_code' is valid for one hour. After that, your app needs to obtain a new code using the 'refresh_code'. Use the following command to retrieve a new 'access_code':

{
"APIaction": "api.user.connect",
"APIactionModes": ["APItokenRefresh"],
"client_id": "34K0-1LSOCKBLEWMBLWAAPEEEG3BNW",
"refresh_token": {string},
"redirect_uri": {string},
}

Exchange information

Working with the API is simple. Enable the public API in your account. Then, just send the information below to https://yourbuildingmanager.online/framework/_secured_api_v2.php.

HTTP_AUTHORIZATION = {your 'access_code'}
HTTP_X_API_CLIENT = external

JSON
{
"APIaction": "API.units.retrieve",
"APIactionModes": ["default"],
"client_id": "34K0-1LSOCKBLEWMBLWAAPEEEG3BNW",
[add required variables (see below)],
[add optional variables (see below)],
}

Note the `APIaction` and `APIactionModes`. The action tells our platform what you want to do. The mode tells it which variant you want to execute. Depending on the action and mode, additional data may be required or possible, such as the reference of your building in build_ref. You can add this to the data you send.

Each API action returns a response following the structure below:

JSON
{
"success": true/false (a boolean),
"message": "Returned message" (a string),
"data": ["retrieved data"] (an array),
"link": "link" (a string),
"download_url": "url" (a string),
}

The `success` field indicates whether any errors occurred during processing. The `message` field provides a clear description of what happened. The `data` field contains an array with additional details. In some cases, a `download_url` field will also be included, providing a link to download a specific file.

The examples shown here can be automated within your own programming environment. You can find corresponding examples on SourceForge.

(SourceForge will be updated soon)

Available actions

An AI or agent can learn our API by visiting the technical documentation on the OpenAPI page.

Human-readable documentation is sorted by topic:

Professional tools for building management. For everyone. You're welcome.

We love it when you help spread the word about our quality:


You can also follow us on our channels:



© 2026 SilverLines & Maarten Renckens

May we use analytics cookies to improve our platform?