How to Give Access Control List (ACL) privileges to API tokens?


API tokens allow you to log in to the server without password. You can use an API token to authenticate with WHM’s remote API. You cannot create an API token for a suspended account.

You can create new remote access key in WHM by using the following procedure.

1)Login to your whm

2)Click on Manage API Tokens

Name : The API token’s name.
Created :Time that you created the API token, in the MM DD YYYY hh:mm:ss format.
Actions :

Edit — Edit the API token.
Revoke — Rmove the API token.

3)To generate a new key, click on Generate API Token.

4) Give privilledge and Save.

5)You successfully created the API token “test”.

Copy the following token to a safe place:

To search for an API token, enter a term in the Search text box. The interface automatically filters the API token names as you type

Edit an API token

To edit an API token, perform the following steps:

1.Under the Actions column, click Edit. The Edit API Token form will appear.
2.Change the API token’s name, ACL privileges, or both, and click Save. A success message will appear in the upper-right corner of the interface.

Revoke an API token

1.Under the Actions column, click Revoke. A confirmation message will appear.
2.Click Continue to revoke the token. A success message will appear in the upper-right corner of the interface.

To revoke all of your account’s API tokens, click the gear icon and click Revoke All.

Important Note :

If you change a cPanel account’s username in WHM and any API tokens associated with that account will continue to function.If you delete a cPanel account, the system automatically revokes the account’s API tokens.