# Protect conversations

Auto-redact sensitive text before storage, warn teammates about risky links, set data retention schedules, and export your whole workspace.

Open **Settings → Conversation safety** to turn on three workspace protections: automatic text redaction, suspicious link warnings, and retention schedules.

## Automatic redaction

Redaction replaces matching text before a message, note, or subject is saved to the database. The original value is never stored.

- **New text only:** rules apply to incoming text after you save. Past messages stay as stored, and images or file attachments are not scanned.
- **Payment card numbers:** on by default. Masks card numbers while keeping the last 4 digits.
- **US Social Security numbers:** off by default, because order and ticket IDs often match the same format.
- **Custom rules:** add up to 10 rules using Go regular expression syntax (RE2), run top to bottom after built-in rules. Default replacement text is `[redacted]`.

Use **Try your rules** to test sample text safely without saving anything.

## Link safety

Link checks run inside your teammate's browser, so changes apply to every conversation right away.

- **Warn about suspicious links:** on by default. Prompts before opening links with mismatched display text, look-alike characters, URL shorteners, or bare IP addresses.
- **Hide links in email:** off by default. Shows incoming email links as plain text; teammates with `email:read_raw` can still reveal them.
- **Allowed and blocked domains:** add up to 500 domains to either list. Allowed domains (and their subdomains) open without warnings; blocked domains cannot be opened from conversations.

## Data retention

| Item | Default | Allowed range | What happens when expired |
| --- | --- | --- | --- |
| **Closed conversations** | Kept | 30 to 3,650 days | Moves quiet closed threads to the trash. |
| **Trash** | 30 days | 7 to 365 days | Permanently deletes trashed conversations with their messages, attachments, and email records. |
| **Spam** | 30 days | 7 to 365 days | Permanently deletes spam the same way, counted from when it was marked. |
| **Original emails** | 30 days | 0 to 365 days | Deletes raw email source while keeping the parsed message. Email that never became a message (ignored, quarantined, or failed) is removed entirely. |
| **Data exports** | 7 days | 1 to 30 days | Expires download links. |

- **Daily sweep:** every retention period is applied once a day.
- **One-day buffer:** new or edited retention periods wait until the next day's run so nothing deletes the same day you save.
- **Impact preview:** the first time you set a closed conversation limit, dimmi shows how many threads are already past it.
- **Trash before permanent delete:** expired threads move to trash first, then follow your **Trash** retention window before disappearing for good.

### What dimmi cleans up on its own

Some records only exist to let someone in. Once they stop working, dimmi deletes them every night:

| Record | Deleted |
| --- | --- |
| **Anonymous Messenger sessions** | Once expired, 180 days after the visitor's last visit. |
| **Team invitations** | 30 days after they expire or are revoked. |
| **Access tokens** | 30 days after they expire or are revoked. |
| **Idempotency keys** | Once expired, 24 hours after the request. |

Permanently deleting a workspace also deletes its files: attachments, knowledge uploads, help center images, and raw email.

## Export your whole workspace

Owners can take everything out of dimmi at any time. Open **Settings → Exports** and choose **Export workspace**. dimmi builds one zip in the background and lists it on the same page once it is ready.

The archive holds:

- **One `.ndjson` file per kind of record**, one JSON object per line: conversations, messages and internal notes, customers, companies, tickets, help center articles with their versions, changelog entries, knowledge sources and documents, feature requests, broadcasts and series with each recipient's outcome, workflows, procedures, agent settings, saved replies, teams, inboxes, schedules, SLA policies, roles, and members.
- **`attachments/`:** files from messages, help center images, and knowledge uploads. The record that owns a file names it in `archive_path`.
- **`manifest.json`:** the workspace, when the export ran, format version `1`, and each file with its record count.

The archive leaves out:

- **Secrets:** passwords, two-factor secrets, sessions, API tokens, AI provider keys, channel and integration credentials, webhook signing secrets, and DKIM private keys.
- **The audit log**, which has [its own export](/workspace/audit-log/).
- **Working data:** embeddings, search indexes, report totals, AI run traces, and delivery logs.
- **Files the malware scan has not cleared.** `manifest.json` lists each one under `skipped_files`.

The archive stays available for the **Data exports** period above, 7 days unless you changed it. Delete it sooner from **Settings → Exports**.

To script it, send `POST /api/v1/data-exports` with `{"kind": "workspace", "format": "zip"}` using an owner's token that has `conversations:read` and `exports:write`. Once the export is `ready`, `GET /api/v1/data-exports/{id}/link` returns a signed download link that lasts 10 minutes.

Need to remove a single customer right away? See [Erase a customer's data](/customers/erase-data/).

---

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