[401: Unauthorized] UniFi cameras thumbnail and videos

I have 2 URLs generated according to documentation:

I have 2 URLs generated:

http://homeassistant.lan:8123/api/unifiprotect/thumbnail/CENSOREDV18PCK13VT/CENSOREDce903e4473775
http://homeassistant.lan:8123/api/unifiprotect/video/CENSORED8P52V18PCK13VT/CENSOREDce903e4473775

Each of them give me 401: Unauthorized when open the URL.

logs:

  • Login attempt or request with invalid authentication from XXX (192.168.YYY). Requested URL: ‘/api/unifiprotect/thumbnail/CENSORED8PCK13VT/CENSOREDce903e4473775’. (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36)