---
title: "Service status"
description: "Reports that the service is up."
---

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

Path: AeroStats › Status

`GET /health`

Reports that the service is up.

## Authentication

- `CF-Access-Client-Id`, apiKey, in header, header `CF-Access-Client-Id`
- `CF-Access-Client-Secret`, apiKey, in header, header `CF-Access-Client-Secret`

## Code samples

### cURL

```bash
curl --request GET \
  --url https://api.aerostats.ch/health \
  --header 'CF-Access-Client-Id: <CF-Access-Client-Id>' \
  --header 'CF-Access-Client-Secret: <CF-Access-Client-Secret>'
```

### TypeScript

```typescript
const url = 'https://api.aerostats.ch/health';
const options = {
  method: 'GET',
  headers: {'CF-Access-Client-Id': '<CF-Access-Client-Id>', 'CF-Access-Client-Secret': '<CF-Access-Client-Secret>'}
};

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

### Python

```python
import requests

url = "https://api.aerostats.ch/health"

headers = {
    "CF-Access-Client-Id": "<CF-Access-Client-Id>",
    "CF-Access-Client-Secret": "<CF-Access-Client-Secret>"
}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

The service is up.

#### Example

```json
{
  "ok": true
}
```

- `ok` (`getHealth.response.200.ok`; boolean, required) — True when the service is up.

### 401

The credentials are missing or invalid. This answer comes from the
gateway in front of the API, and its body is an HTML page.


Source: https://aerostats.ch/api/health/list/index.md
