Skip to main content

Can't create user API token using WHM/cPanel API

Comments

6 comments

  • cPanelThomas
    While I'm not immediately sure of why this might be failing for you, there's certainly another option for generating this token. Have you tried executing this cPanel API call via WHM's API?
    0
  • Yuriy Revido
    While I'm not immediately sure of why this might be failing for you, there's certainly another option for generating this token. Have you tried executing this cPanel API call via WHM's API?
    0
  • cPanelThomas
    I did have a link for the relevant API docs in my earlier reply, but it did format it in a way that maybe led you to not click on it? Here it is without the (bad) preview: https://api.docs.cpanel.net/whm/use-whm-api-to-call-cpanel-api-and-uapi/
    0
  • Yuriy Revido
    Thank you Thomas, that worked :)
    0
  • Yuriy Revido
    Hey all, hey Thomas! Thanks again for the previous reply, cPanel tokens are being generated correctly Now got stuck with the Token creation but on the WHM level :( Can you advise please on how to generate that token before the WHM is created? But let me explain in more detailed first. We're actually creating cPanel account under WHM level (using 'createacct' API) with the "reseller" privileges so that WHM account has been created automatically (if I understand that correctly). And then we need to generate an API token to use regular WHM API endpoints for that account, but I don't understand what auth parameters I should use. "cp_security_token" token doesn't work either And the same for WHM ROOT API token. Is this possible to generate both with that type of WHM?
    0
  • Yuriy Revido
    Still relevant, I created a
    0

Please sign in to leave a comment.