Skip to main content

How to Revoke a WHM API Token for the Root Account

Revoke a WHM API token to immediately invalidate its access to the server's root account. This process ensures that only active, authorized tokens can be used to interact with the WHM API.

Revoke a WHM API token to immediately invalidate its access to the server's root account. This process ensures that only active, authorized tokens can be used to interact with the WHM API.

Before you begin

You will need:

  • Root access to the WHM interface

  • The specific name or identifier of the token you wish to revoke (optional, but helpful for identification)

Revoking a WHM API Token

  1. Log in to WHM.

  2. Navigate to Plugins > Manage API Tokens.

  3. Locate the token you wish to revoke in the list of active tokens.

  4. Click the Revoke button next to the specific token.

  5. Confirm the action when prompted.

Confirm the result

  • The token will no longer appear in the list of active API tokens.

  • Any applications or scripts using the revoked token will no longer be able to authenticate with the WHM API.

Limitations

Revoking a token is permanent. Once a token is revoked, it cannot be "re-enabled." If an application requires access, you must generate a new API token and update the credentials in that application.

Did this answer your question?