Access Denied using API to create account
Hi,
I'm using the following :
I am however getting an Access Denied error returning in the XML. Is this the correct code to create an account via the API? Does anything need to be enabled in WHM to use it? Cheers, Sam
https://example.com:2087/xml-api/createacct?
username=myuser&
plan=basic%20&
ip=n&
cpmod=x3&
password=h@rd2gu3ss!p@ss&
contact%20email=username%20@domain.tld& <-- "contactemail=username@domain.tld"
domain=domain.tld&
useregns=0&
reseller=0I am however getting an Access Denied error returning in the XML. Is this the correct code to create an account via the API? Does anything need to be enabled in WHM to use it? Cheers, Sam
-
Hello :) How are you formulating the URL? It should be on a single line. EX: /json-api/createacct?api.version=1&username=cptest09&domain=cptest09.com&plan=cp123&cpmod=x3&useregns=0&ip=n&reseller=0&password=123%24%24lug%23ge&contactemail=admin%40cptest09.com
Thank you.0
Please sign in to leave a comment.
Comments
1 comment