Skip to main content
We are aware of an issue with a recent Apache update that causes proxied sites to return a "421 Misdirected Request" error. Please see the following article for more information and updates:
Websites show 421 Misdirected Request error while using EA Nginx

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

Comments

2 comments

  • 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 https://api.docs.cpanel.net/openapi/whm/operation/saveacllist/
    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).
    0
  • Yuriy Revido
    Ohh thank you again, yep, you got me right alt="">https://web.telegram.org/a/img-apple-64/1f64f.png
    alt="">https://web.telegram.org/a/img-apple-64/1f64f.png
    0

Please sign in to leave a comment.