For cPanel & WHM version 64
You can use the
/usr/local/cpanel/scripts/convert_accesshash_to_token script to convert a WHM user's
accesshash key to an API token. You can then use this token to authenticate with WHM.
- When you use this script to convert an
accesshashkey to an API token, the system does not revoke the
- We strongly recommend that you only run this script one time for each user.
For more information about API tokens, read our Manage API Tokens documentation.
To use this script, run the following command as the
In this example,
represents the WHM username for which to convert an
accesshash key to an API token.
If you do not specify a username, this option defaults to the
- You can specify multiple users when you run this script.
/usr/local/cpanel/scripts/convert_accesshash_to_token script accepts the following arguments:
Return a complete list of API tokens that the script generated.
If you do not receive output, the user that you specified does not possess an
Convert all of the system's reseller's
If you use this option, do not include the reseller's username.