Skip to main content

Building a API based Frontend

Comments

8 comments

  • cPanelTJ
    Yes, this is possible. The cPanel UI is completely driven by the API, so every front end function has an API to control it. If your custom frontend is on a remote server, then you'd need to create one or more cPanel API Tokens for each cPanel account upon creation to manage access. You'll want to use cPanel UAPI and cPanel API 2, depending on the functionality you're trying to re-create.
    0
  • jwhm
    Okay, Great, so I want to automate this process so that I don't have to be involved. Would it be possible to automatically generate the API access for each user account upon creation through WHM/ WHMCS?
    0
  • cPRex Jurassic Moderator
    How about a post-account creation hook that sets up the token? Is that what you're looking for?
    0
  • jwhm
    I can only access WHM/cPanel, the product I am using currently only asks for a WHM API key, and allows customers through my WHMCS installation to add email accounts, domains, etc to their cPanel, through that WHM key, how can I achieve that?
    0
  • cPRex Jurassic Moderator
    Hmmm...what about this?
    0
  • jwhm
    I have an existing user base of 300 plus customers, I couldn"t go back through them and generate individual API keys, I"d need to be able to do it either on the fly or through WHMs api key.
    0
  • cPRex Jurassic Moderator
    I don't have any other suggestions on my end, but another user may let us know if they've run into a similar situation in the past.
    0
  • jwhm
    Can you not access a cPanel account through WHM?
    0

Please sign in to leave a comment.