# Change workspace settings

```http
PATCH https://trydimmi.com/api/v1/workspace
```

## Authorization

Send an API token as `Authorization: Bearer <token>`.
The token needs: `settings:write`.

## Body

- `customer_facing_name` (string): The name customers see instead of the workspace's name. null removes it.
- `link_safety` (object)
  - `allow_domains` (string[] | null): Up to 500 domains whose links skip the warning; each also covers every name under it, such as ["example.com"]. The list sent replaces the old one.
  - `block_domains` (string[] | null): Up to 500 domains whose links cannot be clicked; each also covers every name under it, such as ["bad.example"]. The list sent replaces the old one.
  - `enabled` (boolean): true turns link warnings on, false turns them off. They start on.
  - `strip_inbound_email_links` (boolean): true shows the links in incoming email as plain text until a teammate reveals them; false leaves them as links.
- `locale` (string): The fallback language for members and customers, such as en or de.
- `name` (string): The name of the workspace, at most 80 characters.
- `require_two_factor` (boolean): Cannot be changed through a token: the person must switch it in the app, after confirming their password.
- `retention` (object)
  - `closed_conversation_days` (integer): Days closed conversations are kept, from 30 to 3650, such as 365. null keeps them for ever.
  - `export_days` (integer): Days a data export is kept, from 1 to 30, such as 7.
  - `raw_email_days` (integer): Days raw email is kept, from 0 to 365, such as 30. 0 removes it at once.
  - `spam_days` (integer): Days spam is kept, from 7 to 365, such as 30.
  - `trash_days` (integer): Days trash is kept, from 7 to 365, such as 30.
- `seen_receipt_shows_name` (boolean): Whether the customer's messenger names the teammate who read their message. Off by default: the customer only learns that the team saw it. Example: true.
- `seen_receipts` (boolean): Whether the customer's messenger is told when the team read their message. On unless turned off. Example: false.
- `show_viewers_on_list` (boolean): Whether the inbox list shows which teammates are viewing each conversation. On unless turned off. Example: false.
- `slug` (string): The workspace's address: 3 to 40 lowercase letters, digits and dashes.
- `team_mentions_enabled` (boolean): Whether an internal note may mention a whole team. On unless turned off. Example: false.
- `test_mode` (boolean): Fixed when the workspace is created; sending a different value is refused.
- `timezone` (string): An IANA time zone, such as Europe/Berlin.
- `undo_send_seconds` (integer): How long a reply can be taken back after sending: 0, 5, 10, 20 or 30. One of: `0`, `5`, `10`, `20`, `30`.

## Response 200 (OK)

- `data` (object, required)
  - `customer_facing_name` (string | null, required): The name customers see for the workspace. Null when they see the workspace's own name.
  - `deleted_at` (string | null, required): When the workspace was moved to the trash. Null while it is not deleted.
  - `id` (string, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
  - `link_safety` (object, required)
    - `allow_domains` (string[] | null, required): Domains whose links skip the warning; each covers the domain and every name under it. Empty when none.
    - `block_domains` (string[] | null, required): Domains whose links cannot be clicked; each covers the domain and every name under it. Empty when none.
    - `enabled` (boolean, required): True when links in messages are checked and warned about before opening.
    - `strip_inbound_email_links` (boolean, required): True when links in received email show as plain text until a teammate reveals them.
  - `locale` (string, required): The workspace's language, such as en.
  - `logo_url` (string | null, required): Web address of the workspace's logo on this server. Null when it has none.
  - `name` (string, required): The workspace's name, 1 to 80 characters.
  - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `onboarding` (object, required)
    - `completed_at` (string | null, required): When the workspace finished setup. Null while setup is still under way.
    - `step` (string, required): The setup step the workspace is on: workspace, logo, channels, tags, team, knowledge, test_conversations or done.
  - `purge_after` (string | null, required): When a deleted workspace is removed for good unless restored. Null while it is not deleted.
  - `require_two_factor` (boolean, required): True when every member must have a second sign-in factor to work in the workspace.
  - `retention` (object, required)
    - `changed_at` (string): When the retention periods were last changed; left out if they never were.
    - `closed_conversation_days` (integer | null, required): Days a closed conversation is kept; null when closed conversations are kept for ever.
    - `export_days` (integer, required): Days a data export is kept; 7 unless the workspace chose otherwise.
    - `raw_email_days` (integer, required): Days raw email is kept after it is read; 30 unless the workspace chose otherwise.
    - `spam_days` (integer, required): Days spam is kept; 30 unless the workspace chose otherwise.
    - `trash_days` (integer, required): Days the trash is kept; 30 unless the workspace chose otherwise.
  - `seen_receipt_shows_name` (boolean, required): True when the customer's messenger names the teammate who read their message.
  - `seen_receipts` (boolean, required): True when the customer's messenger is told that the team read their message.
  - `show_viewers_on_list` (boolean, required): True when inbox lists show who is viewing each conversation.
  - `slug` (string, required): The workspace's short name used in its web addresses.
  - `team_mentions_enabled` (boolean, required): True when a note may mention a whole team.
  - `test_mode` (boolean, required): True when the workspace is a test-mode workspace. It is fixed and cannot be changed.
  - `timezone` (string, required): The workspace's time zone, as an IANA name such as UTC or Europe/Paris.
  - `undo_send_seconds` (integer, required): How many seconds a reply waits before it leaves, during which its writer can undo it. 5 unless the workspace changed it.

## Response default (Error)

- `code` (string, required): Stable code for programs to tell errors apart, such as validation_failed or internal_error.
- `errors` (object): Each rejected field mapped to its messages. Only present when the input was invalid.
- `message` (string, required): What went wrong, in words safe to show a person.

## Example request

```bash
curl --request PATCH \
  --url 'https://trydimmi.com/api/v1/workspace' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customer_facing_name": "<string>",
  "link_safety": {
    "allow_domains": [
      "<string>"
    ],
    "block_domains": [
      "<string>"
    ],
    "enabled": true,
    "strip_inbound_email_links": true
  },
  "locale": "<string>",
  "name": "<string>",
  "require_two_factor": true,
  "retention": {
    "closed_conversation_days": 123,
    "export_days": 123,
    "raw_email_days": 123,
    "spam_days": 123,
    "trash_days": 123
  },
  "seen_receipt_shows_name": true,
  "seen_receipts": true,
  "show_viewers_on_list": true,
  "slug": "<string>",
  "team_mentions_enabled": true,
  "test_mode": true,
  "timezone": "<string>",
  "undo_send_seconds": 0
}'
```

## Example response

```json
{
  "data": {
    "customer_facing_name": "<string>",
    "deleted_at": "2026-11-01T09:30:00Z",
    "id": "<string>",
    "link_safety": {
      "allow_domains": [
        "<string>"
      ],
      "block_domains": [
        "<string>"
      ],
      "enabled": true,
      "strip_inbound_email_links": true
    },
    "locale": "<string>",
    "logo_url": "<string>",
    "name": "<string>",
    "object": "<string>",
    "onboarding": {
      "completed_at": "2026-11-01T09:30:00Z",
      "step": "<string>"
    },
    "purge_after": "2026-11-01T09:30:00Z",
    "require_two_factor": true,
    "retention": {
      "changed_at": "2026-11-01T09:30:00Z",
      "closed_conversation_days": 123,
      "export_days": 123,
      "raw_email_days": 123,
      "spam_days": 123,
      "trash_days": 123
    },
    "seen_receipt_shows_name": true,
    "seen_receipts": true,
    "show_viewers_on_list": true,
    "slug": "<string>",
    "team_mentions_enabled": true,
    "test_mode": true,
    "timezone": "<string>",
    "undo_send_seconds": 123
  }
}
```

---

Index of all dimmi docs: https://trydimmi.com/llms.txt (full text: https://trydimmi.com/llms-full.txt)
