Data retention and security
Every Mouse API customer gets Zero Data Retention (ZDR) by default on the standard API. No enterprise contract, sales approval, or request header is required. The one exception is opt-in and per request: a decision sent with "store": true is kept for 30 days so you can tune on its outcome.
What Mouse retains vs discards
Section titled “What Mouse retains vs discards”| Data element | Retained on disk? | Where it lives | Lifecycle |
|---|---|---|---|
state, questions, instructions, criteria | No | Process memory for the active HTTP request | Discarded as soon as the HTTP response is sent |
answers, probabilities, confidence | No | Process memory for the active HTTP request | Discarded as soon as the HTTP response is sent |
POST /v1/calibrations labeled examples | No | Process memory during 5-fold cross-fitting | Discarded as soon as the signed profile is returned |
Calibration profile (calp1.) | No | Returned to caller, HMAC-SHA256 signed | Held by the caller and passed back on /v1/decisions |
Decisions sent with "store": true (state, questions, episode) and the labels you post to /v1/decisions/{id}/outcome | Yes, opt-in | api_outcomes in Postgres: content sealed with AES-256-GCM, bound to your account and the decision id; question ids, signatures, option keys and labels in the clear for counting | 30 days, then deleted; DELETE /v1/outcomes removes all of them at once; account deletion removes them. Used only for your own tunings. Images are never stored |
POST /v1/tunings labeled examples | No | The training job's input, in memory on the GPU worker for that job | Discarded when the job finishes; never written to disk, logged, or echoed in the report (which carries metrics and question signatures only) |
Tuned adapter (mouse-1:ft-...) | Yes | Account-scoped weights on the serving volume | Until you call DELETE /v1/tunings/{id}; served only to the account that created it |
Request metadata (request_id, key_id, model, status, input_tokens, questions count, latency_ms, region) | Yes | Structured logs and billing usage rollups | 30 days in console activity logs; billing aggregates as required by law |
How ZDR is enforced in code
Section titled “How ZDR is enforced in code”Zero data retention in the API is enforced mechanically rather than by policy alone:
- Allow-listed log filter (
MetadataOnly): The API logger strips every attribute outside the fixed metadata allow-list (event,request_id,key_id,path,status,latency_ms,model,region,input_tokens,questions,error_code) and drops any formatted string arguments before serialization. Even an accidentallog.info(..., extra={"state": ...})cannot emit request content. - Non-echoing validation errors: When Pydantic rejects a malformed request body (
422 invalid_schema), the error handler extracts only the field path (loc) and schema rule, never the rejected input value. Automated tests place secret canary strings inside invalidstateandcriteriapayloads and assert they never appear in error bodies or log streams. - Explicit HTTP headers on every response: Every response carries:
except a decision you asked to keep (Cache-Control: no-storeMouse-Data-Retention: none
"store": true), which saysMouse-Data-Retention: 30d. - Nothing kept between requests: The model has no prompt or response cache. Each request is scored in GPU memory and dropped when it returns, so nothing from one request is held for the next. A stored decision is written to the database by the API, never by the scorer.
Infrastructure, availability SLO, and subprocessors
Section titled “Infrastructure, availability SLO, and subprocessors”- Serving region:
https://api.mouse.devruns in US-East (Mouse-Region: us) on stateless CPU API gateways paired with isolated GPU workers on Modal. - Availability SLO (preview): We target 99.5% monthly availability on
POST /v1/decisionsduring themouse-preview-2026-10-13preview, monitored viaGET https://api.mouse.dev/healthz. Formal contractual SLAs with service credits ship at General Availability after 30 days of continuous production telemetry. - No model training on customer traffic: Customer requests, states, questions, and calibration examples are never used to train or fine-tune models. The one exception is the one you ask for: a tuning job trains only on the examples you submit to it, for that job's duration, and produces an adapter that is scoped to your account and yours to delete. Nothing from a tuning job reaches the base model or any other customer.
- Key security: API keys (
sk_mouse_...) include a 6-character base62 CRC32 checksum verified before any database query, are stored exclusively asSHA-256hashes, and are automatically revoked via GitHub secret scanning if leaked to a public repository.
12-Question AI-CAIQ Enterprise Security & Trust Reference
Section titled “12-Question AI-CAIQ Enterprise Security & Trust Reference”For security and procurement reviews (CSA AI-CAIQ), here are direct answers for https://api.mouse.dev:
| # | Security review question | Mouse (api.mouse.dev) answer |
|---|---|---|
| 1 | Is Zero Data Retention (ZDR) enabled by default? | Yes. Every response includes Mouse-Data-Retention: none and Cache-Control: no-store on all accounts with $0 surcharge. |
| 2 | Are customer prompts, state, or questions used for training? | Never, unless you ask. Inference requests and POST /v1/calibrations labeled examples are not stored or used for training, distillation, or evaluations. Only examples you submit to POST /v1/tunings, and decisions you stored with "store": true and then tune on, are trained on, for your account's model alone and never for mouse-1 or another customer; the model is yours to delete. |
| 3 | Where does calibration and tuning data live? | Stateless in-memory only. POST /v1/calibrations scores examples in memory, fits temperature T and cutoff, and returns an HMAC-SHA256 signed calp1. token; examples and profiles are immediately discarded. POST /v1/tunings examples are the training job's input and are discarded when it finishes; the only artifact that persists is the account-scoped adapter, removed by DELETE /v1/tunings/{id}. |
| 4 | Is anything from a request kept in GPU memory between requests? | No. mouse-1 has no prompt or prefix cache. Each request is scored and dropped, so there is no shared cache state for another tenant to probe. |
| 5 | What is retained in audit logs? | Only allow-listed operational metadata (request_id, key_id, path, status, model, region, input_tokens, questions count, latency_ms, error_code) enforced by an allow-list log filter. |
| 6 | Can validation errors leak sensitive payload contents? | No. RequestValidationError handlers strip rejected values and return only the schema field path (param). |
| 7 | How are API keys stored and protected against leaks? | Keys (sk_mouse_...) carry a base62 CRC32 checksum (invalid keys are rejected before any DB query), are stored as SHA-256 digests only, and support automatic revocation on public GitHub exposure. |
| 8 | How is prompt injection inside state mitigated? | mouse-1 is non-autoregressive (output_tokens = 0) and only scores the fixed option keys you supply in criteria. Untrusted text placed in state cannot invoke tools or emit free-form output. |
| 9 | How are model versions pinned and deprecated? | Every response echoes Mouse-Model-Version: mouse-preview-2026-10-13. Immutable snapshots receive at least 12 months' notice (retire_after in GET /v1/models) before retirement, and calp1. profiles reject mismatched snapshots with 409 profile_model_mismatch. |
| 10 | What are theserving regions and data residency options? | Currently US-East (us) only. We do not charge regional surcharges; EU residency will be announced in GET /v1/models and /healthz when live. |
| 11 | How are rate limits and runaway spend bounded? | Token buckets enforce 10 RPS (burst 20) and 1M TPM per key with standard x-ratelimit-* headers. Prepaid balances stop at $0.00 (402 insufficient_credits), and optional auto-reload fires at most once per 24 hours. |
| 12 | How do committed-throughput upgrades work? | Keys can be upgraded to reserved RPS/TPM capacity via purchase order at the same $0.10 / 1M per-token rate (mailto:sales@mouse.dev). |