As the iRedAdminPro (web administration of iRedMail) is closed source and the opensource version is very limited, I think such API will be very limited as well.
Also the compatibility maintenance will be difficult - there is not official stable API.
I think, the easiest would be to start from the scratch. I personally use set of command line scripts written in PHP to create domains, users and aliases. This is working fine.