1. Summary in plain language
CloakAPI's gateway is a relay that does not inspect content. On supported client paths, the client looks for personal data on your own device (in-browser WebAssembly for CloakAPI Chat and the browser extension, native Rust in the desktop app and the local proxy) and replaces the values it detects before the request is sent. Detection is best-effort: values it misses are sent as written and reach the gateway and the AI provider you selected. The gateway does not detect or tokenise content on our servers; it relays what your device sends. If you point a bare SDK straight at the gateway it will relay whatever you send. To keep tokenisation on your own machine with a plain SDK, run the local proxy (see the docs, Quickstart Option C). Responses are de-tokenised on your device with the per-tenant token vault kept on that device.
Some CloakAPI suite products process your content on your device without relaying it. cloak-redact, for example, detects and redacts a document inside your browser tab: the document is not uploaded, no request carrying it reaches our gateway during redaction, and a device receipt records the app's statement that the redaction ran in this tab. The app may download its detection files from us. Optional actions such as subscribing to a paid plan contact the gateway for billing only and do not carry your document.
We relay the content of your AI traffic to the provider you choose, but we do not store it, except in the two opt-in cases in section 4 (gateway-managed multi-turn maps, and the response buffer, which is off by default). We do collect the metadata required to bill, audit, and operate the service.
2. What we collect
2.1 Account & billing data
- Account email, organisation name, country code, billing address, VAT/tax ID.
- Stripe customer reference; we do not store card numbers — Stripe is the PCI processor.
- Invoice history, usage counters (tokens in/out, per provider, per API key), balance.
2.2 Operational telemetry
- API request metadata: timestamp, route, response code, latency, provider, region, byte counts.
- Receipt chain entries (JSON Lines) for calls that receive a receipt — content is hashes, not payloads.
- Authentication audit log: sign-in IP address, browser user-agent and sign-in events (stored encrypted; see section 4).
- Browser-extension usage reports: when you use the extension with a CloakAPI account key, it sends a report for each metered exchange with token counts, the model, the provider, a timestamp and a one-time nonce, and no prompt or reply text.
- Idempotency records: if your client sends an
Idempotency-Key, we keep a request digest and a completion marker for 24 hours on model relay routes, with no answer text. For other API operations we keep a copy of the successful response for 24 hours so that a retry returns the same result. - Detection data downloads: clients download engine, model and name-list files from CloakAPI; these requests carry no prompt content.
2.3 What we don't collect
- We do not store prompt or response text, except in the opt-in stores described in section 4. Log records pass through the payload filter described in section 1.
- The tenant’s token vault in the default client-side mode: it is generated on your device, encrypted with a tenant-derived key that stays on your device, and, where a client syncs it, synced only in encrypted form. An enrolled recovery vault means we store one Shamir share of the persona-cipher key. That share is not the key. The gateway can still derive the persona-cipher key from its master key without any share. The opt-in gateway-managed multi-turn mode is disconnected in this release: the gateway refuses to write, read or decrypt those rows. The Terms of Service state that loss of the recovery quorum (Shamir 3-of-3) is irrecoverable by us.
- Biometric, special-category, or special-situation data outside what you voluntarily place in your account profile.
2.4 Cookies and browser storage
We set no advertising or cross-site tracking cookies, and we use no third-party analytics. Signing in sets a session cookie (cloakapi-session) and an anti-forgery cookie (XSRF-TOKEN) for .cloakapi.io; both are sent only over HTTPS and expire after 2 hours. If you choose a light or dark theme, our sites remember that choice in a cloakapi_theme cookie (kept for up to 1 year) and in your browser's local storage; we set it only when you choose a theme. These cookies are strictly necessary for features you ask for, so we do not show a cookie banner. The portal at app.cloakapi.io loads Plausible Analytics from our own server, which counts page views without cookies and without storing IP addresses. Our clients keep your token map, settings, receipts and, if you turn it on, chat history in your browser or on your device.
3. Legal basis (GDPR Art. 6)
| Processing | Basis | Reference |
|---|---|---|
| Operating the gateway under your agreement | Contract | Art. 6(1)(b) |
| Issuing invoices & tax reporting | Legal obligation | Art. 6(1)(c) |
| Fraud detection on log-in events | Legitimate interest | Art. 6(1)(f) — LIA on file |
| Marketing emails | Consent (opt-in) | Art. 6(1)(a) — withdraw any time |
| Security incident response | Legal obligation + legitimate interest | NIS2 + Art. 6(1)(c)/(f) |
4. Retention windows
Most of these windows are enforced in code by scheduled jobs. Invoices, billing events, billing periods and prepaid transactions are deleted by a daily job after the bookkeeping window in this list. Signed usage receipts and erasure receipts are not. For the full picture of every category we hold, why, and for how long, see our data map & record of processing.
- Receipts & receipt chain: 7 years (tamper-evident audit anchor). The row keeps its user id. No job deletes it when that period ends, and organisation deletion does not complete while a linked receipt exists.
- Authentication, security, billing & privacy audit logs: 7 years, tamper-evident archive. In rows written in the current format, personal data is stored as ciphertext under a key unique to each data subject where the event has one; on erasure that key is destroyed (crypto-shredding) and only an opaque pseudonym, the action and the timestamp stay readable. Events without an identified data subject use a platform key, and earlier rows may have different storage conditions (see the data map).
- Operational (ops-category) audit logs: 90 days.
- Usage metering records: the scheduled prune job removes unreferenced records older than 90 days by default; records linked to prepaid transactions are skipped. Usage records contain request IDs, model names, token counts and cost fields, not request bodies.
- Application / structured logs: 30 days (14 days for the legacy application log).
- Dashboard session tokens: revoked by the prune job after 30 days idle by default. API key retention is separate.
- Multi-turn tokenisation maps: 30-day sliding TTL (restarts on reuse), then purged (opt-in gateway-managed mode only; otherwise the map stays client-encrypted).
- Buffered responses: buffering is disabled by default and requests that ask for it are refused. If enabled, the response payload is stored until its configured expiry (24 hours by default); an hourly job purges expired rows.
- Invoices and payment records, including prepaid balance transactions: 5 years after the end of the financial year (Norwegian Bookkeeping Act). A row from calendar year Y is kept through 31 December of year Y+5, under the real user id, and a daily job then deletes it. It is not rewritten to a pseudonym.
- Erasure receipts: 7 years (accountability, GDPR Art. 5 + audit-trail).
- Inbound email: We store email sent to
cloakapi.ioaddresses in AWS S3 (eu-north-1) solely for transport. The S3 copy is deleted after 30 days. The forwarded copy remains in the recipient’s mailbox. - Marketing email consent records: until withdrawal + 12 months proof window.
- Deleted accounts: erasure runs after a 7-day grace period. Organisation deletion uses that same clock and does not complete while receipts, audit rows, usage records, credit-ledger rows, or bookkeeping rows still inside the window above exist. The account row is closed, not removed.
- Idempotency records: 24 hours.
- Data-export files: deleted when the 30-day download window closes.
- Outreach and campaign data (unconverted outreach targets, campaign-page visits and intents): 12 months. If you object, we keep a hash of your email address on our suppression list as a record of your objection.
- Backups: encrypted database backups are deleted from our host after 30 days. Off-site copies are kept for up to 33 days. An erasure is fully effective once the last backup that contains the erased data has been deleted. The erasure receipt gives an effective completion date 33 days after live-system erasure.
5. Sub-processors
The full list (15 sub-processors) and the 30-day change-notification subscription are at /legal/subprocessors.
6. International transfers
The CloakAPI gateway runs in Hetzner Nuremberg (EU). We use third-country providers (Anthropic, OpenAI, etc.) as sub-processors when a user routes traffic to them; transfers are covered by SCCs (2021/914/EU module 2) and supplementary measures including best-effort client-side tokenisation on supported client paths, which replaces the identifiers it detects before the request reaches the gateway or any provider. Values it does not detect are not covered by this measure. Off-site copies of our database backups are stored in the EU (AWS, Stockholm, eu-north-1).
7. Data-subject rights
Under GDPR Articles 15–22, you can request access, rectification, erasure, restriction, portability, or object to processing. Registered users can run self-service export (Art. 15) and erasure (Art. 17) — each verified out-of-band and, for erasure, returning an erasure receipt that records that the deletion job ran — check it against the published JWKS when one is issued. Erasure in the audit log is performed by destroying your per-subject encryption key rather than by rewriting records. Off-site backups can retain the key for up to 33 days after it is destroyed on the live system. See how to exercise your rights. You can also email support@cloakapi.io. We respond without undue delay and within one month. If a request is complex, or we receive many requests, we may extend this by up to two further months, and we will tell you why within the first month. The supervisory authority of record is Datatilsynet (Norway).
8. Security
Detailed security controls, key custody, encryption, vulnerability disclosure, and audit attestations are at /legal/security and security.cloakapi.io.
Breach notification. Where a personal-data breach must be reported, we notify Datatilsynet within 72 hours of becoming aware of it (GDPR Article 33), and we tell affected people directly when Article 34 requires it. Business customers are notified under section 9 of the DPA.
8a. What CloakAPI does NOT protect against
On supported client paths, CloakAPI clients replace the personal data they detect before a request reaches the AI provider. This is a real but bounded protection, not a guarantee. Being explicit about its limits is part of the product. The following are out of scope; evaluate them against your own threat model. The full technical threat model is public at docs.cloakapi.io/security/threat-model.
- 1. The AI's own generated output. Tokenisation protects what you send. It cannot control what the model writes back, hallucinates, or reproduces from its own training data. If a model was trained on data about you, it may surface that regardless of how your prompt is tokenised.
- 2. The structure and context of your request. The shape, length, topic and surrounding context of a prompt still reach the AI. Higher privacy tiers redact and scramble more, but some structural / contextual signal is inherent to getting a useful answer.
- 3. Data the detector does not find. Detection covers a defined set of data types and can miss values inside that set. Anything it does not find is sent as written. What to expect is set out in Known limitations (Terms of Service, section 7b).
- 3a. Languages and scripts with thin name coverage. Names written in some scripts (for example Thai and Khmer) may not be replaced, and CloakAPI does not refuse the send for that reason. See Languages and scripts in the Terms of Service, section 7b. Limits of coverage are stated there, not in a receipt. A receipt records the client's statement that on-device tokenisation ran for that send. It does not prove that it ran, and it is not a claim that every name in every script was found (see Terms of Service, section 7d).
- 4. What the upstream AI provider does with a request. Receipts record what CloakAPI did; they cannot prove an upstream provider did not log the (tokenised) request, and we cannot enforce a provider's retention or training-use policy. Review each provider's DPA, and use BYOK or complete-local mode where that matters.
- 5. A compromised customer device or browser. Malware, a malicious browser extension, or XSS with full DOM access can observe data before tokenisation. Tokenisation runs in your own browser context and cannot defend a device that is already compromised.
- 6. OS-level keyloggers or screen capture. Software that reads keystrokes or screen pixels sits below the application layer and is outside CloakAPI's threat boundary.
- 7. A compromise of CloakAPI's own infrastructure. CloakAPI is a trusted intermediary; a compromise of the gateway or key-management systems would defeat these protections. Customers who cannot accept that dependency can pursue a self-hosted deployment (roadmap).
- 8. “harvest-now, decrypt-later” quantum attacks. Current transport protocols (TLS 1.2 and TLS 1.3) and signature cryptography (ECDSA P-256) are not post-quantum secure; post-quantum migration is on the roadmap.
- 9. Transparency log participation is opt-in. Receipts use ECDSA P-256 / SHA-256 when they are issued, but only appear in the public transparency feed if the account has opted in.
- 10. Guessable stand-ins. Most stand-ins are derived from the original value by a public function that uses no secret key. Anyone who sees the request (the AI provider, or CloakAPI) can therefore test candidate values against a stand-in: someone who suspects a specific value, such as a particular name, may be able to confirm that guess, and a model may do the same. The map on your device is what turns stand-ins back into real values; it is not sent with the request.
8b. CloakAPI suite apps
The first-party apps (for example cloak-write and cloak-convert) are separate products; see the consumer application terms. When you use one, we process your account email, your plan and billing status, usage counters for free-tier limits, and relay error logs to run that app. The content you send is handled as described in section 1. cloakup has its own privacy policy.
9. Changes to this policy
Material changes are announced 30 days in advance to the registered account email and at /changelog. The version history is public.