Can a request actually reach the database right now -- unauthenticated, like /api/health, because the callers (an external prober outside Railway, the deployer's outage watch) hold no bearer token for this API, and the answer is two timings, pool sizes and a refusal counter.

WHY IT EXISTS (Frederick, 2026-10-19, production down 19:48 to 20:31 PT with Railway saying SUCCESS throughout; the scale plan, Slice 1). /api/health answers from the process and reads the database "best effort", so it could not say the database had stopped answering. This runs SELECT 1 on a fresh connection AND on the request pool, each under 2 s, and answers 503 when either fails, with the typed error name (never a driver message: the route is public). Everything about what it checks, why it is cached and what it will not say is in app/platform/deep_health.py.

get/api/health/deep

Request

  • Base URL
    https://api.pigeonly.com (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Response

Successful Response

unknown required

Changes