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

# Readiness probe

> Checks database connectivity. No authentication required.



## OpenAPI

````yaml GET /ready
openapi: 3.1.0
info:
  title: querying.ai
  description: >-
    Cloro-compatible API for querying AI answer engines. Every task is
    asynchronous: submit, then collect the result via webhook or polling.
  version: 1.0.0
servers:
  - url: https://api.querying.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /ready:
    get:
      tags:
        - Operations
      summary: Readiness probe
      description: >-
        Checks database connectivity, unlike `/health`. Returns `503` when the
        database is unreachable, so load balancers and deploy gates reflect real
        serving capability. Requires no authentication.
      operationId: getReady
      responses:
        '200':
          description: Ready to serve.
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                  db:
                    type: boolean
                  ts:
                    type: string
                    format: date-time
              example:
                ok: true
                db: true
                ts: '2026-07-09T04:12:00.000Z'
        '503':
          description: The database is unreachable.
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                  db:
                    type: boolean
                  error:
                    type: string
              example:
                ok: false
                db: false
                error: connection refused
      security: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Your API key, sent as `Authorization: Bearer <key>`.'

````