I just changed the key below...
The user is in /etc/passwd after run the code, even with error messages shown in figure. I can connect to ftp using the user, but the user is not listed in cwp accounts in "list accounts".
<?php
$data = array(
"key" => 'mykey',
"action"=>'add',
"domain"=>'valiati5.com.br',
"user"=>'valiati5',
"pass"=>'32165487Ds821',
"email"=>'daniels@valiati5.com.br',
"package"=>'default',
"inode"=>0,
"limit_nproc"=>40,
"limit_nofile"=>100,
"server_ips"=>'177.53.142.39'
);
$url = "
https://177.53.142.39:2304/v1/account";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt ($ch, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt ($ch, CURLOPT_POST, 1);
$response = curl_exec($ch);
curl_close($ch);
echo '<pre>';
print_r($response);
echo '</pre>';