How do I create and delete mail accounts with the API?

I want to create and delete mail accounts through the Hestia CP API with PHP. I couldn’t find a proper resource for this. Is there anyone who can help?

Check the API Example Documents. Though they do not have the exact sample you need, but you can use them on similar rewrite.

I created a PR over on github the same way. However, until @eris or @sahsanu does not approve them, they are not live. You can test if you wish, but be sure to have a backup, or do it on a temp user, or similar.

Pull Request | CLI (Add) | CLI (Delete)

1 Like