---
title: "Liveness check"
---

> Documentation Index
> Fetch the complete documentation index at: https://sandrinodm.github.io/logbrook/llms.txt
> Use this file to discover all available pages before exploring further.

# Liveness check

Path: Logbrook API › Server

`GET /health`

## Code samples

### cURL

```bash
curl --request GET \
  --url '<base-url>/health'
```

### TypeScript

```typescript
const url = '<base-url>/health';
const options = {method: 'GET'};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "<base-url>/health"

response = requests.get(url)

print(response.text)
```

## Responses

### 200

Successful response

#### Example

```json
{
  "status": "ok"
}
```

- `status` (`getHealth.response.200.status`; string, required)

### 400

Invalid input

#### Example

```json
{
  "error": "string"
}
```

- `error` (`getHealth.response.400.error`; string, required)

### 401

Missing or invalid token

#### Example

```json
{
  "error": "string"
}
```

- `error` (`getHealth.response.401.error`; string, required)

### 403

Source outside read scope

#### Example

```json
{
  "error": "string"
}
```

- `error` (`getHealth.response.403.error`; string, required)

### 413

Payload exceeds configured budget

#### Example

```json
{
  "error": "string"
}
```

- `error` (`getHealth.response.413.error`; string, required)

### 429

Capacity exhausted; Retry-After: 1

#### Example

```json
{
  "error": "string"
}
```

- `error` (`getHealth.response.429.error`; string, required)

### 503

Storage unavailable

#### Example

```json
{
  "error": "string"
}
```

- `error` (`getHealth.response.503.error`; string, required)

### 504

Query deadline expired

#### Example

```json
{
  "error": "string"
}
```

- `error` (`getHealth.response.504.error`; string, required)


Source: https://sandrinodm.github.io/logbrook/api/health/index.md
