# Status

> Check that the API answers and whether it is switched on, without a key.

Source: https://docs.b7r.app/status

## Check the API

`GET /v1/status`

No key needed. The answer is kept for about 30 seconds, so polling it more often than that tells you nothing new.

When `api_enabled` is `false`, every call with a key answers `503 api_unavailable` until it is switched back on. Check it before a batch of calls, or in your own health check.

Key: No key.

Answer:

- `status` (constant, required): Always `"ok"`.
- `api_enabled` (boolean, required)
- `time` (string, required)

Errors: `invalid_request` (400), `rate_limited` (429), `internal_error` (500), `upstream_unavailable` (502), `request_expired` (503), `service_unavailable` (503), `upstream_timeout` (504). See [Errors](https://docs.b7r.app/errors).

Request:

```bash
curl https://api.b7r.app/v1/status
```

```javascript
const res = await fetch("https://api.b7r.app/v1/status");
const data = await res.json();
```

```python
import requests

res = requests.get(
    "https://api.b7r.app/v1/status",
    timeout=30,
)
data = res.json()
```

Answer (200 OK):

```json
{
  "status": "ok",
  "api_enabled": true,
  "time": "2026-11-20T09:40:00.000Z"
}
```
