cPanel WHM icon

cPanel WHM

Full cPanel WHM API — all 622 operations across Accounts, DNS, Mail, SSL, Backups, Databases and more

Actions262

Account → Create cPanel account

AI-generated

Summary

Create a new cPanel account on a WHM server with specified account settings and options.

Inputs

  • Username (required) — The new account's username, adhering to cPanel username rules (first eight characters must be unique, cannot begin with a number or certain reserved strings).
  • Additional Fields — Optional parameters to customize the account, including domain, password, hosting plan, disk quota, reseller status, email limits, shell access, IP assignment, and various mail and security settings.

Output shape

A single response object containing the WHM API response to the account creation request.

The output includes details of the created cPanel account. Depending on options, it may show the account password if 'Showpass' is set to display. Errors from WHM API are surfaced if account creation fails.

Examples

Example 1: Create a cPanel account with username 'newuser' and a specified domain and password.

Set 'Username' to 'newuser', set 'Domain' to 'example.com', provide a 'Password', and optionally adjust any additional fields to configure features such as quota, reseller privileges, or mail settings.

Links

Discussion