App health check
GET
/health
const url = 'https://example.com/api/health';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/healthUsed by Fly.io load-balancer. Returns immediately with process liveness (version, uptime). No external calls — always 200.
Responses
Section titled “ Responses ”Healthy
Media type application/json
object
ok
required
boolean
version
required
string
uptime_s
required
number
protocol_version
required
string