Werkmail Docs
Contents

Guides

Concepts

Tenant (workspace / practice)

A practice is one isolated sending tenant. It has its own:

  • Sending domain and DKIM tokens
  • Projects and routes
  • Suppressions and consent ledger
  • Webhooks, inbound mailbox, and API tokens
  • Monthly plan cap and reputation counters

One tenant’s bounce or complaint rate never applies to another.

Projects

Projects group routes and tokens inside a tenant. A default project is seeded on create. Use extra projects to separate brands, clinics, or environments.

Project-scoped API tokens (wm_proj_…) can send only for that project. Team tokens (wm_team_…) can manage the workspace.

Routes

Each tenant gets two built-in routes:

Slug Type Use
outgoing transactional Appointments, invoices, password resets, DOI mail
broadcast marketing Newsletters and campaigns

You can add more routes (POST /api/practices/{id}/routes) and assign them to a project. {routeID} in APIs accepts a UUID or the slug (outgoing, broadcast).

Route settings:

  • track_opens / track_clicks — default off for clinical/transactional kinds
  • plain_text_fallback — generate a text part from HTML when you omit text

Message kinds

message_kind drives consent checks, default tracking, and legal-footer rules:

Kind Typical route Default tracking Legal basis hint
termin outgoing off contract
recall outgoing off contract
transactional outgoing off contract
doi outgoing off consent
newsletter broadcast on consent
custom broadcast on consent
quality / test outgoing off contract

ValidateRouteMessageKind rejects newsletter on transactional routes and appointment kinds on broadcast.

On a strict transactional workspace the content gate blocks only unambiguous advertising language such as 20% Rabatt, Rabatt, Sale, Sonderangebot, Jetzt kaufen, Gratis testen, Promo, Black Friday or a newsletter opt-in/out. Generic words such as Angebot, Sale or Newsletter are not blocked on their own, so event names like "Platzangebot" or "Angebot: Abendvortrag" still send. When in doubt, POST /send/score shows the exact reason before saving a term.

A recall mail advertises the practice's service, so it carries the legal block that marketing mail carries: the Impressum footer plus the visible unsubscribe / preference line (E-Mail-Einstellungen / abmelden) and the same links repeated at the top of the HTML. termin, transactional, quality and test stay plain and keep only the one-click headers.

The plan gate reads marketing volume only. A recall mail does not count into it, so a marketing pause at the plan cap never holds back a care reminder.

Broadcasts, automations, and the template library live under Broadcasts, Automations, and Practice mail.

Preferences are stored per channel (termin, recall, newsletter, transactional, other). Newsletter requires double opt-in evidence (IP, wording, timestamps) before broadcast.

Every marketing message receives a one-click unsubscribe URL when PUBLIC_BASE_URL is a stable HTTPS origin. Transactional mail carries no marketing footer, and an unsubscribe never stops it.

Suppressions

Addresses can be blocked at team (whole tenant), project, or route scope. Hard bounces and complaints auto-suppress at team scope. List-unsubscribe events suppress at route scope when the message had a route.

Every row also says which sends it blocks. applies_to: all covers every message; applies_to: marketing covers marketing and appointment reminders only. An unsubscribe writes marketing, so opting out of a newsletter does not stop confirmations, tickets or other service mail. A later bounce or complaint on the same address hardens the row to all.

Abuse and content guardrails

Marketing mail passes four independent guards before it reaches the provider. Transactional mail is exempt from the frequency and duplicate guards, but not from content scanning.

  1. Recipient frequency. A marketing address may receive at most 2 marketing messages per 24 hours and 5 per 7 days. The cap is global across lists and campaigns, so splitting an audience into several lists does not bypass it. Reply recipient_rate_limited.
  2. Duplicate content. The SHA-256 of subject, text and HTML is stored per recipient. The same content to the same address inside 24 hours is refused with duplicate_content.
  3. Volume anomaly. Werkmail compares the last hour with the workspace's seven-day hourly baseline. Above 5x the baseline and at least 1,000 messages, the broadcast stream is paused automatically with anomaly_paused and an alert is raised. Transactional mail keeps sending.
  4. Content and links. The local scorer plus Rspamd checks spam signals, phishing forms, credential requests, lookalike and raw-IP links. URLhaus and, when GOOGLE_SAFE_BROWSING_KEY is set, Google Safe Browsing block listed hosts. Profanity is a configurable warning or block policy, never an automatic account ban.

Attachments are limited to documents, CSV, ICS and images. Archives, executables, scripts, HTML and legacy .doc/.xls/.ppt files are refused. OOXML packages with VBA macros or embedded objects and PDFs with JavaScript are rejected before send.

API keys can carry an optional IP allowlist (ip_allowlist). Requests from another address are refused with ip_not_allowed.

Send pace per workspace

Every outbound message takes a slot from a central Postgres pacer before it reaches the provider. The slot is reserved atomically, so separate workers and instances cannot undercut the interval. The first message goes immediately.

New workspaces start at one message every 5 seconds. The interval drops to 4 seconds after week one, 3 seconds after week two, 2 seconds after week three and 1 second after week four. From day 30 the floor is 500 milliseconds, but only with a clean record: at least 100 sends in the last 30 days, no complaint and a bounce rate below 1 percent. Without that record the interval stays at 1 second.

The pace is per message, not per recipient field. A single API call with several recipients still counts as one provider handoff. Transactional and marketing mail share the same pace because the limit protects the workspace reputation, not a single stream.

A broadcast run adds three things on top of that pace. From 500 recipients it ramps in: the first 50 wait twice the interval, the next 100 one and a half times. Every recipient domain is capped at 60 messages per minute, so a list that is concentrated at one provider cannot turn the global rate into a burst against that provider. And from 50 attempts the run watches its own refusals: 20 percent or eight in a row stop it with pacing_aborted, 10 percent halve its rate. Skipped recipients never count.

GET /api/practices/{id}/broadcasts/{campaignID}/estimate returns the lower bound of the run in seconds before anything is sent. The dashboard shows the same number at the start button.

Retries and outages

A send that cannot reach the mail platform is accepted with 202 and stays in the queue. Sends retry for about five hours (30 seconds, 1 minute, 5 minutes, 15 minutes, 45 minutes, then hourly); webhook and alert deliveries retry for about 23 hours. Retries keep the same message or event identity, so nothing is sent twice.

If a job still fails after its last attempt it becomes failed (dead letter). An operator can replay it with POST /api/ops/jobs/{id}/retry or replay a batch with POST /api/ops/jobs/retry-failed, both platform-admin only. Webhook events can also be replayed per event.

During a full platform outage the edge answers 404 Application not found. Treat that as retryable on known endpoints. When only the database is down, auth answers 503 unavailable with retryable: true.

Plans

Plan Cap Price At 100%
Starter 10,000 / month 19 EUR All sending pauses
Growth 50,000 / month 49 EUR All sending pauses
Pro 250,000 / month 99 EUR Marketing pauses; transactional continues
Agency 750,000 / month 299 EUR Marketing pauses; transactional continues
Compliance 1,000,000 / month 499 EUR Marketing pauses; transactional continues
Enterprise per agreement on request Marketing pauses; transactional continues

Prices are net per month. Every workspace starts in a sandbox until a person approves production access. Contact sales to discuss access.

At 70% / 90% / 100% of the monthly cap, owners get one email per threshold per UTC month. On Pro and above, broadcast pauses at 100%; transactional kinds can still send. Reputation pause is separate.

View this page as Markdown · llms.txt · full corpus