Unable to access HA API using long lived token and CURL

After upgrading to 101.1, I’m unable to make a request to the HA API using a Curl command. Getting a 401: Unauthorized

I am using a long lived token in my request.

curl -X POST -H "Bearer: long_lived_token" -H "Content-Type: application/json" -d '{"entity_id":"input_boolean.download_complete"}' ""

My auth provider config:

    - type: homeassistant
    - type: trusted_networks

According to the release notes, they have made some changes relating to auth providers. But it’s not clear what I need to change to get this working.

Anyone else have a similar issue? or point me in the right direction?


Does this help?

Perhaps “Authorization” is missing from your header. -H 'Authorization: Bearer ABCDEFGH'

Thanks for the hint. That did the trick.