Using v-generate-api-key in Example code

First of all you should never use v-generate-api key it will be phased out soon as it provides the same security as admin / password.

If you want to “create” an api key make sure to create the new access key. With the correct settings. If needed you can add your own permissions sets in /usr/local/hestia/data/api/

What kind of access key did you create in case of the “*” where everything is allowed it only works on “admin” user not on “any” user with admin permissions

Check /var/log/hestia/auth.log for more details