Homey Community Forum

Authenticaton Bearer Token local web api


#1

Hello,

I am trying to connect to the local web api (http://LOCAL-IP/api/manager/devices/device/) to retrieve some data and I have seen several posts that the api uses “Bearer Token” for authentication.

So first off, is this still the correct way for api authentication after upgrading to v2.0? If so, where can I find my “Bearer Token” ?

Thanks for all help :wink:


#2

use chrome or firefox
goto homey developer site. (https://developer.athom.com/)
goto tools menu on the left


press f12 for developer console in browser
in homey developer click devices in the left menu and look for the second get in the browsers developers screen.
look for headers on the right and authorization in the right middle

there is your bearer (very long string)


#3

Or use these: https://developer.athom.com/api/projects


#4

client secret is not the bearer code
client id your homey id as in https://homey-id.connect.athom.com