Get Health
Response Semantics
- If the server has no database handle, the route returns
{ "status": "ok", "version": "..." }. - If the database check fails, the route returns
503with{ "status": "unhealthy", "version": "...", "error": "database_unreachable" }. - When the database is available, the response includes deployment metadata, bootstrap status, feature flags, an intelligence monitor summary, and optionally dev-server health.
Returned Fields
| Field | Meaning |
|---|---|
status | ok when the health check succeeds |
version | Current server version string |
deploymentMode | Current deployment mode reported by the server |
deploymentExposure | Public/private exposure classification |
authReady | Whether auth is considered ready |
bootstrapStatus | ready or bootstrap_pending in authenticated deployments |
bootstrapInviteActive | Whether a bootstrap invite is currently active |
features.companyDeletionEnabled | Company-deletion feature flag |
intelligenceMonitor | Monitor summary from the intelligence service |
devServer | Present only when persisted dev-server status exists |
Get Migration Status
Response Semantics
- If the database handle is missing, the route returns
503with{ "error": "database_unavailable" }. - If the migration lookup fails, the route returns
500with{ "error": "migration_status_check_failed", "message": "..." }. - On success, the route reports the resolved DB source, migration status, table count, current applied migration file, server version, and any pending migrations.
Returned Fields
| Field | Meaning |
|---|---|
source | Which DB target the migration inspection used |
status | upToDate or needsMigrations |
tableCount | Number of discovered public tables during inspection |
currentVersion | Latest applied migration file name, or null if unavailable |
targetVersion | Server version string |
pendingMigrations | Pending migration file names when status is needsMigrations |
estimatedTimeSeconds | Currently null; the handler does not estimate runtime |
reason | Present only when status is needsMigrations |