Error While integrating WHM using cPanel API

manigandan

Member
Nov 12, 2010
7
0
51
Hi All,

i'm getting the following error while creating a new account in the WHM of my server using cPanel API. The error is

Array ( [data] => Array ( [reason] => Access denied [result] => 0 ) [type] => text )

Can anyone help me to solve this. Please suggest me the as i am a new user in cPanel.
:confused::confused::confused:
Thanks&Regards,
Manigandan T A
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Hello Manigandan,

Would you be able to provide the call being used that is generating the error message for new account creation? Also, are you ensuring to authenticate the root user's login when doing the API call?

Thanks.
 

MattDees

Well-Known Member
Apr 29, 2005
416
1
243
Houston, TX
cPanel Access Level
Root Administrator
This message means that your access credentials are incorrect. Are you using the xmlapi php class?

If so, please verify that you are passing in the correct credentials for querying WHM (root or reseller username, correct access hash or password.

If you would like, you can provide us code and auth information in a ticket at http://tickets.cpanel.net/submit
 

manigandan

Member
Nov 12, 2010
7
0
51
hi,

i have already told you that i am able to create accounts in another servers with the same api query. Only this server shows the error as "access denied". Should i make any changes in the cPanel or WHM of the particular server.

Thanks&Regards,
Manigandan T A:confused:
 

MattDees

Well-Known Member
Apr 29, 2005
416
1
243
Houston, TX
cPanel Access Level
Root Administrator
Please open a ticket at tickets.cpanel.net/submit

The only time I have seen "Access Denied" is with incorrect credentials. Without taking a closer look, there is not a lot I can do for you.