Skip to content

Get Health

Stable

Getting the health status checks whether the Daemon is operational and returns its instance identifier. The check is a lightweight probe; any unexpected error during the check causes the Daemon to report itself as unavailable.

PropertyValue
Applies toDaemon
TriggerClient polls GET /api/health to verify the Daemon is running
PreconditionsNone

Inputs

There are no inputs.

Assertions

AssertionStatus
None — the operation always returns a response

Outputs

{ status: "UP", daemonInstanceId: string } : Returned with 200 OK when the Daemon is healthy.

{ status: "DOWN", daemonInstanceId: string, error: string } : Returned with 503 Service Unavailable when an unexpected error occurs during the health check.

Effects

None.

Behavior

mermaid
flowchart TD
    Start([GET /api/health]) --> Check[getDaemonInstanceId]

    Check --> Ok{Succeeded?}
    Ok -- Yes --> Up(["200 { status: 'UP', daemonInstanceId }"])
    Ok -- No --> Down(["503 { status: 'DOWN', daemonInstanceId, error }"])

    style Up fill:#4ade80,color:#000
    style Down fill:#f87171,color:#fff

See Also

  • Get config — Spec page for retrieving the Daemon's UI configuration.