GET /health
Returns the build version, environment, and service identity. Use this as your primary liveness probe — if this endpoint responds with200, the API process is running.
Always
true when the service is healthy.Always
"api" — identifies this as the Switchbord API process.The deployed build version string (e.g.,
"0.0.1").The runtime environment (e.g.,
"production", "staging", "development").ISO 8601 timestamp of when the health check was evaluated.
| Status | Condition |
|---|---|
200 | Service is running and healthy |
GET /ready
Returns the full runtime status payload, including provider configuration and queue state. Use this as your readiness probe — it confirms not just that the process is running, but that the backing store and runtime are configured and operational.The
/ready response shape may expand in future releases as additional runtime state is surfaced. In development mode, fields like providerConfigured and workerStatus reflect the configured test store.| Status | Condition |
|---|---|
200 | Runtime is ready to accept traffic |
Using the probes together
| Probe | Use for | Checks |
|---|---|---|
GET /health | Liveness — is the process alive? | Process running, runtime identity |
GET /ready | Readiness — is the service ready for traffic? | Backing store, provider configuration, runtime status |
GET /ready to return 200 before routing traffic to new instances. Use GET /health for ongoing liveness monitoring.