Validate new cPanel account username

This function checks for username conflicts during account creation.

SecurityBasicAuth
Request
query Parameters
user
required
string

The account that you wish to create.

Example: user=username
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
get/verify_new_username
Request samples
whmapi1 --output=jsonpretty \
  verify_new_username \
  user='username'
Response samples
application/json
{
  • "metadata": {
    • "command": "verify_new_username",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}