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

# Readiness

> Ready when the database is reachable, and for every network the RPC is healthy, the sponsor holds at
least `MIN_SPONSOR_BALANCE_XLM` and every channel account exists, and the first search index is
built. Never rate-limited.




## OpenAPI

````yaml /api-reference/openapi.yaml get /ready
openapi: 3.1.0
info:
  title: Rail402
  version: 0.0.0
  summary: x402 facilitator and Bazaar discovery layer for Stellar.
  description: >
    The Rail402 HTTP service. `/supported`, `/verify` and `/settle` follow the
    x402 version 2 facilitator

    interface; `/discovery/*` serves the Bazaar catalog and search.


    Every endpoint except `/health`, `/ready` and `/metrics` is rate-limited per
    client address. A limited

    request gets HTTP 429 with a `Retry-After` header and the code
    `rate_limited`.
  license:
    name: Apache-2.0
    identifier: Apache-2.0
servers:
  - url: https://testnet.rail402.dev
    description: Hosted testnet facilitator (stellar:testnet only, no API key)
security: []
tags:
  - name: Facilitator
    description: x402 facilitator interface.
  - name: Discovery
    description: Bazaar catalog and natural-language search.
  - name: Operations
    description: Health, readiness, metrics and usage.
paths:
  /ready:
    get:
      tags:
        - Operations
      summary: Readiness
      description: >
        Ready when the database is reachable, and for every network the RPC is
        healthy, the sponsor holds at

        least `MIN_SPONSOR_BALANCE_XLM` and every channel account exists, and
        the first search index is

        built. Never rate-limited.
      operationId: getReady
      responses:
        '200':
          description: Every check passes.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Readiness'
              example:
                ready: true
                checks:
                  database:
                    ok: true
                  stellar:testnet:rpc:
                    ok: true
                  stellar:testnet:sponsor:
                    ok: true
                    detail: 99999974478 stroops
                  stellar:testnet:channels:
                    ok: true
                    detail: 24 channels
                  search:
                    ok: true
        '503':
          description: At least one check fails.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Readiness'
components:
  schemas:
    Readiness:
      type: object
      required:
        - ready
        - checks
      properties:
        ready:
          type: boolean
        checks:
          type: object
          additionalProperties:
            type: object
            required:
              - ok
            properties:
              ok:
                type: boolean
              detail:
                type: string

````

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