Change a workspace's email settings
Sets the monthly spend cap for sending, requests or releases a dedicated sending IP ($20 a month, provisioned by hand), picks the default sending domain and changes the spam filter. Needs the admin role.
Authorization
cloady Personal API token (cldy_…)
In: header
Path Parameters
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 PATCH "https://example.com/api/workspaces/string/mail" \ -H "Content-Type: application/json" \ -d '{}'{ "role": "owner", "server": { "host": "string", "region": "string", "ip": "string", "status": "ok" }, "client": [ { "protocol": "imap", "host": "string", "port": -9007199254740991, "security": "ssl" } ], "domains": [ { "domain": "string", "state": "mailboxes", "dns": "cloady", "verified": true, "mailboxes": -9007199254740991, "aliases": -9007199254740991, "catchAll": "string", "subAddressing": true, "records": [ { "kind": "mx", "type": "MX", "name": "string", "value": "string", "prio": -9007199254740991, "state": "ok", "managed": true } ] } ], "mailboxes": -9007199254740991, "settings": { "capCents": -9007199254740991, "dedicatedIp": { "status": "off", "address": "string" }, "from": "string", "spam": { "folder": 2, "reject": 8, "greylisting": true, "requireTls": true, "blockExecutables": true, "digest": true, "allow": [ "string" ], "block": [ "string" ] }, "workspaceSpam": [ "folder" ] }, "usage": { "month": "string", "sent": -9007199254740991, "free": -9007199254740991, "billed": -9007199254740991, "costCents": -9007199254740991, "today": -9007199254740991, "dailyLimit": -9007199254740991, "card": true, "paused": "cap" }}Get a workspace's email GET
Everything Settings › Email and the Email tool start from: each domain of the workspace with its email state, mailbox and alias counts and the records email needs with what public DNS answers for them, the client settings for mail apps, the default sending domain, the spam filter, the dedicated IP and this month's sending against the free 3,000 (100 a day until a card is on file, then $0.40 per started 1,000, debited from the owner's usage balance). Runs DNS lookups for domains whose records are elsewhere.
Turn off email for a domain DELETE
Turns email off for a domain and removes the records Cloady published for it. Answers 409 `in_use` while the domain has mailboxes or aliases: delete them first. Needs the admin role.