Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/KingPsychopath/oooc-fete-finder/llms.txt

Use this file to discover all available pages before exploring further.

The health endpoint provides a comprehensive health check of the system, including data store connectivity, event counts, and configuration status.

Get system health status

GET /api/admin/health

Authentication

This endpoint requires admin authentication. Include one of the following:
  • x-admin-key header with your admin key
  • Authorization: Bearer <token> header with a valid admin session token
  • Valid admin session cookie

Response

Returns comprehensive system health information including connectivity status, data counts, and warnings.
success
boolean
required
Whether the health check succeeded
timestamp
string
required
ISO 8601 timestamp of the health check
connectivity
object
required
Database and store connectivity status
connectivity.postgresConfigured
boolean
Whether Postgres is configured
connectivity.postgresTable
string
Name of the Postgres KV store table
connectivity.postgresReachable
boolean
Whether Postgres is reachable
connectivity.eventStoreReachable
boolean
Whether the event store is reachable
connectivity.storeProvider
string
The active store provider (e.g., “postgres”, “vercel”)
connectivity.storeProviderLocation
string
Location identifier for the store provider
mode
object
required
Data source configuration and mode
mode.configuredDataMode
string
Configured data source mode
mode.liveDataSource
string
Currently active data source
mode.remoteConfigured
boolean
Whether remote data source is configured
counts
object
required
Event count metrics across different layers
counts.storeMetadataRows
number
Row count from store metadata
counts.csvRawRows
number
Raw row count from CSV (excluding header)
counts.parsedEvents
number
Number of successfully parsed events
counts.liveRuntimeEvents
number
Current event count in runtime
counts.liveEvents
number
Alias for liveRuntimeEvents
store
object
required
Data store status and metadata
store.hasStoreData
boolean
Whether the store contains data
store.keyCount
number
Number of keys in the store
store.updatedAt
string | null
Last update timestamp
store.updatedBy
string
Identity of the last updater
store.origin
string
Origin of the data (e.g., “manual”, “import”)
store.postgresEventTables
object
Postgres event table statistics
store.postgresEventTables.rowCount
number
Number of rows in event tables
store.postgresEventTables.columnCount
number
Number of columns in event tables
store.postgresEventTables.meta
object
Event table metadata including updatedAt, updatedBy, origin, and checksum
warnings
object
required
Data validation warnings and mismatches
warnings.parsingWarnings
string[]
Warnings encountered during CSV parsing
warnings.countMismatches
string[]
Descriptions of count discrepancies between data layers
runtime
object
required
Runtime status information
runtime.lastCheckTime
string | null
Last time runtime data was checked
runtime.lastErrorMessage
string | null
Last error message from remote data fetch (if any)

Example response

{
  "success": true,
  "timestamp": "2026-02-28T10:30:00.000Z",
  "connectivity": {
    "postgresConfigured": true,
    "postgresTable": "app_kv_store",
    "postgresReachable": true,
    "eventStoreReachable": true,
    "storeProvider": "postgres",
    "storeProviderLocation": "us-east-1"
  },
  "mode": {
    "configuredDataMode": "store",
    "liveDataSource": "store",
    "remoteConfigured": false
  },
  "counts": {
    "storeMetadataRows": 150,
    "csvRawRows": 150,
    "parsedEvents": 148,
    "liveRuntimeEvents": 148,
    "liveEvents": 148
  },
  "store": {
    "hasStoreData": true,
    "keyCount": 3,
    "updatedAt": "2026-02-28T08:15:00.000Z",
    "updatedBy": "admin@example.com",
    "origin": "import",
    "postgresEventTables": {
      "rowCount": 150,
      "columnCount": 25,
      "meta": {
        "rowCount": 150,
        "updatedAt": "2026-02-28T08:15:00.000Z",
        "updatedBy": "admin@example.com",
        "origin": "import",
        "checksum": "abc123..."
      }
    }
  },
  "warnings": {
    "parsingWarnings": [],
    "countMismatches": [
      "Parsed event count (148) differs from raw CSV rows (150); this usually means rows were filtered/invalid during parsing"
    ]
  },
  "runtime": {
    "lastCheckTime": "2026-02-28T10:29:55.000Z",
    "lastErrorMessage": null
  }
}

Error responses

error
string
Error message describing what went wrong
401 Unauthorized
{
  "success": false,
  "error": "Unauthorized"
}
500 Internal Server Error
{
  "success": false,
  "error": "Database connection failed"
}
This endpoint performs extensive validation and comparison of event counts across multiple data layers. Count mismatches are expected during data transitions and are reported in the warnings section rather than causing failures.

Build docs developers (and LLMs) love