api authentication

  1. spaceman

    Where are failed logs stored for invalid API token connection attempts?

    Hi All, I'm experimenting with a cURL API token connection attempt from my local Windows PC to one of our WHM servers. I can see successful connections being logged here, no problem. /usr/local/cpanel/logs/api_tokens_log But when I deliberately make an invalid attempt (e.g. I change the API...
  2. S

    Call account-level API function using server's root password?

    Can I call an account-level API function using the root password? For example: Let's say I have dozens of accounts on the server and I don't know their individual unique account-level passwords, but I know the server's root password. Can I call an account-level API function for a specific...
  3. M

    {"cpanelresult":{"apiversion":"2","error":"Access denied","data":{"reason":"Access denied","result":"0"},"type":"text"}}

    Hi there, I have a Gravity Form on a Wordpress website. The goal is once it is filled out, it will create a cPanel account (along with other things). I'm using gform_confirmation to hook into the form data. Everything is working until I call WHM API 1 - Create an account. Then I get the...
  4. M

    cPanel API Authentication questions

    Hi, I need to generate a security token (cpsess) to be able to use POST requests for cPanel functions. Here: Guide to API Authentication - Developer Documentation - cPanel Documentation It seems methods are for WHM and not cPanel. For example, tested "Username and Password Authentication"...