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

# Health Check

> Check the health status of the API service and its components.

Check the health status of the API service and its components.

### Response

`RouterHealthResponse`

<ResponseField name="status" type="string" required>
  Overall service status
</ResponseField>

<ResponseField name="timestamp" type="string (date-time)">
  Response timestamp
</ResponseField>

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

<ResponseField name="uptime" type="number" required>
  Service uptime in seconds
</ResponseField>

<ResponseField name="components" type="object">
  Component statuses keyed by component name
</ResponseField>

### Status codes

| Code  | Meaning                 |
| ----- | ----------------------- |
| `200` | Service is healthy      |
| `401` | Authentication required |
| `422` | Validation error        |
| `429` | Rate limit exceeded     |
| `503` | Service is unhealthy    |

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'http://localhost:8000/health' \
    --header 'Authorization: Bearer YOUR_API_KEY'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "status": "pending",
    "timestamp": "2026-08-31T14:22:05Z",
    "version": "2026-08-01",
    "uptime": 1.5,
    "components": {}
  }
  ```
</ResponseExample>
