Skip to main content
GET
Whether a password is needed, and whether requests will be accepted at all

Response

200

{ gateEnabled, mode }, plus reason when mode is closed. gateEnabled is true only when ACCESS_PASSWORD_HASH is set: it answers one question — should the client show a password box? — and a host that brings its own auth hook has no password to collect. mode answers the other one — will my other requests be accepted? — and is one of hook (config.auth was supplied, so the host decides per request), token (ACCESS_PASSWORD_HASH and/or ORCHESTRATOR_ACCESS_TOKEN is configured, so the built-in token gate runs), open-dev (neither is configured and NODE_ENV is not production, so nothing is refused), or closed (production with neither configured, so every gated route answers 401). reason is the same sentence a closed mount's 401 carries.