Create mail accounts by API
-
Hi,
I would like to build my own Anonaddy, etc service and create a unique mail account for each website I register It shall be their own accounts, not just aliases. Is it possible to create them with the Cloudron API? If so, how can I do that?
Best
Jay -
via api you can do that.
POST
{{baseUrl}}/mail/:domain/mailboxes
note:domainis a variable for the mail domain.
note{{baseUrl}}is the Cloudron api url e.g.https://my.DOMAIN.TLD/api/v1with body:
{ "name": "webmaster", "ownerId": "uid-be9dcf57-ad65-40e0-a3f8-d1c75974bf01", "ownerType": "user" }The
ownerTypecan beuserorgroup. and theownerIdyou need to get via either/usersand for groups/groups.The API and the API Doc is currently being reworked.
https://git.cloudron.io/cloudron/docs/-/blob/master/api/cloudron_api_swagger.yaml?ref_type=heads -
G girish marked this topic as a question on
-
G girish has marked this topic as solved on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login