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

# Health Check

> Enhanced health check endpoint that validates database connectivity,
authentication configuration, billing integration, scoring engine
availability, and required environment variables. Returns a status
of "healthy" or "degraded" with per-component check results.

This endpoint does not require authentication.




## OpenAPI

````yaml get /api/health
openapi: 3.1.0
info:
  title: Dacard.ai API
  description: >
    Decision intelligence platform for AI-native product teams.

    Score, connect, and compound your product maturity across two original
    frameworks.
  version: 0.1.0
  contact:
    name: Darren Card
    email: darren@darrencard.com
    url: https://darrencard.com
  license:
    name: Proprietary
servers:
  - url: https://app.dacard.ai
    description: Production
  - url: http://localhost:3001
    description: Local development
security: []
tags:
  - name: Scoring
    description: AI maturity scoring engine
  - name: Lifecycle
    description: Development Lifecycle assessment
  - name: Products
    description: Product management and analytics
  - name: Dashboard
    description: Dashboard and suite analytics
  - name: Account
    description: Account and team management
  - name: Billing
    description: Stripe billing integration
  - name: User
    description: User profile, onboarding, and preferences
  - name: System
    description: Health checks and diagnostics
  - name: Internal
    description: Internal and admin endpoints (PQL tracking, demo data management)
  - name: Agents
    description: Agent Studio - autonomous AI agents, triggers, and artifacts
  - name: Intelligence
    description: Alerts, coaching context, and score timeline
  - name: Anomalies
    description: Signal anomaly detection, acknowledgment, and sensitivity overrides
  - name: Outcomes
    description: Longitudinal outcome observations for validation study (E2.2)
  - name: Settings
    description: User and account notification preferences
  - name: Webhooks
    description: Outbound webhook management
  - name: API Keys
    description: API key management (Team and Enterprise plans)
paths:
  /api/health:
    get:
      tags:
        - System
      summary: Health check
      description: |
        Enhanced health check endpoint that validates database connectivity,
        authentication configuration, billing integration, scoring engine
        availability, and required environment variables. Returns a status
        of "healthy" or "degraded" with per-component check results.

        This endpoint does not require authentication.
      operationId: getHealth
      responses:
        '200':
          description: All systems healthy
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HealthCheck'
        '503':
          description: One or more systems degraded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HealthCheck'
      security: []
components:
  schemas:
    HealthCheck:
      type: object
      properties:
        status:
          type: string
          enum:
            - healthy
            - degraded
          description: Overall system status
        version:
          type: string
          description: Application version
          example: 0.1.0
        commit:
          type: string
          description: Short git commit SHA
          example: abc1234
        uptime_seconds:
          type: integer
          description: Seconds since process start
        checks:
          type: object
          properties:
            database:
              $ref: '#/components/schemas/CheckResult'
            auth:
              $ref: '#/components/schemas/CheckResult'
            billing:
              $ref: '#/components/schemas/CheckResult'
            scoring:
              $ref: '#/components/schemas/CheckResult'
            env:
              $ref: '#/components/schemas/CheckResult'
        timestamp:
          type: string
          format: date-time
    CheckResult:
      type: object
      properties:
        status:
          type: string
          enum:
            - ok
            - error
        latency_ms:
          type: integer
          description: Check latency in milliseconds (when applicable)
        error:
          type: string
          description: Error message (when status is error)
        missing:
          type: array
          items:
            type: string
          description: Missing environment variables (for env check only)

````