> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tenetlabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Readiness



## OpenAPI

````yaml /pii-engine/api-reference/openapi.json get /readyz
openapi: 3.1.0
info:
  title: Tenet PII Engine (Enterprise)
  version: current
  description: >-
    Two services from one image, each behind its own Amazon VPC Lattice service
    inside your VPC. The detect service serves `POST /detect`, `/redact`,
    `/deidentify` and `DELETE /sessions/{session_id}`. The rehydrate service
    serves `POST /reidentify` only. Callers sign every request with SigV4
    (service `vpc-lattice-svcs`) as their own IAM role, over HTTPS on 443; each
    service's auth policy names the roles allowed per route. Anything outside a
    service's routes is a 404 from Lattice. Generated from the services' own
    OpenAPI schema.
servers:
  - url: https://{detect_endpoint}
    description: >-
      Detect service: the `DetectEndpoint` output (Terraform `detect_endpoint`;
      EKS: the detect HTTPRoute's assigned domain name).
    variables:
      detect_endpoint:
        default: >-
          tenet-pii-detect-0123456789abcdef0.7d67968.vpc-lattice-svcs.us-east-1.on.aws
  - url: https://{rehydrate_endpoint}
    description: >-
      Rehydrate service: the `RehydrateEndpoint` output. Only roles in the
      rehydrate invoker list (and break-glass).
    variables:
      rehydrate_endpoint:
        default: >-
          tenet-pii-rehydrate-0123456789abcdef0.7d67968.vpc-lattice-svcs.us-east-1.on.aws
security: []
tags:
  - name: Detect service
    description: Detection, de-identification and erasure. Never returns stored plaintext.
  - name: Rehydrate service
    description: >-
      Re-identification. Privileged, audited, a separate service and auth
      policy.
  - name: Health
    description: >-
      Probes inside each task or pod on port 19991. Not routed through VPC
      Lattice.
paths:
  /readyz:
    get:
      tags:
        - Health
      summary: Readiness
      operationId: readyz_readyz_get
      responses:
        '200':
          description: >-
            Readiness: 200 when the model is loaded and the vault answers, else
            503 (`status` is `loading` or `not_ready`). Not routed through VPC
            Lattice: the container health check (`tenet-pii-enterprise
            healthcheck --ready`), the Kubernetes probes and the Lattice target
            group call it inside the VPC.
          content:
            application/json:
              example:
                status: ready
                backend: <backend>
                model: ready
                vault: reachable
                role: detect
        '503':
          description: Model still loading, or vault unreachable.
      security: []

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.