# Health Check

Lightweight liveness probe for the Aurea API — use to verify the service is reachable before starting a flow.

## Overview

This endpoint is public, unauthenticated, and intentionally cheap. It returns a small JSON payload with the current status and process uptime. Use it from client apps on startup, from load balancers, and from uptime-monitoring systems. Do not treat this as a deep health check — a `200 OK` here means the API process is up and the router is serving, not that every downstream provider (the bank ramp, Monerium, RPCs) is reachable.

### `GET /health`

Authentication: none (public endpoint).

Returns a 200 OK if the API process is running.

**Responses**

`200` OK

```json
{ "status": "ok", "uptime_seconds": 12345 }
```

## Implementation

```typescript
export async function isApiReachable(): Promise<boolean> {
  try {
    const res = await fetch('https://api.aureahub.com/health', { method: 'GET' });
    if (!res.ok) return false;
    const body = await res.json();
    return body.status === 'ok';
  } catch {
    return false;
  }
}
```

---

Web version: https://docs.aureahub.com/#health-check
