iRedAdmin-Pro RESTful API (interact with curl)

Summary

iRedAdmin-Pro RESTful API will return message in JSON format.

Requirements

Login

curl -X POST -c cookie.txt -d "username=<username>&password=<password>" https://<server>/api/login

Domain

Create a new mail domain

curl -X POST -i -b cookie.txt -d "var=<value>&var2=value2" https://<server>/api/domain/<domain>

Optional POST data:

Delete an existing mail domain

curl -X DELETE -i -b cookie.txt https://<server>/api/domain/<domain>

User

Create a new mail user

curl -X POST -i -b cookie.txt -d "var=value1&var2=value2&..." https://<server>/api/user/<mail>

Required POST data:

Optional POST data:

Delete an existing mail user

curl -X DELETE -i -b cookie.txt https://<server>/api/user/<mail>

See Also

All documents are available in BitBucket repository, and published under Creative Commons license. If you found something wrong, please do contact us to fix it.