> ## Documentation Index
> Fetch the complete documentation index at: https://docs.memoclaw.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Health Check

> GET /health — Check API and database status.

<Note>
  This endpoint is free and does not require authentication.
</Note>

## Response (200 — Healthy)

<ResponseField name="status" type="string">
  `"healthy"`
</ResponseField>

<ResponseField name="db" type="string">
  `"connected"`
</ResponseField>

<ResponseField name="version" type="string">
  API version.
</ResponseField>

<ResponseField name="timestamp" type="string">
  ISO 8601 timestamp.
</ResponseField>

## Response (503 — Unhealthy)

Same response shape, but with degraded values:

<ResponseField name="status" type="string">
  `"unhealthy"`
</ResponseField>

<ResponseField name="db" type="string">
  `"disconnected"`
</ResponseField>

<Warning>
  A 503 response means the database is unreachable. The health check has a 2-second timeout.
</Warning>

## Example

<CodeGroup>
  ```json Healthy (200) theme={null}
  {
    "status": "healthy",
    "db": "connected",
    "version": "1.0.0",
    "timestamp": "2025-01-15T10:30:00Z"
  }
  ```

  ```json Unhealthy (503) theme={null}
  {
    "status": "unhealthy",
    "db": "disconnected",
    "version": "1.0.0",
    "timestamp": "2025-01-15T10:30:05Z"
  }
  ```
</CodeGroup>
