Skip to main content

Comments

5 comments

  • cPRex Jurassic Moderator

    Hey there!  I confirmed the example on that page works well after creating a token in cPanel.  Do you see any additional details about that work inside the /usr/local/cpanel/logs/api_log log file?

    0
  • Unnamed User

    In the log I have:

    info [cpaneld] Host: ['XXXX'] HTTP Status: ['403'], User: ['CPANEL_USER'], Token Name: [''], Request: ['POST /execute/Email/add_pop?email=newuser&password=__HIDDEN__ HTTP/1.1']
    info [cpaneld] Host: ['XXXX'] HTTP Status: ['403'], User: ['CPANEL_USER'], Token Name: [''], Request: ['GET /execute/Email/add_pop?email=newuser&password=__HIDDEN__ HTTP/1.1']

     

    0
  • cPRex Jurassic Moderator

    That certainly looks normal - you may need to submit a ticket on this issue so we can do some more advanced troubleshooting directly on the account.

    0
  • Unnamed User

    The problem was that I've created token in different account and didn't spot that..😵.

    Is there a way to limit the privileges?

    0
  • cPRex Jurassic Moderator

    With the UAPI token there isn't a way to limit the privileges - since it is created in cPanel it can be used for anything in the cPanel account.

    0

Please sign in to leave a comment.