iRedAdmin-Pro: RESTful API

Note

If you need an API which has not yet been implemented, don't hesitate to contact us.

Summary

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

Requirements

APIs

Notes:

Domain

URL HTTP Method Summary
/api/domain/<domain> POST Create a new domin
/api/domain/<domain> DELETE Delete an existing domain
/api/domain/<domain> PUT Update profile of an existing domain

Possible PUT parameters used to update account profile:

Parameter Name Summary Sample Usage
cn the short description of this domain name. e.g. company name cn=iRedMail Project
quota a integer number for mailbox quota (for whole domain, in MB) quota=20480
preferredLanguage default preferred language for new user preferredLanguage=en_US
defaultQuota default mailbox quota for new user defaultQuota=1024
maxUserQuota Max mailbox quota of a single mail user maxUserQuota=2048
numberOfUsers Max number of mail user accounts numberOfUsers=20
numberOfAliases Max number of mail alias accounts numberOfAliases=30

User

URL HTTP Method Summary
/api/user/<mail> POST Create a new mail user
/api/user/<mail> DELETE Delete an existing mail user
/api/user/<mail> PUT Update profile of an existing mail user

Possible PUT parameters used to update account profile:

Parameter Name Summary Sample Usage
cn display name cn=My New Name
preferredLanguage default preferred language for new user preferredLanguage=en_US
mailQuota mailbox quota for this user (in MB) mailQuota=1024

Mailing List (OpenLDAP only)

URL HTTP Method Summary
/api/maillist/<mail> POST Create a new mailing list
/api/maillist/<mail> DELETE Delete an existing mailing list
/api/maillist/<mail> PUT Update profile of an existing mailing list

Possible PUT parameters used to update account profile:

Parameter Name Summary Sample Usage
cn display name cn=My List Name

Mail Alias

URL HTTP Method Summary
/api/alias/<mail> POST Create a new mail alias
/api/alias/<mail> DELETE Delete an existing mail alias
/api/alias/<mail> PUT Update profile of an existing mail alias

Possible PUT parameters used to update account profile:

Parameter Name Summary Sample Usage
cn display name cn=My List Name

Sample code to interact with iRedAdmin-Pro RESTful API

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.