---
title: "getHealth"
---

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

# getHealth

Path: Forge API › health

`GET /health`

Whether the API is up. Needs no session.

## 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

Success

#### Example

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

- `ok` (`getHealth.response.200.ok`; boolean, required)

### 400

InvalidRequest

#### Example

```json
{
  "_tag": "InvalidRequest",
  "part": "path",
  "issues": [
    {
      "path": [
        "string"
      ],
      "message": "string"
    }
  ]
}
```

- `_tag` (`getHealth.response.400._tag`; string, required)
  - one of `"InvalidRequest"`
- `part` (`getHealth.response.400.part`; string, required)
  - one of `"path"`, `"query"`, `"headers"`, `"body"`
- `issues` (`getHealth.response.400.issues`; array of object, required)
  - `path` (`getHealth.response.400.issues.path`; array\<any of\>, required)
    - any of the following: `string`, `integer`
  - `message` (`getHealth.response.400.issues.message`; string, required)

### 429

RateLimited

#### Example

```json
{
  "_tag": "RateLimited"
}
```

- `_tag` (`getHealth.response.429._tag`; string, required)
  - one of `"RateLimited"`

### 503

RateLimitUnavailable

#### Example

```json
{
  "_tag": "RateLimitUnavailable"
}
```

- `_tag` (`getHealth.response.503._tag`; string, required)
  - one of `"RateLimitUnavailable"`


Source: https://buildrforge.com/docs/api/health/list/index.md
