cURL API testing

Started by Iz3k34l, July 12, 2019, 04:31:40 AM

Previous topic - Next topic

Iz3k34l

i am wanting to create a script that will change a password for an email account. i am testing by simply trying to list users with cURL using this line
curl -d '{"MYKEY":"mYk3yh3r3","action":"list"}' -H "Content-Type: application/json" -X POST https://cwp.mydomain.com:2304/v1/accountdetail  but i get the error

{"status":"Error","msj":"error in key","format":"JSON"}

Thanks for your help

josemnunez


Iz3k34l

Quote from: josemnunez link=topic=7026.msg24397#msg24397 date=
Visit our documentation

https://docs.control-webpanel.com/docs/developer-tools/api-manager

Thank you now i get {"status":"Error","msj":"Unauthorized action