---
title: "Health Check"
method: GET
path: "/api/health"
tags: ["health"]
---

# Health Check

`GET /api/health`

## Request

- Base URL: `https://legalize.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://legalize.dev/api/health`
- Auth: none declared

Health check for monitoring. No authentication required.

Deliberately a sync def, not async: the body does blocking psycopg2 I/O
(get_connection/execute/close). An async handler runs directly on the
event loop, so a slow or hung DB would block every other request this
worker is serving, not just this one. FastAPI dispatches a sync path
function to a thread pool instead, which keeps that I/O off the loop.

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.dev/legalize/apis/legalize-api.md) · [All operations](https://skmtc.dev/legalize/apis/legalize-api/llms.txt) · [OpenAPI document](https://skmtc.dev/legalize/apis/legalize-api/revisions/305b67a14660?raw)
