This step-by-step guide will walk you through creating an API Token with root access. Proceed with caution and only provide this token to trusted interfaces. Treat it with the same security you would your server's root password.
To create an API token:
- Log into WHM as the root user
- Navigate to the WHM >> Manage API Tokens interface
- Click the blue "Generate Token" button
- Type in a name for your API token
- Scroll to the bottom of the page, and enable the "Everything - All Features" checkbox (this enables root-level access for the API token)
- Click "Save"
You have now created a root-level API token.
Manage API Tokens [Interface] in WHM (cPanel Docs)
Guide to API Authentication - API Tokens in WHM (cPanel Developer Documentation)