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
| Status | Body | Description |
|---|---|---|
200 | OK |
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
| Status | Body | Description |
|---|---|---|
200 | DeepHealth | The API, its database, and its queue work |
503 | DeepHealth | The database or the queue does not work |
200 response fields
| Name | Type | Description |
|---|---|---|
status required | string | One 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
| Status | Body | Description |
|---|---|---|
200 | Readiness | The API can serve requests |
503 | Readiness | The database did not answer |
200 response fields
| Name | Type | Description |
|---|---|---|
status required | string | One of: ready, not_ready. |
checks required | object | |
checks.database required | object | |
checks.migrations required | object | Migrations the database has applied. Null when the count cannot be read. |
checks.queue required | object | inline runs jobs in the API process; redis hands them to workers. |
checks.gateway | object | Whether 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). |