Skip to main content
cPanel Technical Support has been heavily impacted by hurricane Beryl and our ability to respond to tickets has been hindered as a result. We appreciate your understanding and patience as we address these delays.

How to create WHM/ROOT WHM API token using WHM API



  • cPanelThomas
    Well, if I'm understanding you correctly, you've just created a reseller account in WHM. Presumably that means your script knows the username and password of the reseller you just created. Then it's just a question of: * Making sure the reseller you setup has the correct privileges to create API tokens for itself (as root). See
    and use the acl-manage-api-tokens
    to manage whether the reseller account can create tokens for itself. * Setting up your headers to use Basic
    authentication with the reseller's username and password, then creating the API token (as the reseller).
  • Yuriy Revido
    Ohh thank you again, yep, you got me right alt="">

Please sign in to leave a comment.