# Settings

> Tenant settings: redirect URIs, tracking defaults, retention, AI, the MCP send policy, and the tracking and connect domains.

URL: https://docs.workwae.com/reference/settings

Guides: [Redirect URIs](/guides/connect#redirect-uris), [Tracking domain](/guides/tracking#domain), [Connect domain](/guides/oauth-apps#connect-domain), [MCP send policy](/guides/mcp/safe-sending).

| Method | Path | Operation | Scope |
| --- | --- | --- | --- |
| `GET` | `/v1/settings` | [Get tenant settings](#get-tenant-settings) | `read` |
| `PATCH` | `/v1/settings` | [Update tenant settings](#update-tenant-settings) | `admin` |
| `GET` | `/v1/settings/tracking-domain` | [Get the workspace's tracking domain](#get-the-workspaces-tracking-domain) | `admin` |
| `PUT` | `/v1/settings/tracking-domain` | [Set the workspace's tracking domain](#set-the-workspaces-tracking-domain) | `admin` |
| `DELETE` | `/v1/settings/tracking-domain` | [Remove the workspace's tracking domain](#remove-the-workspaces-tracking-domain) | `admin` |
| `POST` | `/v1/settings/tracking-domain/refresh` | [Check the workspace's tracking domain now](#check-the-workspaces-tracking-domain-now) | `admin` |
| `GET` | `/v1/settings/connect-domain` | [Get the workspace's connect domain](#get-the-workspaces-connect-domain) | `admin` |
| `PUT` | `/v1/settings/connect-domain` | [Set the workspace's connect domain](#set-the-workspaces-connect-domain) | `admin` |
| `DELETE` | `/v1/settings/connect-domain` | [Remove the workspace's connect domain](#remove-the-workspaces-connect-domain) | `admin` |
| `POST` | `/v1/settings/connect-domain/refresh` | [Check the workspace's connect domain now](#check-the-workspaces-connect-domain-now) | `admin` |

## Get tenant settings

`GET /v1/settings`

TypeScript SDK method: `workwae.settings.get()`

Required scope: `read`.

### Responses

- **200** OK (application/json, object)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `bodyStorage` | "none" \| "cache" \| "full" | yes |  |
| `syncWindowDays` | integer \| null | yes |  |
| `mailEnabled` | boolean | yes |  |
| `calendarEnabled` | boolean | yes |  |
| `contactsEnabled` | boolean | yes |  |
| `undoSendSeconds` | integer | yes | 0 to 60. |
| `trackOpens` | boolean | yes |  |
| `trackClicks` | boolean | yes |  |
| `trackingHoneypot` | boolean | yes |  |
| `suppressionCheck` | "lists" \| "always" | yes |  |
| `sendsPerMinute` | integer \| null | yes |  |
| `optOutHandling` | "off" \| "review" \| "suppress" | yes |  |
| `eventRetentionDays` | integer | yes | 7 to 30. |
| `redirectUris` | string (uri)[] | yes | At most 50 items. |
| `aiReplyClassification` | boolean | yes |  |
| `mcpSendPolicy` | object | yes |  |
| `mcpSendPolicy.mode` | "allow" \| "confirm" \| "drafts_only" | yes |  |
| `mcpSendPolicy.allowedRecipientDomains` | string[] \| null | yes |  |
| `mcpSendPolicy.dailySendLimit` | integer \| null | yes |  |
| `mcpSendPolicy.externalRecipientConfirmation` | boolean | yes |  |

- **Errors**, by status and `code` (see [Errors](/guides/errors)):
  - 400: `invalid_input`, `invalid_idempotency_key`
  - 401: `unauthenticated`, `api_key_expired`
  - 403: `missing_scope`, `role_forbidden`, `account_token_forbidden`, `account_scope_forbidden`, `mcp_only_key`
  - 409: `idempotency_key_in_progress`
  - 413: `payload_too_large`
  - 422: `idempotency_key_reused`
  - 429: `rate_limited`, `too_many_requests`
  - 500: `internal_error`
  - 503: `overloaded`

## Update tenant settings

`PATCH /v1/settings`

TypeScript SDK method: `workwae.settings.update()`

bodyStorage applies to every account without its own override; changing it restarts their syncs (full stores and backfills every indexed message, none deletes stored content). mcpSendPolicy limits what agents send through the MCP server only (/v1 sends are not held to it); its keys present change, absent ones stay. Requires the admin scope.

Required scope: `admin`.

### Request body (required)

Content type `application/json`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `bodyStorage` | "none" \| "cache" \| "full" | no |  |
| `syncWindowDays` | integer \| null | no |  |
| `mailEnabled` | boolean | no |  |
| `calendarEnabled` | boolean | no |  |
| `contactsEnabled` | boolean | no |  |
| `undoSendSeconds` | integer | no | 0 to 60. |
| `trackOpens` | boolean | no |  |
| `trackClicks` | boolean | no |  |
| `trackingHoneypot` | boolean | no |  |
| `suppressionCheck` | "lists" \| "always" | no |  |
| `sendsPerMinute` | integer \| null | no |  |
| `optOutHandling` | "off" \| "review" \| "suppress" | no |  |
| `eventRetentionDays` | integer | no | 7 to 30. |
| `redirectUris` | string (uri)[] | no | At most 50 items. |
| `aiReplyClassification` | boolean | no |  |
| `mcpSendPolicy` | object | no |  |
| `mcpSendPolicy.mode` | "allow" \| "confirm" \| "drafts_only" | no |  |
| `mcpSendPolicy.allowedRecipientDomains` | string[] \| null | no |  |
| `mcpSendPolicy.dailySendLimit` | integer \| null | no |  |
| `mcpSendPolicy.externalRecipientConfirmation` | boolean | no |  |

### Responses

- **200** OK (application/json, object)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `bodyStorage` | "none" \| "cache" \| "full" | yes |  |
| `syncWindowDays` | integer \| null | yes |  |
| `mailEnabled` | boolean | yes |  |
| `calendarEnabled` | boolean | yes |  |
| `contactsEnabled` | boolean | yes |  |
| `undoSendSeconds` | integer | yes | 0 to 60. |
| `trackOpens` | boolean | yes |  |
| `trackClicks` | boolean | yes |  |
| `trackingHoneypot` | boolean | yes |  |
| `suppressionCheck` | "lists" \| "always" | yes |  |
| `sendsPerMinute` | integer \| null | yes |  |
| `optOutHandling` | "off" \| "review" \| "suppress" | yes |  |
| `eventRetentionDays` | integer | yes | 7 to 30. |
| `redirectUris` | string (uri)[] | yes | At most 50 items. |
| `aiReplyClassification` | boolean | yes |  |
| `mcpSendPolicy` | object | yes |  |
| `mcpSendPolicy.mode` | "allow" \| "confirm" \| "drafts_only" | yes |  |
| `mcpSendPolicy.allowedRecipientDomains` | string[] \| null | yes |  |
| `mcpSendPolicy.dailySendLimit` | integer \| null | yes |  |
| `mcpSendPolicy.externalRecipientConfirmation` | boolean | yes |  |

- **Errors**, by status and `code` (see [Errors](/guides/errors)):
  - 400: `invalid_input`, `invalid_idempotency_key`, `storage_unavailable`, `redirect_uri_not_allowed`
  - 401: `unauthenticated`, `api_key_expired`
  - 402: `plan_required`, `spend_cap_reached`
  - 403: `missing_scope`, `role_forbidden`, `account_token_forbidden`, `account_scope_forbidden`, `mcp_only_key`, `plan_limit_accounts`, `plan_limit_storage`
  - 409: `idempotency_key_in_progress`
  - 413: `payload_too_large`
  - 422: `idempotency_key_reused`
  - 429: `rate_limited`, `too_many_requests`
  - 500: `internal_error`
  - 503: `overloaded`

## Get the workspace's tracking domain

`GET /v1/settings/tracking-domain`

TypeScript SDK method: `workwae.trackingDomain.get()`

The workspace's own host for tracking pixels, click links and unsubscribe URLs, with the DNS records to publish and where setting it up stands. Requires the admin scope.

Required scope: `admin`.

### Responses

- **200** OK (application/json, object)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `hostname` | string | yes |  |
| `status` | "pending" \| "active" \| "failed" | yes |  |
| `records` | object[] | yes |  |
| `records[].type` | string | yes |  |
| `records[].name` | string | yes |  |
| `records[].value` | string | yes |  |
| `ownership` | object | yes |  |
| `ownership.type` | string | yes |  |
| `ownership.name` | string | yes |  |
| `ownership.value` | string | yes |  |
| `error` | string \| null | yes |  |
| `activatedAt` | string (date-time) \| null | yes | Example `"2026-05-04T09:30:00.000Z"`. |
| `createdAt` | string (date-time) | yes | Example `"2026-05-04T09:30:00.000Z"`. |

- **Errors**, by status and `code` (see [Errors](/guides/errors)):
  - 400: `invalid_input`, `invalid_idempotency_key`, `tracking_domain_unavailable`
  - 401: `unauthenticated`, `api_key_expired`
  - 403: `missing_scope`, `role_forbidden`, `account_token_forbidden`, `account_scope_forbidden`, `mcp_only_key`
  - 404: `tracking_domain_not_found`
  - 409: `idempotency_key_in_progress`
  - 413: `payload_too_large`
  - 422: `idempotency_key_reused`
  - 429: `rate_limited`, `too_many_requests`
  - 500: `internal_error`
  - 503: `overloaded`

## Set the workspace's tracking domain

`PUT /v1/settings/tracking-domain`

TypeScript SDK method: `workwae.trackingDomain.set()`

Registers the hostname with the edge and answers the DNS records to publish: a CNAME to the deployment's tracking host (records), any TXT records the edge asks for (records), and the ownership TXT record that is random to this claim (ownership). The domain is pending until the ownership record is published and the edge reports the hostname and its certificate active (checked every few minutes, or on POST /v1/settings/tracking-domain/refresh); only then do new tracked sends link to it. Replaces the workspace's current tracking domain once the new hostname is registered, so a refusal leaves the current one serving; the replaced one stops serving then, and mail already sent keeps the host it was sent with. Needs the plan's tracking module. Requires the admin scope.

Required scope: `admin`.

### Request body (required)

Content type `application/json`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `hostname` | string | yes |  |

### Responses

- **200** OK (application/json, object)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `hostname` | string | yes |  |
| `status` | "pending" \| "active" \| "failed" | yes |  |
| `records` | object[] | yes |  |
| `records[].type` | string | yes |  |
| `records[].name` | string | yes |  |
| `records[].value` | string | yes |  |
| `ownership` | object | yes |  |
| `ownership.type` | string | yes |  |
| `ownership.name` | string | yes |  |
| `ownership.value` | string | yes |  |
| `error` | string \| null | yes |  |
| `activatedAt` | string (date-time) \| null | yes | Example `"2026-05-04T09:30:00.000Z"`. |
| `createdAt` | string (date-time) | yes | Example `"2026-05-04T09:30:00.000Z"`. |

- **Errors**, by status and `code` (see [Errors](/guides/errors)):
  - 400: `invalid_input`, `invalid_idempotency_key`, `tracking_domain_unavailable`, `tracking_domain_not_allowed`
  - 401: `unauthenticated`, `api_key_expired`
  - 403: `missing_scope`, `role_forbidden`, `account_token_forbidden`, `account_scope_forbidden`, `mcp_only_key`, `plan_module_unavailable`
  - 409: `idempotency_key_in_progress`, `tracking_domain_taken`
  - 413: `payload_too_large`
  - 422: `idempotency_key_reused`
  - 429: `rate_limited`, `too_many_requests`
  - 500: `internal_error`
  - 502: `tracking_domain_edge_unavailable`
  - 503: `overloaded`

## Remove the workspace's tracking domain

`DELETE /v1/settings/tracking-domain`

TypeScript SDK method: `workwae.trackingDomain.delete()`

Removes the hostname from the edge and the workspace. New tracked sends use the deployment's tracking host again; links already in sent mail on the removed domain stop working. Requires the admin scope.

Required scope: `admin`.

### Responses

- **204** OK (application/json, any)
- **Errors**, by status and `code` (see [Errors](/guides/errors)):
  - 400: `invalid_input`, `invalid_idempotency_key`, `tracking_domain_unavailable`
  - 401: `unauthenticated`, `api_key_expired`
  - 403: `missing_scope`, `role_forbidden`, `account_token_forbidden`, `account_scope_forbidden`, `mcp_only_key`
  - 404: `tracking_domain_not_found`
  - 409: `idempotency_key_in_progress`
  - 413: `payload_too_large`
  - 422: `idempotency_key_reused`
  - 429: `rate_limited`, `too_many_requests`
  - 500: `internal_error`
  - 502: `tracking_domain_edge_unavailable`
  - 503: `overloaded`

## Check the workspace's tracking domain now

`POST /v1/settings/tracking-domain/refresh`

TypeScript SDK method: `workwae.trackingDomain.refresh()`

Reads the hostname's state from the edge now instead of waiting for the next check, and answers the updated domain. Requires the admin scope.

Required scope: `admin`.

### Responses

- **200** OK (application/json, object)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `hostname` | string | yes |  |
| `status` | "pending" \| "active" \| "failed" | yes |  |
| `records` | object[] | yes |  |
| `records[].type` | string | yes |  |
| `records[].name` | string | yes |  |
| `records[].value` | string | yes |  |
| `ownership` | object | yes |  |
| `ownership.type` | string | yes |  |
| `ownership.name` | string | yes |  |
| `ownership.value` | string | yes |  |
| `error` | string \| null | yes |  |
| `activatedAt` | string (date-time) \| null | yes | Example `"2026-05-04T09:30:00.000Z"`. |
| `createdAt` | string (date-time) | yes | Example `"2026-05-04T09:30:00.000Z"`. |

- **Errors**, by status and `code` (see [Errors](/guides/errors)):
  - 400: `invalid_input`, `invalid_idempotency_key`, `tracking_domain_unavailable`
  - 401: `unauthenticated`, `api_key_expired`
  - 403: `missing_scope`, `role_forbidden`, `account_token_forbidden`, `account_scope_forbidden`, `mcp_only_key`
  - 404: `tracking_domain_not_found`
  - 409: `idempotency_key_in_progress`
  - 413: `payload_too_large`
  - 422: `idempotency_key_reused`
  - 429: `rate_limited`, `too_many_requests`
  - 500: `internal_error`
  - 502: `tracking_domain_edge_unavailable`
  - 503: `overloaded`

## Get the workspace's connect domain

`GET /v1/settings/connect-domain`

TypeScript SDK method: `workwae.connectDomain.get()`

The workspace's own host for the browser steps of connecting an account through its own provider apps (the redirect URI to register at Google, Microsoft, Zoom or Webex), with the DNS records to publish and where setting it up stands. Requires the admin scope.

Required scope: `admin`.

### Responses

- **200** OK (application/json, object)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `hostname` | string | yes |  |
| `status` | "pending" \| "active" \| "failed" | yes |  |
| `records` | object[] | yes |  |
| `records[].type` | string | yes |  |
| `records[].name` | string | yes |  |
| `records[].value` | string | yes |  |
| `ownership` | object | yes |  |
| `ownership.type` | string | yes |  |
| `ownership.name` | string | yes |  |
| `ownership.value` | string | yes |  |
| `error` | string \| null | yes |  |
| `activatedAt` | string (date-time) \| null | yes | Example `"2026-05-04T09:30:00.000Z"`. |
| `createdAt` | string (date-time) | yes | Example `"2026-05-04T09:30:00.000Z"`. |

- **Errors**, by status and `code` (see [Errors](/guides/errors)):
  - 400: `invalid_input`, `invalid_idempotency_key`, `connect_domain_unavailable`
  - 401: `unauthenticated`, `api_key_expired`
  - 403: `missing_scope`, `role_forbidden`, `account_token_forbidden`, `account_scope_forbidden`, `mcp_only_key`
  - 404: `connect_domain_not_found`
  - 409: `idempotency_key_in_progress`
  - 413: `payload_too_large`
  - 422: `idempotency_key_reused`
  - 429: `rate_limited`, `too_many_requests`
  - 500: `internal_error`
  - 503: `overloaded`

## Set the workspace's connect domain

`PUT /v1/settings/connect-domain`

TypeScript SDK method: `workwae.connectDomain.set()`

Registers the hostname with the edge and answers the DNS records to publish: a CNAME to the deployment (records), any TXT records the edge asks for (records), and the ownership TXT record that is random to this claim (ownership). The domain is pending until the ownership record is published and the edge reports the hostname and its certificate active (checked every few minutes, or on POST /v1/settings/connect-domain/refresh); only then can an OAuth app, meeting app or organization connection be set to use it (useConnectDomain). The redirect URI such an app registers at its provider is then `https://<hostname>/connect/callback/<provider>`. Replaces the workspace's current connect domain once the new hostname is registered, so a refusal leaves the current one serving; the same hostname again changes nothing, unless it failed. Not available for a different hostname while an app uses the connect domain. Requires the admin scope.

Required scope: `admin`.

### Request body (required)

Content type `application/json`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `hostname` | string | yes |  |

### Responses

- **200** OK (application/json, object)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `hostname` | string | yes |  |
| `status` | "pending" \| "active" \| "failed" | yes |  |
| `records` | object[] | yes |  |
| `records[].type` | string | yes |  |
| `records[].name` | string | yes |  |
| `records[].value` | string | yes |  |
| `ownership` | object | yes |  |
| `ownership.type` | string | yes |  |
| `ownership.name` | string | yes |  |
| `ownership.value` | string | yes |  |
| `error` | string \| null | yes |  |
| `activatedAt` | string (date-time) \| null | yes | Example `"2026-05-04T09:30:00.000Z"`. |
| `createdAt` | string (date-time) | yes | Example `"2026-05-04T09:30:00.000Z"`. |

- **Errors**, by status and `code` (see [Errors](/guides/errors)):
  - 400: `invalid_input`, `invalid_idempotency_key`, `connect_domain_unavailable`, `connect_domain_not_allowed`
  - 401: `unauthenticated`, `api_key_expired`
  - 403: `missing_scope`, `role_forbidden`, `account_token_forbidden`, `account_scope_forbidden`, `mcp_only_key`
  - 409: `idempotency_key_in_progress`, `connect_domain_in_use`, `connect_domain_taken`
  - 413: `payload_too_large`
  - 422: `idempotency_key_reused`
  - 429: `rate_limited`, `too_many_requests`
  - 500: `internal_error`
  - 502: `connect_domain_edge_unavailable`
  - 503: `overloaded`

## Remove the workspace's connect domain

`DELETE /v1/settings/connect-domain`

TypeScript SDK method: `workwae.connectDomain.delete()`

Removes the hostname from the edge and the workspace. Refused while an OAuth app, meeting app or organization connection uses it. Requires the admin scope.

Required scope: `admin`.

### Responses

- **204** OK (application/json, any)
- **Errors**, by status and `code` (see [Errors](/guides/errors)):
  - 400: `invalid_input`, `invalid_idempotency_key`, `connect_domain_unavailable`
  - 401: `unauthenticated`, `api_key_expired`
  - 403: `missing_scope`, `role_forbidden`, `account_token_forbidden`, `account_scope_forbidden`, `mcp_only_key`
  - 404: `connect_domain_not_found`
  - 409: `idempotency_key_in_progress`, `connect_domain_in_use`
  - 413: `payload_too_large`
  - 422: `idempotency_key_reused`
  - 429: `rate_limited`, `too_many_requests`
  - 500: `internal_error`
  - 502: `connect_domain_edge_unavailable`
  - 503: `overloaded`

## Check the workspace's connect domain now

`POST /v1/settings/connect-domain/refresh`

TypeScript SDK method: `workwae.connectDomain.refresh()`

Reads the hostname's state from the edge now instead of waiting for the next check, and answers the updated domain. Requires the admin scope.

Required scope: `admin`.

### Responses

- **200** OK (application/json, object)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `hostname` | string | yes |  |
| `status` | "pending" \| "active" \| "failed" | yes |  |
| `records` | object[] | yes |  |
| `records[].type` | string | yes |  |
| `records[].name` | string | yes |  |
| `records[].value` | string | yes |  |
| `ownership` | object | yes |  |
| `ownership.type` | string | yes |  |
| `ownership.name` | string | yes |  |
| `ownership.value` | string | yes |  |
| `error` | string \| null | yes |  |
| `activatedAt` | string (date-time) \| null | yes | Example `"2026-05-04T09:30:00.000Z"`. |
| `createdAt` | string (date-time) | yes | Example `"2026-05-04T09:30:00.000Z"`. |

- **Errors**, by status and `code` (see [Errors](/guides/errors)):
  - 400: `invalid_input`, `invalid_idempotency_key`, `connect_domain_unavailable`
  - 401: `unauthenticated`, `api_key_expired`
  - 403: `missing_scope`, `role_forbidden`, `account_token_forbidden`, `account_scope_forbidden`, `mcp_only_key`
  - 404: `connect_domain_not_found`
  - 409: `idempotency_key_in_progress`
  - 413: `payload_too_large`
  - 422: `idempotency_key_reused`
  - 429: `rate_limited`, `too_many_requests`
  - 500: `internal_error`
  - 502: `connect_domain_edge_unavailable`
  - 503: `overloaded`
