How to Revoke an API Token in WHM?

By on October 24th, 2018

How to Revoke an API Token in WHM?

In cPanel & WHM, Manage API token is the feature which allows us to log in to the server without the need for a password. We can use an API token to authenticate with WHM’s remote API. If you want to allow a reseller or third-party developer to run API function calls with your account’s data, this API token feature is very much helpful in this case. But we cannot create an API token for a suspended account. One of the main advantages of this feature is that if you change at any cPanel account’s username in WHM, any API tokens associated with that account will continue to function.  However, we can also revoke the settings whenever we wish to revoke the API token. In this documentation, we have discussed about how to revoke an API token.

1) Login to WHM panel with username and password.

2) Go to “Development” option.

Revoke API Token

 

3) Select the option “Manage API” Tokens.

Revoke API Token

 

4) In order to revoke an API token, first, you would need to locate the API token that you want to revoke in the API Tokens list. To search for an API token, enter a name in the Search text box. This will automatically filter the API token names.

Revoke API Token

 

5) You can revoke the API token from the list by selecting the “Revoke” option near the API you wish to revoke. Revoke option is always under the Actions column.

Revoke API Token

 

6)  After choosing the revoke option, a confirmation message will appear to confirm that you really want to revoke that API. Click Continue to revoke the token.

Once the API has revoked, a message of success will appear in the upper-right corner of the interface.

 

If you need any further assistance please contact our support department.

 

 

Leave a Reply