Hestia API (v-add-web-domain)

Hi!
In my application, I’m trying to integrate the Hestia API and write a method that will add a domain to the Hestia server.
When I use the ‘v-add-domain’ command in my method, everything works correctly, but shortly after the domain is loaded, I get errors related to the php-fpm library.

I decided to replace the command with ‘v-add-web-domain’ and added an extra argument to restart the server, but when I try to execute the method, it fails with error 10 (Hestia API call error: 10).

I understand this might be a permissions issue, but in the Hestia panel, all possible permissions are set for this access key.

Can you help?