cloadyDocs
API ReferenceEndpointsWorkspaces

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.

PATCH
/api/workspaces/{workspaceSlug}/mail
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 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"  }}