How to Generate an API Token in WHM – Secure Access Guide

November 17, 2025
1395 views

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.

Note: Treat your API token like a password. Anyone with access can perform actions based on the permissions granted.

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.

Was this answer helpful?

34 Users Found This Useful (114 Votes)

Comments