# health check

Liveness and readiness.

| Command | Summary |
| --- | --- |
| [`health check`](/content/docs/cli/commands/health#health-check/index.html) | Check that the API is up (liveness) |
| [`health ready`](/content/docs/cli/commands/health#health-ready/index.html) | Check that the API can serve requests (readiness) |

Every command also takes the [global flags](/content/docs/cli/commands#global-flags/index.html).

## [health check](/content/docs/cli/commands/health#health-check/index.html)

Check that the API is up (liveness).

Always 200 {“status”: “ok”} while the process serves requests. No authentication.

```shell
machinemail health check [flags]
```

### [Examples](/content/docs/cli/commands/health#examples/index.html)

```shell
machinemail health check
```

### [API](/content/docs/cli/commands/health#api/index.html)

- [`GET /health`](/content/docs/reference/api/health/index.html)

## [health ready](/content/docs/cli/commands/health#health-ready/index.html)

Check that the API can serve requests (readiness).

Pings the storage backend: 200 with status: ready (checks.storage: true) when it answers, 503 with status: unavailable when it does not. No authentication.

```shell
machinemail health ready [flags]
```

### [Examples](/content/docs/cli/commands/health#examples-1/index.html)

```shell
machinemail health ready
```

### [API](/content/docs/cli/commands/health#api-1/index.html)

- [`GET /health/ready`](/content/docs/reference/api/health/index.html)
