Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Sep 2003
    Posts
    50

    Default WHM XML API authentication

    Hi,

    Am I right in thinking that the only way to authenticate when using the XML API is to send the root username and password? Assuming you want root privileges for your commands of course.

    Is there anything in place to use either an API key or a pre-encrypted password?

    Thanks
    Jamie

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by JamieD View Post
    Hi,

    Am I right in thinking that the only way to authenticate when using the XML API is to send the root username and password? Assuming you want root privileges for your commands of course.

    Is there anything in place to use either an API key or a pre-encrypted password?

    Thanks
    Jamie
    There are two methods of authentication: user/pass and user/hash. The user can be root or any reseller account. All API commands will be processed with the privileges available to that user. So if you login as root, you will have root privileges.

    To access the hash (also called the remote access key), go to the WHM interface and in the "Cluster/Remote Access" section click on "Setup Remote Access Key."

    Here's a link to some sample code using the user/hash method of authenticating to the API: http://forums.cpanel.net/showpost.ph...38&postcount=6

  3. #3
    Member
    Join Date
    Sep 2003
    Posts
    50

    Default

    Thanks David, works great.

Similar Threads & Tags
Similar threads

  1. is XML/JSON-API available only to WHM accounts?
    By eschminke in forum cPanel Developers
    Replies: 6
    Last Post: 12-02-2011, 03:35 PM
  2. WHM XML API Question
    By sirbrent in forum cPanel Developers
    Replies: 1
    Last Post: 01-03-2011, 07:23 PM
  3. Starting With WHM XML API?
    By azoundria in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-02-2010, 02:02 AM
  4. Whm xml api
    By GMS Hosting Pro in forum New User Questions
    Replies: 0
    Last Post: 12-24-2009, 06:43 AM
  5. WHM XML-API using C# - Help
    By serverportugal in forum cPanel Developers
    Replies: 1
    Last Post: 01-18-2009, 06:28 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube