cloadyDocs
API ReferenceEndpointsWorkspaces

List mailboxes and aliases

Every mailbox of the workspace's domains with its storage, mail app access, status, last sign-in and who reads it, and every alias and forward. `readable` says which mailboxes the caller may open in the Email tool.

GET
/api/workspaces/{workspaceSlug}/mail/mailboxes
AuthorizationBearer <token>

Personal API token (cldy_…)

In: header

Path Parameters

workspaceSlug*string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/workspaces/string/mail/mailboxes"
{  "mailboxes": [    {      "address": "string",      "name": "string",      "domain": "string",      "accountId": "string",      "quotaBytes": -9007199254740991,      "usedBytes": -9007199254740991,      "imap": true,      "pop3": true,      "send": true,      "status": "active",      "members": [        "string"      ],      "readable": true,      "lastSignInAt": "string",      "createdAt": "string"    }  ],  "aliases": [    {      "address": "string",      "targets": [        "string"      ],      "type": "alias"    }  ]}

Turn on email for a domain PUT

Turns email on for one of the workspace's domains, or changes it: `mailboxes` hosts mailboxes and takes the domain's mail, `send` only signs and sends from it. The domain must be registered here, or carry the `_cloady` TXT record verifyDomain asks for (pointing it at Cloady's nameservers alone isn't enough), else 409 `unverified` with the record in `details.verification`; sending from it pauses whenever that record is gone. Turning email on needs a card on the workspace owner's account (402 `payment_required`); receiving mail stays free. On Cloady's nameservers, or at the registrar on Automatic DNS, the MX, SPF, DKIM and DMARC records are published for you; elsewhere `records` lists what to add. A domain of the workspace's apps that isn't a workspace domain yet is added as one. Answers 409 `reserved` for an address under cloady.io or cloady.com, `taken` when another workspace holds it, and `not_available` for `send`, which isn't available yet. Needs the admin role.

Create a mailbox POST

Creates a mailbox on a domain of the workspace with email on and returns its generated password, shown only this once. Mailboxes are free. A workspace has up to 25 mailboxes, and the quotas of every workspace its owner owns add up to at most 10 GB, or 100 GB once the owner has a card on file. Answers 409 `address_taken` when the address is already a mailbox or alias, `email_off` when its domain has no email, `mailbox_limit` or `storage_limit` past those limits, and `storage_full` while Cloady Mail has no room for more storage. Needs the admin role.