Generating an API token in WHM allows secure programmatic access to your server without using your root password. TZSMM Host walks you through the steps to create a token safely.
Step 1: Log in to WHM
Open your WHM panel via https://your_server_ip:2087 or https://your_server_hostname:2087 and log in with your root credentials.
Step 2: Go to Manage API Tokens
In the WHM dashboard, search for Manage API Tokens in the search bar or navigate to Development > Manage API Tokens.
Step 3: Create a New API Token
Click the Create button. Enter a descriptive name for your token, such as WHMCS Integration or Automation Script.
Step 4: Set Permissions
Select the permissions required for your API token. Only grant access necessary for the tasks you intend to perform, such as account creation, DNS management, or server statistics.
Step 5: Save and Copy Your Token
Click Create to generate the token. WHM will display the token once — copy it immediately and store it securely. You won’t be able to see it again.
Conclusion
API tokens in WHM provide secure and convenient access for automation, scripts, or WHMCS integration. Always assign minimal required permissions and keep the token private for your server’s security.
