GDPR & Privacy Compliance
Export tenant data, delete contacts or message content, and view the decision trace for all data operations.
Molted Email provides built-in tools for GDPR and privacy compliance: data export, contact and tenant deletion, message content erasure, and a full decision trace of all data operations.
Exports and deletions are processed asynchronously. An export has a status endpoint to poll; a deletion's progress shows up in the decision trace.
These endpoints need the session of a person signed in to the portal. They are never available to an agent: an API key gets 401, and a portal session an agent signed up for itself (through the CLI or MCP) gets 403 {"error": "human_required"}, even when that agent owns the workspace. The deletions are also owner-only: a member of the workspace gets 403. There is no CLI or MCP equivalent. An agent's own DELETE /v1/contacts/:id only deletes the contact record, not the person's data (see Contacts). An agent's permanent thread delete (DELETE /v1/agent/threads/:id/permanent) removes that one thread with its messages, received mail and files (a file a send of yours still uses is kept for that send), but is not an erasure request: it does not touch the person's other threads or their address (see Threads).
The responses are the stored request rows, in snake_case.
In the portal
The portal covers three of these without any API call:
- Export your data. Open Settings (or press
⌘K, typeexportand choose Export data) and find the line with your email address at the bottom. Press Export data. It reads Preparing… while the file is built; when it is ready a Download link appears (the link works for 72 hours). If it takes longer than about twenty seconds the button reads "Still preparing, check back in a minute"; press it again later, since only one export runs at a time. An admin or the owner can export, and only they can fetch the download link (it is a copy of the workspace's data). - Delete the workspace. On the same line, Delete workspace (workspace owners only; everyone else sees "Only the owner can delete the workspace"). A confirmation says it schedules the workspace and everything in it for deletion in 7 days. Type the workspace name exactly as it is written to enable the final Delete workspace button. Until the 7 days are over, a red banner reads "Deletion scheduled for DATE" with a Cancel link, and the owner can cancel at any time.
- Erase one person. In a contact's dialog (
⌘K, Contacts), Erase takes the contact's address typed in to confirm; admins and the owner only. See Contacts.
Deleting every contact, deleting all message content, and reading the audit log have no screen in the portal. They are API-only, with the portal's session. Reading the audit log is an admin's or the owner's, since it names every member's actions and the workspace's exports.
Data export
Request a full export of your tenant data. The export is packaged as newline-delimited JSON (NDJSON) and made available for download once processing is complete. Only one export runs at a time: requesting another while one is pending or processing returns 409.
POST https://api.molted.email/v1/me/exportcurl -X POST https://api.molted.email/v1/me/export \
-H "Cookie: YOUR_SESSION_COOKIE"{
"id": "export_abc123",
"tenant_id": "tenant_abc123",
"requested_by": "user_abc",
"status": "pending",
"format": "json",
"download_url": null,
"file_size_bytes": null,
"expires_at": null,
"error_message": null,
"created_at": "2026-03-31T12:00:00Z",
"completed_at": null
}What the export contains
Every line of the file is one row, as JSON, with a _table field naming the table it came from. The file holds:
- The workspace: its settings, mailboxes, sending domains and sender addresses, safety settings, failover policy, API keys (name, prefix, scopes and status, never the key itself), OAuth grants, registered agents, and the webhook, inbound webhook and alert destination configuration. Credentials and webhook URLs are masked, not written: signing secrets, bearer tokens and inbound URL tokens are left out; a webhook endpoint's or alert destination's URL (a Slack, Discord or Zapier hook is itself a credential) is shown as its scheme, the last two labels of its host, an ellipsis and its last four characters; any URL inside a stored settings JSON value (webhook, agent, mailbox and journey step configuration) is reduced to scheme and registrable domain, while in the data you stored about people (contact, account, list, thread, journey event and outcome metadata) and in the delivery and click events about your mail, links keep their host and path but lose any query string, fragment, login and token-looking segment. The content of the mail itself, sent and received, is exported exactly as it was sent or received, links and all, because the export is your access to that content; only configuration (webhook, alert destination and agent settings) is masked; and a key inside a stored JSON value that is named like a secret, token, password, authorization header, key or connection string is replaced with
[redacted], as is a value that is shaped like a secret key or bearer token. The identifiers of your Stripe customer and subscriptions are in an owner's file only. - The people in it: the member list (each member's name, email address and role), invitations and the emails they went to, notification addresses, notification levels, and your own sign-in sessions (IP address, browser description, dates), supervisor app devices (name, platform, dates; never the device keys), product-updates consent records and your own answer, if you gave one, to the optional sign-up question about how you found Molted, plus the feedback you sent and the feedback written by the workspace's API keys on no one's behalf. Another member's sessions, devices, consent records, sign-up answer and feedback are not in your file.
- Contacts and consent: contacts and accounts, engagement counters, consent records, suppressions, blocked domains, the sender allow-list, lists with their subscriptions and sends, and segments.
- Mail: every send request, send attempt, delivery and message event, approval, scheduled follow-up, thread, thread message, handoff, and inbound message, with its intent classification, routing actions, spam feedback and corrections, humanized text, folders and rules, templates with their versions and approvals, attachment records (name, type, size, scan result), and DMARC reports with their per-source records.
- Journeys and outcomes: journeys with steps and runs, journey events, experiments with their assignments, outcome events, consensus requests and votes, incidents, the recent event feed, and the inbound webhook log.
- Billing and privacy requests: the billing events and your earlier export and deletion requests. Billing identity belongs to the workspace owner: an owner's export carries the payment provider's event payloads (invoice and receipt links and the card fingerprint are removed), anyone else's carries only each event's id, type and time. A deletion request is listed with its scope and dates, never the addresses it erased.
Encrypted message content goes out decrypted: subjects, bodies, the raw inbound message, the sender's display name, Reply-To and Cc addresses, and send payloads.
Left out on purpose: the contents of attachment files and feedback screenshots (the records are in the file, the bytes are not), the raw XML of DMARC reports (the parsed report and its records are), password hashes, sign-in links, session tokens, device keys and other secrets, encryption key ids, API key hashes and every other internal hash or index, billing and usage counters, caches derived from rows that are in the file, and the audit log, which you read with the audit log endpoint. A test compares this list with the database schema, so a new table is either in the export or carries a written reason for staying out, and a column that looks like a credential, a link or a hash must be removed, masked or justified in writing before it can ship.
The file is gzip-compressed and stored with Content-Encoding: gzip, so a browser or curl --compressed saves plain NDJSON; a client that ignores the header gets the compressed bytes (gunzip reads them). The last line is a manifest with a row count per table and the number of values that could not be decrypted. Only the person who requested an export can read its status and download link; another admin of the workspace gets 404 for it. An export larger than 4 GiB uncompressed is failed with a message saying so.
Check export status
GET https://api.molted.email/v1/me/export/:idcurl https://api.molted.email/v1/me/export/export_abc123 \
-H "Cookie: YOUR_SESSION_COOKIE"{
"id": "export_abc123",
"status": "completed",
"download_url": "https://...",
"file_size_bytes": "204800",
"expires_at": "2026-04-03T12:01:00Z",
"created_at": "2026-03-31T12:00:00Z",
"completed_at": "2026-03-31T12:01:00Z"
}| Status | Description |
|---|---|
pending | Export queued, not yet started. |
processing | Export in progress. |
completed | Export ready. Use download_url to download; the link works for 72 hours (expires_at). |
failed | Export failed. Check error_message for details. An export that stayed in processing for more than two hours is failed (stalled while processing) the next time you ask for an export, or by the daily cleanup, so it never blocks you for long; request a new one. An export that was still being prepared when a contact, all-contacts or message-content deletion ran is cancelled this way, so it never carries the deleted data; request a new export. |
expired | The link has expired and the file has been deleted. download_url is empty. Request a new export. |
Deleting contacts
Delete a single contact
Remove all stored data for a single email address.
POST https://api.molted.email/v1/me/delete/contactcurl -X POST https://api.molted.email/v1/me/delete/contact \
-H "Cookie: YOUR_SESSION_COOKIE" \
-H "Content-Type: application/json" \
-d '{"email": "user@example.com"}'email must be a valid email address. The response is the deletion request (id, scope: "contact_single", status, created_at, ...); the work itself runs in the background. The address is matched case-insensitively and ignoring surrounding whitespace, so every spelling of it stored for your tenant is found. Other addresses that merely look similar (a +tag variant, dots in a Gmail address) are different addresses and are not touched. It cannot be one of your own mailbox or sender addresses; those requests are rejected with 400. The database part of the deletion runs as a single transaction, so it either completes fully or changes nothing. It:
- Adds the address to your suppression list permanently (reason
legal_request), so it is not emailed again. The suppression list keeps the address in plain form, because that entry is what blocks future sends. - Deletes the contact record and its segment memberships, list subscriptions, engagement stats and leases, plus the address's sender allow-list entry and its per-address sender reputation. For each list the person had unsubscribed from, a one-way hash of the address (salted with the list, never the address itself) is kept, so their opt-out from that list still holds if the address is ever added again.
- Erases the content of every message sent to or received from the address: bodies, subjects, sender display names, Reply-To addresses, raw inbound payloads, authentication results, send payloads, humanizer rewrites and stored humanizer previews.
- Deletes the attachments of those messages, received and sent: the stored files, their file names and checksums, and the file names in the attachment scan entries of your decision trace. They can no longer be downloaded or attached from the moment the database part commits. A file that is your own content rather than the person's is kept: one you also attached to a send to anyone else (in any status, including sends waiting for approval or scheduled), or one that arrived on someone else's message and was forwarded to this person. The decision trace counts those as
attachments_kept_shared. - Cancels the address's active journey runs and pending follow-ups, and deletes its journey trigger events, event-stream entries and outbound webhook deliveries that name it.
- Clears the provider delivery payloads, message timeline payloads (such as clicked links), inbound-hook log fields, bounce details, approval notes, the ask, note and returned note of handoffs, and outcome metadata that relate to the address. The same free text on another contact's records that mentions the address has the address replaced by the pseudonym.
- Replaces the address everywhere it is kept (sends, send attempts, inbound messages, threads, thread messages, consent records, delivery history, experiment assignments, follow-ups, outcomes, spam feedback and your decision trace) with a pseudonym:
redacted-followed by a keyed HMAC-SHA256 of the address. Delivery metadata (timestamps, status) and your consent history are kept. The key stays on Molted's servers, so nobody can recompute the pseudonym from the address. Rows erased before this change carry an olderredacted-value (an unsalted MD5 of the address); the original address is gone, so they are left as they are.
The same transaction replaces the address on the deletion request itself with the pseudonym, so neither the request nor any of the records above keeps the address past that commit (the suppression list aside). It can still exist for a while outside them: in the data of queued or recently finished send jobs (a failed job's data expires from the queue within 7 days; the record of what failed and why is kept separately, without the address), in a small number of older system log entries not tied to your workspace, and in data export files you created before the deletion (requesting the deletion expires those exports, so the download link stops being served right away; when the deletion runs it deletes those export files, so a link you already copied stops working too; if a file can't be deleted then, the next daily cleanup deletes it; an export still being prepared when the deletion runs is cancelled instead of completed). The decision trace records how many rows were erased per table and how many attachment files were deleted, identified by the pseudonym, never by the address.
Attachment files are deleted from storage right after that commit. If some can't be deleted (a storage outage, for example), the decision trace records gdpr.deletion.contact_single.attachments_pending with the number of files left. They are no longer downloadable, and a daily cleanup retries them until they are gone, then records gdpr.deletion.contact_single.completed. Each deletion waits only for its own files. If the database part itself fails (for example because it couldn't get a lock on a busy workspace in time), nothing is erased and it is retried automatically, up to five times with increasing delays.
Not erased:
- Mentions of the address inside the content of other people's messages (for example a colleague quoting it), and an encrypted Reply-To header on someone else's message that points at the address.
- Your own configuration that names the address, such as mailbox rules and allowed-sender lists. Edit those yourself if needed.
- Data export files created before the deletion.
Delete all contacts
Remove all contact records for the tenant, with their segment memberships, list subscriptions, engagement stats and leases (list opt-outs are kept as hashes, as for a single contact). Unlike a single-contact deletion it does not erase message content, suppress the addresses, or pseudonymize them on sends and threads. The response is the deletion request (scope: "contacts").
POST https://api.molted.email/v1/me/delete/contactscurl -X POST https://api.molted.email/v1/me/delete/contacts \
-H "Cookie: YOUR_SESSION_COOKIE"Deleting message content
Delete the content and attachments of every message stored for your tenant, while keeping delivery metadata (timestamps, recipient, status).
POST https://api.molted.email/v1/me/delete/message-contentcurl -X POST https://api.molted.email/v1/me/delete/message-content \
-H "Cookie: YOUR_SESSION_COOKIE"The request takes no body and has no date filter: it applies to all stored messages. It clears subjects, bodies, sender display names, Reply-To addresses and raw inbound payloads, send payloads and humanizer rewrites, deletes stored humanizer previews, and deletes every attachment, received or sent (the stored file, its file name and checksum, and the file name in its scan entry). Addresses are kept. Copies of subjects in provider delivery payloads and event history are not cleared yet. To remove content by age instead, there is a content retention pass, but no plan sets a period and nothing you can reach sets one today, so it doesn't run for you; see Storage.
As with a contact deletion, attachment files that can't be deleted right away are recorded as gdpr.deletion.message_content.attachments_pending (not downloadable, retried daily) until they are gone, then gdpr.deletion.message_content.completed.
Tenant deletion
Request deletion
Schedule the tenant and all associated data for deletion. The deletion runs after a 7-day grace period. The response is { "scheduledFor": "<ISO time>" }; asking again while one is scheduled returns 409.
POST https://api.molted.email/v1/me/delete/tenantcurl -X POST https://api.molted.email/v1/me/delete/tenant \
-H "Cookie: YOUR_SESSION_COOKIE"What happens to your account
When the deletion runs, your tenant's data is deleted as above and so is your account: your name, email address, password, your optional sign-up answer about how you found Molted, sessions, and any open verification or sign-in links. If you also belong to another workspace, your account stays for that workspace and only your membership of the deleted one goes.
Deleting your account also removes you from the places Molted itself keeps a sign-up outside your workspace, when your email address was verified and the same address (counting +tag and Gmail-dot variants for the mailing list) does not belong to another account that is still active:
- Molted's product-updates mailing list: your contact and its list subscriptions, segment memberships, engagement stats and leases are deleted outright, and the list's subscriber count is corrected. Your consent record for product updates goes with your account.
- The waitlist: the entry for your address, with the use case you wrote, is deleted.
Kept after deletion
- A keyed hash (HMAC) of your email address, never the address itself. It can't be turned back into your address, and we only use it to recognise the address if it signs up again, to prevent abuse of the free trial (legitimate interest: fraud and abuse prevention). You can always sign up again with the same address; the new account works normally, without the 3-day free trial on a paid plan.
- A deletion record in the audit trail that a workspace and its owner's account existed and were deleted, with their ids and the time. It holds no email address, but an older workspace id can contain the part of your email address before the
@(ids from before that was changed embed it). It is kept so a late payment webhook or a returning sign-up can be recognised. - The system emails Molted sent you (password resets, notices) stay as an anonymous delivery record: your address becomes a random placeholder and the content and provider payloads are cleared.
- Email you exchanged directly with Molted, for example a reply to the welcome email, stays in Molted's own mailbox.
- Stripe, our payment processor, keeps its own payment records under its own legal duties. Deleting the workspace cancels the subscription.
Cancel deletion
Cancel a pending deletion request during the grace period. Returns { "cancelled": true }, or 404 when no deletion is scheduled.
DELETE https://api.molted.email/v1/me/delete/tenantcurl -X DELETE https://api.molted.email/v1/me/delete/tenant \
-H "Cookie: YOUR_SESSION_COOKIE"Decision trace
All GDPR operations are recorded in the decision trace, your workspace's audit log. Use this to demonstrate compliance with data subject access requests and regulatory audits. It lists every audit event of the workspace, newest first, not only GDPR ones: filter with eventType.
GET https://api.molted.email/v1/me/audit-logcurl "https://api.molted.email/v1/me/audit-log?eventType=gdpr.export.requested&limit=50" \
-H "Cookie: YOUR_SESSION_COOKIE"| Parameter | Description |
|---|---|
eventType | Only events of this type (exact match). |
startDate, endDate | ISO dates bounding created_at. An unparseable date returns an empty list. |
limit | Default 50, at most 200. |
offset | Rows to skip. |
[
{
"id": "log_xyz789",
"aggregate_type": "gdpr",
"aggregate_id": "tenant_abc123",
"event_type": "gdpr.export.requested",
"event_json": { "exportId": "export_abc123", "userId": "user_abc" },
"tenant_id": "tenant_abc123",
"created_at": "2026-03-31T12:00:00Z"
}
]GDPR event types
| Event | Description |
|---|---|
gdpr.export.requested | Data export was requested. |
gdpr.export.completed | Export processing completed. |
gdpr.deletion.requested | A contact, contacts or message-content deletion was requested. |
gdpr.deletion.<scope>.erased | The database part of a deletion committed (<scope> is contact_single, message_content or contacts). Records the rows erased per table and, for a contact, the address's pseudonym (dataSubject). |
gdpr.deletion.<scope>.attachments_pending | Some attachment files could not be deleted from storage yet. Records how many were deleted, failed and are left. They are not downloadable, and a daily cleanup retries them. |
gdpr.deletion.<scope>.attachments_stuck | Written once when a deletion has waited more than 7 days for its attachment files. The files are still not downloadable; contact support if you see this. |
gdpr.deletion.<scope>.completed | Every part of the deletion is done, attachment files included. |
gdpr.tenant_deletion.requested | Tenant deletion was scheduled. |
gdpr.tenant_deletion.cancelled | A scheduled tenant deletion was cancelled. |
Other event types
The log holds every audit event of the workspace, not only GDPR ones. These are the ones a person usually looks for; the details of each are in event_json. Home's activity shows most of them in plain words, with who did it.
| Event | Description |
|---|---|
settings.changed | A change to a setting that controls mail. event_json.kind says which: mailbox_rule, spam_filter, safety_settings, workspace_settings, mailbox, domain_rate_limits, domain_warmup, suppression, suppressed_domain, sending_pause, incident, humanizer, reputation_pause, sender_allowlist or label. before and after hold only the fields that changed (a create has no before, a delete no after). This is what Undo what an agent changed reads. |
agent.changes_reverted | A person ran Undo changes on an agent key. |
human_gate.agent_decision | An agent made a decision that needs a person, and the workspace's human gate let it through in warn mode. See Loosening a control. |
sending.paused, sending.resumed | A person paused or resumed the whole workspace from the portal or the phone app. An agent's account pause is a settings.changed of kind sending_pause. See Pause and resume sending. |
mailbox.paused, mailbox.resumed | A person paused or resumed one mailbox. |
mailbox.created, mailbox.cloned, mailbox.deleted, mailbox.restored, mailbox.purged | The life of a mailbox: created, created as a copy, deleted (with archived: true when it can still be restored for 14 days), restored, deleted for good. |
mailbox.autonomy_changed, mailbox.default_changed, mailbox.reply_deadlines_changed | A mailbox's approval rule, the workspace's default mailbox, and a mailbox's reply deadlines switch. |
domain.created, template.created, journey.created | A domain, template or journey was added. |
apikey.minted, apikey.rescoped, apikey.revoked, apikey.suspended, apikey.reactivated | What happened to an API key. |
thread.archived, thread.unarchived, thread.trashed, thread.restored, thread.deleted | Bulk moves of conversations (event_json.threadIds), and a deleted conversation. |
thread.updated, thread.queue_cleared_stuck | A conversation was edited (which fields changed and the names of the metadata keys, never their values), (at most 20 key names, each cut to 64 characters), and the system released a conversation from the approval or inbound-allowance queue when nothing was left to review (event_json.previousQueue). Safety and policy queues are never released automatically. |
thread.handoff_closed, thread.reopened_by_reply, spam:reported | A person closed a handed-over conversation, a resolved conversation reopened because the contact replied, and a conversation was marked as spam. |
followup.executed, followup.cancelled | A scheduled follow-up was sent, or cancelled because sending stayed paused for 72 hours. |
send_batch.decided, send_approval.expired | A bulk-send card was approved or rejected, and a held send expired undecided. |
attachment.scan_failed, allowlist:removed | An attachment was blocked by the malware scan, and a sender was removed from the sender allow-list. |
job.dlq.entered, job.dlq.retried, job.dlq.discarded | A send job that kept failing was parked, retried or discarded. |
thread.read, thread.context_read | A thread was read through the API. |
mail.send.executed, mail.delivery.<event> | One row per send and per delivery event. These are numerous: filter them out with eventType on the events above. |
The list is not exhaustive, and event types are added over time. Pass eventType to read one kind, or no filter to see them all.
Related reading
- Suppressions & Consent: manage suppression lists and consent records
- Contacts: the contact record an agent can delete