Hello,
I am doing a basic call to whm api 1 by following documentation https://documentation.cpanel.net/display/DD/Guide+to+WHM+API+1
I have created the api token from whm panel. And trying to do a get request via Postman to get an user account statistics.
I get 403 in return
NOTE: The api token as root access (double checked). Also check in response the apiversion is 2 so I am gussing the documentation is not upgraded and doing the api call I am calling the version 2 of the api?
What I am doing wrong?
I am doing a basic call to whm api 1 by following documentation https://documentation.cpanel.net/display/DD/Guide+to+WHM+API+1
I have created the api token from whm panel. And trying to do a get request via Postman to get an user account statistics.
Code:
GET https://server.xxxxx.com:2087/111111111111111111111111/json-api/accountsummary?api.version=1&user=username
Code:
{"cpanelresult":{"apiversion":"2","error":"Access denied","data":{"reason":"Access denied","result":"0"},"type":"text"}}
NOTE: The api token as root access (double checked). Also check in response the apiversion is 2 so I am gussing the documentation is not upgraded and doing the api call I am calling the version 2 of the api?
What I am doing wrong?