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

# Check read-model database connectivity



## OpenAPI

````yaml /_generated/openapi.yaml get /query/health
openapi: 3.1.0
info:
  title: Joyride Core HTTP API
  version: 0.1.0
  description: |
    HTTP endpoints served by joyride-core v8 components. Decimal money,
    price, and quantity fields are strings with up to 8 decimal places unless
    noted otherwise.
servers:
  - url: https://joyride.exchange/api
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Public
  - name: Query
  - name: Withdrawals
  - name: Market Data
    description: Publicly accessible market data. No authentication required.
  - name: Account
    description: Account-scoped history and provisioning. Requires a bearer JWT.
  - name: Referrals
    description: Referral-code validation and attribution surfaces.
  - name: AI Chat
    description: >
      AI-powered trading assistant. Uses SIWS (Sign In With Solana)
      authentication

      and JWT sessions. Returns responses as Server-Sent Events (SSE).
paths:
  /query/health:
    get:
      tags:
        - Query
      summary: Check read-model database connectivity
      operationId: getQueryHealth
      responses:
        '200':
          description: Query API can reach Postgres
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HealthResponse'
        '401':
          $ref: '#/components/responses/QueryError'
        '503':
          $ref: '#/components/responses/QueryError'
components:
  schemas:
    HealthResponse:
      type: object
      required:
        - ok
      properties:
        ok:
          const: true
    QueryErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
  responses:
    QueryError:
      description: Query API error response
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/QueryErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        SIWS-issued JWT. Admin commands require the `admin` role, `admin:*`, or
        the exact `admin:<type>` scope; admin reads use their documented read
        scope.

````