cloadyDocs
API ReferenceEndpointsWorkspaces

Create a mailbox

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.

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

Personal API token (cldy_…)

In: header

Path Parameters

workspaceSlug*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/workspaces/string/mail/mailboxes" \  -H "Content-Type: application/json" \  -d '{    "address": "string"  }'
{  "mailbox": {    "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"  },  "password": "string"}