Skip to main content

Health Checks

OPToggles exposes several endpoints for health checks by external services:

/health/live Returns 200 as long as OPToggles runs.

Returns 200 if init sequence is done, including:

  • Retrieving OPA's address
  • Registering the update callback
  • Creating the toggles

Returns 503 if the sequence init wasn't completed.

Returns 200 if started and running without errors.
Returns 500 if there's an ongoing failure to query OPA or update to the target instance.