Skip to content

Health

3 operations in the WP Waterfall API.

Health check

get/healthPermalink to Health check

  • Dashboard session only, no API key

Answers status: ok when the API is up. It needs no sign-in and no API key, and it is not rate limited.

Responses

StatusBodyDescription
200OK

Deep health check

get/health/deepPermalink to Deep health check

  • Dashboard session only, no API key

No sign-in. Answers 200 when the database answers and every queue has a consumer, and 503 when one of them does not. It does not say which, and it reuses an answer for 10 seconds, so it is safe to poll. Point an uptime monitor here. GET /health only says the process is running.

Responses

StatusBodyDescription
200DeepHealthThe API, its database, and its queue work
503DeepHealthThe database or the queue does not work

200 response fields

NameTypeDescription
status requiredstringOne of: ok, unavailable.

Readiness check

get/readyPermalink to Readiness check

  • Dashboard session only, no API key

No sign-in. Answers 200 when the API can reach its database and 503 when it cannot, with the same body. The body also says whether the node gateway accepts a connection; that never changes the status code. GET /health only says the process is running, and GET /health/deep also checks the queue.

Responses

StatusBodyDescription
200ReadinessThe API can serve requests
503ReadinessThe database did not answer

200 response fields

NameTypeDescription
status requiredstringOne of: ready, not_ready.
checks requiredobject
checks.database requiredobject
checks.migrations requiredobjectMigrations the database has applied. Null when the count cannot be read.
checks.queue requiredobjectinline runs jobs in the API process; redis hands them to workers.
checks.gatewayobjectWhether the node gateway accepts a connection: ok, down, or off when no gateway is set. For information only: the API serves sign-in and every read without the gateway, so a gateway that is down never makes the API not ready (that would restart it for nothing).