API / 401: Unauthorized

Hi there,
I set up the API in the configuration.yml:
http:
api_password: YOUR_PASSWORD

Then i tried to access the API using POSTMAN or curl with the following calls:
http://192.168.1.36:8123/api/?Authorization=YOUR_PASSWORD&Content-Type=application/json

http://192.168.1.36:8123 is the host of my HASS frontend. And it’s working.

I read several times https://developers.home-assistant.io/docs/en/external_api_rest.html but I can’t manage to make it working.

Do you have any ideas ?

I have the same problem, I always get the 401 Unauthorized message at API call.
Do you have any news or solution?

1 Like