Skip to main content
Two endpoints, one protocol. The detect service and the rehydrate service are separate Amazon VPC Lattice services inside your VPC. Every request is signed with SigV4 as the caller’s own IAM role, over HTTPS on 443. JSON in, JSON out, snake_case fields. Lattice forwards only those exact methods and paths — case-sensitive, no trailing slash. Anything else, including /reidentify on the detect endpoint and the health probes, is a 404 from Lattice and never reaches a task.

Auth

Sign each request with AWS Signature Version 4: Use the tenet-pii-lattice client (pip install https://platform.tenetlabs.com/enterprise/current/tenet_pii_lattice.tar.gz; Python 3.11+, boto3), or any SigV4 signer — plain botocore SigV4Auth is enough. The calling role must be named for that route in the service’s auth policy (detect, erasure or rehydrate invoker list) and have vpc-lattice-svcs:Invoke in its own IAM policy. A same-account caller with only one of the two is refused. Setup: Callers. A refusal is always a fixed 403. Lattice answers it when the auth policy denies the request; the service answers {"detail": "forbidden"} when its own re-check fails, and logs the reason at WARNING. There is no 401 and no bearer token.

Endpoints

/detect, /redact and /deidentify accept optional confidence_threshold (float) and code_filter (bool) per request; the service default threshold is 0.55. hash_prefix needs a server-side key (TENET_PII_SERVE_HASH_KEY); without one it’s a 400. GET /healthz (liveness, {"status": "ok", "version": "<engine version>"}) and GET /readyz (model loaded and vault reachable) are served on port 19991 inside each task or pod for container health checks, Kubernetes probes and the Lattice target groups. Callers can’t reach them.

Example

/reidentify and DELETE /sessions/{session_id} responses carry X-Request-ID, equal to the request_id of the audit record the call wrote. Reuse connections: each new connection pays a TLS handshake.

Errors

Every non-2xx from the service carries detail — a string, except 422, where it’s a list of validation errors (loc, msg, type). Lattice’s own 403 and 404 carry Lattice’s body. Treat any non-2xx as failure; the client raises TenetLatticeError(status, detail).

About this reference

The endpoint pages are generated from the services’ own OpenAPI schema for the current image. The error responses on those pages — including 403, Lattice’s 404, 409 and 503 — are part of the contract. The Try it playground can’t reach your services — they’re internal to your VPC and need SigV4.