API Reference
Health Endpoint
Required health check endpoint specification. Every module must expose GET /api/health.
Health Endpoint
Every Insolitum Universe module must expose a health check endpoint at GET /api/health.
Contract
Request
Response
Fields
| Field | Type | Required | Description |
|---|---|---|---|
status | "ok" | Yes | Must be exactly "ok" |
module | string | Yes | Module ID / slug |
version | string | Yes | SemVer version |
timestamp | string | Yes | Current ISO timestamp |
uptime_since | string | No | When the server started |
checks | object | No | Service connectivity checks |
checks.supabase | boolean | No | Whether Supabase URL is configured |
HTTP Status
Must return 200 OK.
Any status code other than 200, or a response where status !== "ok", will cause the validation to fail.
Performance
| Metric | Target |
|---|---|
| Response time | < 500ms (ideal) |
| Timeout | 5000ms (validation aborts) |
Implementation
The module-starter template includes a ready-to-use implementation:
When Is It Checked?
The health endpoint is validated during:
- Marketplace submission β automated validation
- Periodic monitoring β Shell checks module health
- Module activation β when an organization enables the module
- Manual review β by the Insolitum review team
Testing
Use the Module Validator or curl: