# Check server health

## `GET /health`

Check the server version and database connectivity.

```json
{
  "tags": [
    "Workspace"
  ],
  "operationId": "health",
  "summary": "Check server health",
  "description": "Check the server version and database connectivity.",
  "security": [],
  "parameters": [],
  "responses": {
    "200": {
      "description": "Successful response.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Health"
          },
          "example": {
            "status": "ok",
            "version": "0.1.0",
            "database": "ok"
          }
        }
      }
    },
    "503": {
      "description": "The database is unreachable.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Health"
          },
          "example": {
            "status": "error",
            "version": "0.1.0",
            "database": "unreachable"
          }
        }
      }
    }
  }
}
```

[Full OpenAPI contract](/openapi.json)
