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

# Readiness probe

> Kubernetes-compatible readiness probe. Checks all dependencies (database, Redis, etc.) and returns 200 only when the service is ready to accept traffic. Returns 503 with dependency status details when not ready.




## OpenAPI

````yaml /openapi-spec.yaml get /health/ready
openapi: 3.0.3
info:
  title: LucidLayer API
  version: 1.0.0
  description: >
    LucidLayer API — the verifiable AI execution layer.


    Blockchain-anchored infrastructure giving AI assets (models, agents, tools,
    compute, datasets)

    provable identity, cryptographic receipts, and reputation backed by real
    traffic data.


    **Open-source and self-hostable.** Run your own instance with `docker
    compose up`

    or `npm start` (port 3001). The SDK defaults to `http://localhost:3001` — no
    cloud

    account required.


    This OpenAPI spec is the source of truth for all backend routes and is used
    to

    generate SDK clients via [Speakeasy](https://speakeasy.com).


    ## Version Strategy


    | Prefix | Status | Description |

    |--------|--------|-------------|

    | `/v1/*` | **Stable** | Core API — passports, receipts, epochs, payouts,
    inference, agent deployment. Production-ready and covered by semver
    guarantees. |

    | `/v2/*` | **Stable** | Cross-chain and reputation APIs — EVM multi-chain,
    ERC-8004, pluggable reputation. Production-ready. |

    | `/api/agents/*` | **Deprecated** | Legacy agent MMR orchestration.
    Retained for SDK backward compatibility only. Migrate to `/v1/agents/*`
    (AgentDeploy, AgentMirror). Will be removed in a future major version. |

    | `/health/*` | **Stable** | System health probes — not versioned
    (infrastructure endpoints). |


    ### Migration Path (legacy `/api/agents/*` to `/v1/agents/*`)


    1. Replace `init_agent` + `process_agent_epoch` with `lucid_deploy_agent`
    (one-click deployment).

    2. Replace `generate_agent_proof` with `lucid_get_agent_proof` /
    `lucid_get_agent_run_proof` (AgentMirror).

    3. Replace `get_agent_stats` / `get_agent_history` with
    `lucid_get_agent_receipts` + `lucid_get_agent_epoch`.

    4. All legacy operationIds will be removed when the next major version
    ships.


    ## Route Groups


    - `/v1/*` — Passports, Match, Run, Receipts, Epochs, Payouts, Compute

    - `/v1/agents/*` — Agent Deployment, Wallet, Revenue, Mirror
    (receipts/proofs)

    - `/v1/a2a/*` — A2A Protocol (Agent-to-Agent)

    - `/v1/config/*` — Payment configuration and grants

    - `/v2/chains/*` — Cross-chain status and routing

    - `/v2/agents/*` — ERC-8004 agent registration and reputation

    - `/v2/reputation/*` — Pluggable reputation scoring, cross-chain aggregation

    - `/v2/payouts/*` — On-chain payout execution

    - `/health/*` — System health and dependency checks

    - `/api/agents/*` — Legacy agent MMR orchestration (deprecated)
servers:
  - url: http://localhost:3001
    description: Local / self-hosted (default for open-source users)
    x-speakeasy-server-id: local
  - url: https://{host}:{port}
    description: Self-hosted instance (custom host and port)
    x-speakeasy-server-id: self-hosted
    variables:
      host:
        default: localhost
        description: Hostname or IP of your Lucid instance
      port:
        default: '3001'
        description: Port your Lucid instance listens on
  - url: https://api.lucid.foundation
    description: Managed cloud (Raijin Labs hosted)
    x-speakeasy-server-id: cloud
security:
  - BearerAuth: []
  - {}
tags:
  - name: Passports
    description: >-
      AI asset identity — create, list, update, delete
      model/compute/tool/dataset/agent passports
  - name: Match
    description: Policy-based compute matching and route planning
  - name: Run
    description: OpenAI-compatible inference (chat completions) and model listing
  - name: Receipts
    description: Cryptographic receipts — create, verify, and generate MMR inclusion proofs
  - name: Epochs
    description: Epoch lifecycle — creation, finalization, on-chain anchoring, and retry
  - name: Payouts
    description: Revenue split calculation and payout execution (basis-point math)
  - name: Compute
    description: Compute node heartbeat registration and health monitoring
  - name: Health
    description: System health — liveness, readiness, and per-dependency status checks
  - name: Agents
    description: >-
      DEPRECATED: Legacy agent MMR orchestration (use AgentDeploy, AgentMirror
      instead)
  - name: Shares
    description: Share token launch and revenue airdrop for fractional AI asset ownership
  - name: Escrow
    description: Cross-chain escrow lifecycle — create, release, dispute, and query
  - name: Disputes
    description: Escrow dispute resolution — open, submit evidence, resolve, appeal
  - name: Paymaster
    description: >-
      ERC-4337 gas sponsorship — sponsor transactions, estimate fees, check
      rates
  - name: Identity
    description: >-
      Cross-chain identity bridging — CAIP-10 linking, resolution, and chain
      discovery
  - name: TBA
    description: ERC-6551 Token Bound Accounts — create and query agent wallets
  - name: Modules
    description: >-
      ERC-7579 module management — install, uninstall, and configure
      policy/payout modules
  - name: zkML
    description: >-
      Zero-knowledge ML — prove inference, verify proofs, register models
      on-chain
  - name: Payments
    description: >-
      x402 payment configuration — pricing, facilitators, grants, and
      subscription
  - name: AgentDeploy
    description: >-
      Agent deployment lifecycle — deploy, status, logs, scale, terminate across
      6 targets
  - name: AgentWallet
    description: Agent PDA wallet — balance, send, policy limits, and transaction history
  - name: AgentRevenue
    description: >-
      Agent revenue pools — earnings tracking, airdrop triggers, and pool
      queries
  - name: A2A
    description: Google A2A protocol — agent cards, task submission, and task lifecycle
  - name: Reputation
    description: >-
      Pluggable reputation scoring — algorithms, compute scores, and composite
      aggregation
  - name: CrossChain
    description: >-
      EVM multi-chain operations — chain status, ERC-8004 registration,
      cross-chain reputation and payouts
  - name: AgentMirror
    description: >-
      Read-only agent proof endpoints — receipts, epochs, and MMR proofs (admin
      auth required)
  - name: Memory
    description: >-
      Agent memory — episodic, semantic, procedural, entity, trust-weighted,
      temporal types with hash-chain provenance
  - name: Anchoring
    description: >-
      DePIN anchoring control plane — query, verify, and trace artifact anchor
      records
  - name: AgentLaunch
    description: >-
      Agent activation — launch via image or base runtime, blue-green rollout,
      promotion, and rollback
  - name: Webhooks
    description: >-
      Deployment webhook receivers — normalizes provider-specific callbacks into
      deployment events
paths:
  /health/ready:
    get:
      tags:
        - Health
      summary: Readiness probe
      description: >
        Kubernetes-compatible readiness probe. Checks all dependencies
        (database, Redis, etc.) and returns 200 only when the service is ready
        to accept traffic. Returns 503 with dependency status details when not
        ready.
      operationId: lucid_check_readiness
      responses:
        '200':
          description: Ready
          content:
            application/json:
              schema:
                type: object
                required:
                  - status
                properties:
                  status:
                    type: string
                  timestamp:
                    type: string
                    format: date-time
                  dependencies:
                    type: object
                    additionalProperties:
                      $ref: '#/components/schemas/HealthCheckResult'
        '503':
          description: Not ready
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                  timestamp:
                    type: string
                    format: date-time
                  error:
                    type: string
                  dependencies:
                    type: object
                    additionalProperties:
                      $ref: '#/components/schemas/HealthCheckResult'
      x-codeSamples:
        - lang: typescript
          label: Typescript (SDK)
          source: |-
            import { RaijinLabsLucidAi } from "raijin-labs-lucid-ai";

            const raijinLabsLucidAi = new RaijinLabsLucidAi();

            async function run() {
              const result = await raijinLabsLucidAi.health.lucidCheckReadiness();

              console.log(result);
            }

            run();
components:
  schemas:
    HealthCheckResult:
      type: object
      required:
        - status
      properties:
        status:
          type: string
          enum:
            - healthy
            - degraded
            - down
        latency:
          type: number
        error:
          type: string
        details:
          type: object
          additionalProperties: true
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Lucid API key (lk_live_... or lk_test_...)

````