Control Web Panel
Developers => CWP API => Topic started by: joeey on August 05, 2025, 10:54:47 PM
-
I've been trying to create an account from my hosting portal with the credentials given from cwp api docs;
curl -X POST https://your-host:2304/v1/account \
-d "key=your_api_key" \
-d "action=add" \
-d "domain=example.com" \
-d "user=testuser" \
-d "pass=StrongPass123!" \
-d "email=user@example.com" \
-d "package=default" \
Everything is correct because i can successfully list user accounts and also packages but trying to create account always shows;
"status": "Error",
"msj": "Check All Fields (only lower caps are allowed and no special characters or empty spaces..."
I've checked and no special characters or empty spaces in my credentials. I'd be happy to get any help on this. Thanks
-
I'm not an expert in the API.
But I know the username when created by the API HAS to be 6-8, no more and all lower case letters only for the username.
NO numbers or special characters.
-
Thanks Stardust. My test credentials are not more than 8 in both username and password and only small letters. I feel probably it has something to do with my OS version? I know I had to make some changes in the cwp files for some of my other features like user account login to work. I know this works out of the box with cent OS7. Well, I'll keep searching. Thanks anyways.
-
I know the API works with AlmaLinux 9 and Blesta 5.11.4
-
Check CWP logs to investigate the problem. The log files are located in:
/usr/local/cwpsrv/logs/
/usr/local/cwp/php71/var/log/