API: Authentication in URL

Hey there,

I would like to use some Home Assistant sensor data in Loxone.

The following bash command gets me to this information using CMD:

curl -X GET -H “Authorization: Bearer TOKEN” http://192.168.0.10:8123/api/states/sensor.temperature

Problem now: In Loxone, I cannot use curl, I need an URL to get the data. Is there somehow a way to get the authentication Bearer Token into the URL so I can get the data this way? Calling http://192.168.0.10:8123/api/states/sensor.temperature gets me an authorization error, obviously :slight_smile:

Any help appreciated!

I’m about 83% sure the answer is no. Or rather it won’t be easy.

The one way I can think of is to write an intermediary script that the Loxone can call with the bearer token in the URL and then have that script rewrite it as a call to HA with the bearer token in the right place and then have the script take the response and send it back to the Loxone. I’d only do that to prove I could. It’s a horrible idea.