Authentication via Ebeco Connect

Here’s how to authenticate via Ebeco Connect and the Open API.

Authentication

Authentication to Ebeco's API is done using a Bearer Token which is acquired from /api/TokenAuth/Authenticate. Usernames and passwords are the same as used in the Ebeco Connect app. In the examples below we use Postman for requests.

The Abp.TenantId parameter should always be passed in the Header and set to 1.

Open API Headers

Username and password is then sent as a POST request to /api/TokenAuth/Authenticate.
 

Open API Post

The accessToken parameter returned in the response is then used to authenticate to the Ebeco API.
 

Example:

Open API Post Access

We send a GET request to /api/services/app/Devices/GetUserDevices and authenticate the header with "Bearer <accessToken>". A JSON list of the logged in user’s thermostats is returned.