Skip to main content
The anonymization API anonymizes agent traces. It replaces every value that identifies a person, a private organisation, an account or a secret with a consistent synthetic value of the same kind, at every occurrence. Structure and format match the trace. Each trace is anonymized independently. Once created, an anonymization completes unless its input causes a failure, such as a trace that is not text. Errors on our side are retried automatically. If the organization’s balance runs out, the anonymization or batch pauses and resumes once credit is added. Only completed anonymizations are charged.

Quickstart

Create an anonymization, wait for status: completed, and download its content.
Poll with backoff, or use webhooks.

Base URL

Requests and responses are JSON, except uploads (multipart/form-data) and anonymized content (the file). The OpenAPI document is at https://api.metaphi.ai/v1/kennet/openapi.json, with no authentication.

Authentication

Authenticate with your secret key as a bearer token:
Owners and admins create organization keys in the console, or with kennet keys create. A key without anonymization access gets 403 insufficient_scope. Keys with delivery access also call the deliveries endpoints.

Versioning

The current version is 2026-10-11. Responses include the Metaphi-Version header, and events include api_version. To pin a version, send the Metaphi-Version header; an unknown value returns 400 unknown_api_version. Without the header, requests use the current version.

Test mode

Test keys create real anonymizations at no charge, with these limits:
  • Files up to 2 MiB.
  • 5 anonymizations per organization per 24 hours. Further creates return 403 test_quota_exhausted.
  • Objects have "livemode": false.
  • Test and live objects (anonymizations, files, batches, webhook endpoints, idempotency keys) are separate.

Limits

There is no limit on concurrent anonymizations. Each anonymization is queued and starts as capacity allows.

Going to production

  • Batch many traces. A batch takes up to 10,000 traces with no pacing required.
  • Use webhooks. Events report each anonymization and batch status change. If you poll, poll batches, not anonymizations.
  • Send an Idempotency-Key on every create. Reuse it on retries. See Idempotency.
  • Handle errors by code. Retry only retryable errors, after Retry-After. See Errors.