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"}' "http://192.168.1.11:8123/api/services/input_boolean/turn_on"

My auth provider config:

homeassistant:
  auth_providers:
    - type: homeassistant
    - type: trusted_networks
      trusted_networks:
        - 127.0.0.1
        - 192.168.1.0/24
        - 172.17.0.0/24

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?

Thanks.

Does this help?

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

Thanks for the hint. That did the trick.