Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Create mail accounts by API

Create mail accounts by API

Scheduled Pinned Locked Moved Solved Support
apimail
2 Posts 2 Posters 348 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      J Offline
      jayonrails
      translator
      wrote on last edited by girish
      #1

      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

      1 Reply Last reply
      0
      • BrutalBirdieB Offline
        BrutalBirdieB Offline
        BrutalBirdie
        Partner
        wrote on last edited by
        #2

        via api you can do that.
        POST
        {{baseUrl}}/mail/:domain/mailboxes
        note :domain is a variable for the mail domain.
        note {{baseUrl}} is the Cloudron api url e.g. https://my.DOMAIN.TLD/api/v1

        with body:

        {
          "name": "webmaster",
          "ownerId": "uid-be9dcf57-ad65-40e0-a3f8-d1c75974bf01",
          "ownerType": "user"
        }
        

        The ownerType can be user or group. and the ownerId you need to get via either /users and 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

        Like my work? Consider donating a drink. Cheers!

        1 Reply Last reply
        1
        • girishG girish marked this topic as a question on
        • girishG girish has marked this topic as solved on
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Bookmarks
          • Search