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

# GET /healthz — backend and database health probe

> Liveness endpoint that pings the database. Returns 200 with a status object when healthy and 503 when the database is unreachable.

Liveness probe that pings the PostgreSQL database. Use it as a Kubernetes liveness or readiness probe, or from your monitoring system.

<Note>
  This endpoint lives at the domain root (`/healthz`), not under `/api`.
</Note>

**Method:** `GET` **Path:** `/healthz` **Auth:** None

## Responses

`200 OK`

```json theme={null}
{ "status": "ok" }
```

`503 Service Unavailable` when the database ping fails.

```json theme={null}
{ "error": "database unavailable" }
```

## Example

```bash theme={null}
curl -i https://ariacompute.com/healthz
```


## Related topics

- [HTTP status codes and error responses](/resources/errors.md)
- [Aria Compute REST API reference](/api-reference/introduction.md)
- [aria-router runtime and FFI](/sdks/router-runtime.md)
- [International and China sites, and how to choose](/concepts/sites-regions.md)
- [Top up your wallet with Stripe, WeChat Pay, or Alipay](/guides/top-up-wallet.md)
