An exposed WHM API token should be revoked promptly because it can authorise server or reseller actions independently of a normal browser session. Preserve evidence while removing the compromised credential.
IN THIS ARTICLE
Prepare for the change
Identify the token owner, name, creation time and integrations using it. Capture relevant access logs and the suspected exposure location without copying the secret into another public system.
01 Revoke an exposed WHM API token and audit its use
- Open Manage API Tokens under the appropriate WHM identity and locate the exact compromised token.
- Choose Revoke and confirm. If the scope of exposure includes multiple tokens, assess each rather than assuming a password change invalidates them.
- Check affected integrations and create narrowly permitted replacement credentials only after their configuration and secret storage are secure.
- Review authorised logs and account changes for the exposure period, including account creation, password changes, sessions and new tokens where relevant.
- Remove the exposed value from code or logs using the appropriate repository and incident process. Keep the revoked token revoked even if the visible copy is later deleted.
Confirm the expected result
The exposed token should fail new authentication attempts, while approved integrations recover through newly secured credentials. Document what was checked and any suspicious changes requiring further investigation.
If the change does not work
Revocation interrupts every consumer sharing that token. A single token per integration simplifies containment. If unauthorised activity continues, examine other credentials and persistence rather than repeatedly replacing only the same token.
Does renaming the account invalidate its token?
No. cPanel documents that tokens can continue working after an account username changes. Explicitly revoke the credential when access must end.