if you want to add a server to cyberpanel and you got the unknown error
then you need to check a few things
First of all check if the user you added got access to the api
check the password if it is correct
use a external tool to test out your api, if it fails then check your firewall
you can find more info about the api here