Liveness probe (DB connectivity) plus the deployed version.
GET
/api/health
const url = 'https://api.tradr.cloud/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://api.tradr.cloud/api/healthRuns SELECT 1 against the database. version is the deployed version string (e.g. v0.2.0-f51f9f5) baked into the image at build time via the APP_VERSION env; the field is omitted where unset (local dev).
Responses
Section titled “Responses”{ status: “ok”, version? }
{ status: “error”, version? } — DB unreachable.