> ## 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

> Config is loaded and the service can decide. 503 until then. Requires a bearer token — without one it returns `401`. Some `401` responses carry no error envelope, so branch on the status code.



## OpenAPI

````yaml /api-reference/openapi.json get /ready
openapi: 3.1.0
info:
  title: Judge API
  description: >-
    Compliance verdicts for agent tool calls. Agent messages and tool calls in →
    verdict, severity, and evidence out. The canonical decide endpoint is `POST
    /decide`. PII is detected on every request and redacted out of any text sent
    to a downstream LLM; detected values are not returned.
  version: 0.2.0
  contact:
    name: Tenet Labs
    url: https://tenetlabs.com
servers:
  - url: https://judge.tenetlabs.com
    description: Production
security:
  - bearerAuth: []
paths:
  /ready:
    get:
      tags:
        - Health
      summary: Readiness
      description: >-
        Config is loaded and the service can decide. 503 until then. Requires a
        bearer token — without one it returns `401`. Some `401` responses carry
        no error envelope, so branch on the status code.
      operationId: ready
      responses:
        '200':
          description: Ready.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: ready
        '401':
          $ref: '#/components/responses/Unauthorized'
        '503':
          $ref: '#/components/responses/Unavailable'
components:
  responses:
    Unauthorized:
      description: >-
        Missing or invalid bearer token. `code` is `UNAUTHENTICATED`. Some `401`
        responses carry no error envelope, so branch on the status code.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unavailable:
      description: Service temporarily unavailable.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      description: Error envelope. Branch on `code`; `message` is for humans.
      properties:
        code:
          type: string
          description: >-
            Stable, programmatic error code — `BAD_REQUEST`, `UNAUTHENTICATED`,
            `VALIDATION_ERROR`, `RATE_LIMITED`, `QUOTA_EXCEEDED`,
            `SERVICE_UNAVAILABLE`, `batch_api_retired`, …
          example: VALIDATION_ERROR
        message:
          type: string
          description: >-
            Human-readable description. For a validation error it names the
            offending field.
        docs_url:
          type: string
          description: >-
            Link to this code's entry in the
            [Errors](/api-reference/introduction#errors) table.
        request_id:
          type: string
          description: >-
            Echoes the `X-Tenet-Request-Id` response header. Include it when
            reporting a problem.
          example: req_0123456789abcdef0123456789abcdef
        retry_after:
          type: integer
          description: Seconds to wait before retrying. Present only when applicable.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A self-serve API key (sk_tenet_…, from platform.tenetlabs.com; accepted
        on /decide and /decide/stream) or an M2M token (audience
        https://sdk.tenetlabs.com; accepted everywhere). See /authentication.

````

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