# Status

Fonte: https://lunahia.com.br/en/docs/reference/status

Availability probes and the state of the platform. No authentication.

### Check whether the API is up

`GET /healthz`

Answers 200 while the process is running. It requires no authentication and touches neither database nor queue, because it probes the process and not its dependencies. A 200 here does not promise that message sending works.

Authentication: Public, no key

#### Code examples

```bash
curl -X GET "https://api.lunahia.com.br/healthz"
```

#### Responses

**200**: Success.

### See whether Luna is receiving and delivering

`GET /status`

Answers 200 with the platform state, measured every few minutes by a synthetic message that enters through the same door Meta uses and has to reach a destination over HTTPS. It requires no authentication and reveals no account data. When there is no recent check yet, the state is unknown, never ok.

Authentication: Public, no key

#### Code examples

```bash
curl -X GET "https://api.lunahia.com.br/status"
```

#### Responses

**200**: Success.

```json
{
  "status": "ok",
  "checkedAt": "YOUR_CHECKEDAT",
  "components": {
    "ingestion": "ok",
    "delivery": "ok",
    "partitions": "ok"
  },
  "since": "YOUR_SINCE"
}
```

### Introduce the API

`GET /`

Answers 200 with the API name and the addresses of the documentation and of the OpenAPI specification. It requires no authentication and touches neither database nor queue.

Authentication: Public, no key

#### Code examples

```bash
curl -X GET "https://api.lunahia.com.br/"
```

#### Responses

**200**: Success.

```json
{
  "name": "YOUR_NAME",
  "docs": "YOUR_DOCS",
  "openapi": "YOUR_OPENAPI"
}
```
