hi, I am using WHM API to automatically create cPanel accounts. I followed the documentation bu I am facing an issue with the token.
After creating the token in my WMH, I try the URL in the browser but it will only return this error
I am using this line from the API documentation
* I changed all needed details in the URL.
* I have created the API token in the WHM.
What am I doing wrong here?
After creating the token in my WMH, I try the URL in the browser but it will only return this error
Code:
{"cpanelresult":{"apiversion":"2","error":"Token denied","data":{"reason":"Token denied","result":"0"},"type":"text"}}
Code:
https://hostname.example.com:2087/cpsess##########/json-api/createacct?api.version=1&username=user&domain=example.com&plan=package_name&featurelist=default"a=0&password=12345luggage&ip=n&cgi=1&hasshell=1&contactemail=user%40seconddomain.com&cpmod=paper_lantern&maxftp=5&maxsql=5&maxpop=10&maxlst=5&maxsub=1&maxpark=1&maxaddon=1&bwlimit=500&language=en&useregns=1&hasuseregns=1&reseller=0&forcedns=1&mailbox_format=mdbox&mxcheck=local&max_email_per_hour=500&max_defer_fail_percentage=80&owner=root
* I have created the API token in the WHM.
What am I doing wrong here?