Skip to content
Get API key

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.

Data elementRetained on disk?Where it livesLifecycle
state, questions, instructions, criteriaNoProcess memory for the active HTTP requestDiscarded as soon as the HTTP response is sent
answers, probabilities, confidenceNoProcess memory for the active HTTP requestDiscarded as soon as the HTTP response is sent
POST /v1/calibrations labeled examplesNoProcess memory during 5-fold cross-fittingDiscarded as soon as the signed profile is returned
Calibration profile (calp1.)NoReturned to caller, HMAC-SHA256 signedHeld 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}/outcomeYes, opt-inapi_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 counting30 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 examplesNoThe training job's input, in memory on the GPU worker for that jobDiscarded 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-...)YesAccount-scoped weights on the serving volumeUntil 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)YesStructured logs and billing usage rollups30 days in console activity logs; billing aggregates as required by law

Zero data retention in the API is enforced mechanically rather than by policy alone:

  1. 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 accidental log.info(..., extra={"state": ...}) cannot emit request content.
  2. 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 invalid state and criteria payloads and assert they never appear in error bodies or log streams.
  3. Explicit HTTP headers on every response: Every response carries:
    Cache-Control: no-store
    Mouse-Data-Retention: none
    except a decision you asked to keep ("store": true), which says Mouse-Data-Retention: 30d.
  4. 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.dev runs 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/decisions during the mouse-preview-2026-10-13 preview, monitored via GET 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 as SHA-256 hashes, 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 questionMouse (api.mouse.dev) answer
1Is 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.
2Are 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.
3Where 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}.
4Is 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.
5What 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.
6Can validation errors leak sensitive payload contents?No. RequestValidationError handlers strip rejected values and return only the schema field path (param).
7How 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.
8How 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.
9How 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.
10What 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.
11How 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.
12How 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).