I cannot connect to the hestiacp API in the Hestia panel, I have it enabled for all users. I’m creating my own panel for hosting, but I can’t connect to the API, I get the message “Error: IP is not allowed to connect with API” and I have the machine’s IP address set
Yes 0.0.0.0 works but you open it to the world. You must identify the public ip of your client machine (not the server machine) and add it to the Allowed IP list.
I thought you were trying to use the api from an external machine. For next time, you can look at the nginx log of hestia /var/log/hestia/nginx-access.log and you will see a 401 error where you can see the ip (first field) you are trying to access.