# get_health

Check that the API is up

`GET /healthz`

| | |
| --- | --- |
| Risk | read |
| Authentication | none (public) |
| Scopes | none |
| Idempotency | natural: repeating the call gives the same result |
| Dry run | not applicable |
| Success status | 200 |
| Response type | application/json |

## What it does

- Use when: A monitor or a script needs to know the API answers.
- Do not use when: you need account details (call get_current_access).
- Side effects: None.
- Reversible: Not applicable, nothing changes.
- Required scope: none (public).
- Idempotency: safe to repeat.
- Typical next step: call get_current_access with a key to check the credential.

## Request

### Path parameters

None.

### Query parameters

None.

## Response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `ok` | exactly true | yes |  |
| `service` | exactly "seemly-api" | yes |  |
| `environment` | string | yes |  |

## Examples

### healthy

Request:

```bash
curl 'https://api.seemly.com/healthz'
```

Response: `200`:

```json
{
  "ok": true,
  "service": "seemly-api",
  "environment": "production"
}
```

## Errors

| Status | Codes |
| --- | --- |
| 503 | [`service_unavailable`](/developers/md/errors/service_unavailable) |

Every error is an `application/problem+json` body with a `code`, a `fix` sentence and `next_actions`. See [reading a problem response](/developers/md/guides/agents#reading-a-problem-response).

## Typical next steps

- [`get_current_access`](/developers/md/operations/get_current_access)

## Related

- [OpenAPI document](https://api.seemly.com/v1/openapi.json)
- [Agent guide](/developers/md/guides/agents)
