The use of Access Hash for authenticating API calls was deprecated in version 64 of cPanel & WHM. We strongly suggest using API tokens instead. Access Hash authentication is disabled by default in later versions of cPanel & WHM; however, if Access Hash authentication was previously enabled on your server, you may follow the procedure below to disable Access Hash authentication.
1. Log into WHM.
2. Navigate to Tweak Settings.
3. Search for "Allow deprecated WHM accesshash authentication."
4. Click "Off" to the far right of "Allow deprecated WHM accesshash authentication."
5. Click "Save."
To create an API token, please see:
How to create a Root API Token
How to create a reseller API token