You can create an API token to allow applications or scripts to interact with your WHM reseller account securely. This process allows you to perform administrative tasks without sharing your primary account password.
Before you begin
You will need:
A WHM reseller account
Access to the WHM interface
Create your API token
Log in to your WHM account.
In the left-hand sidebar, go to Security Center > Manage API Tokens.
Click Create New Token.
Enter a name for the token to identify its purpose (e.g., "Reporting Tool" or "Automation Script").
Select the appropriate permissions for the token.
Click Create.
Warning: Your API token is a sensitive security credential. Anyone with access to this token can perform actions on your behalf based on the permissions you assigned.
Confirm the result
A success message will appear confirming the token was created.
The new token will be displayed on the screen.
Note: You must copy and save the token immediately. For security reasons, the full token value will not be shown again once you leave this page.
How to Revoke an API Token for Your WHM Reseller Account
If a token is no longer needed or if it has been compromised, you can revoke it to prevent unauthorized access.
In WHM, go to Security Center > Manage API Tokens.
Locate the token you wish to remove.
Click the Revoke button next to that token.
Limitations
The permissions available for your API token are determined by the privileges granted to your account by the server administrator. If certain options are unavailable, your account may have restricted permissions.
