ZABBIX api error

I am having trouble when trying to connect grafana to zabbix using the api.

Using the api key gives me instant error, and using user and password gets stuck in testing conecction.

SOLVED!

Update php on the server using the comands bellow

sudo apt install php8.5-fpm php8.5-mysql php8.5-mbstring php8.5-bcmath php8.5-xml php8.5-gd php8.5-curl php8.5-ldap

sudo a2disconf php8.3-fpm
sudo a2enconf php8.5-fpm

sudo systemctl restart php8.5-fpm apache2

sudo systemctl disable --now php8.3-fpm