> For the complete documentation index, see [llms.txt](https://docs.ai.insly.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ai.insly.com/nora/api-documentation/health-check.md).

# Health check

Use this endpoint to check whether Nora is up before or between API calls. It needs no token, is not tied to your organisation, and changes nothing.

**Endpoint**

`GET /api/heartbeat`

Nora checks its database, cache and job queue on every call. Each check times out after 3 seconds.

**Example 200 response**

```json
{
  "status": "healthy",
  "envName": "production"
}
```

| Field     | Description                                                                                  |
| --------- | -------------------------------------------------------------------------------------------- |
| `status`  | `healthy` when every dependency responded, `unhealthy` when at least one did not.            |
| `envName` | The environment that answered. Use it to confirm you are calling the environment you expect. |

{% hint style="warning" %}

#### Read the status field, not only the HTTP code

The endpoint returns `200` when Nora is reachable, even if `status` is `unhealthy`. Treat Nora as healthy only when the response is `200` **and** `status` is `healthy`. A timeout, a connection error or a `5xx` means Nora is unreachable.
{% endhint %}

### Do not use other endpoints as a health check

Use this endpoint for health monitoring rather than a business endpoint such as `GET /api/webhook/subscriptions`. Business endpoints check your token's permissions and count towards your [rate limit](https://docs.ai.insly.com/nora/api-documentation/authentication-and-limits.md#rate-limiting), so a permission change can make Nora look down when it is not.

To confirm that your credentials still work, request a token with [`POST /api/token`](https://docs.ai.insly.com/nora/api-documentation/authentication-and-limits.md#obtain-credentials). That is a separate check from service health.
