Is there an API for creating email accounts

Is there any API that can let me create email accounts for a domain.

not sure if you would call it an api but there is a command line script to add email accounts

You can the same way for your api, calling method v-add-mail-account with the args needed you can add a mail account.