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

# Core health

> Check the operator database and chain RPC dependencies.

`GET /core/health`

## Responses

<ResponseField name="status" type="string" required post={["ok|fail"]} />

<ResponseField name="db" type="string" required post={["ok|fail"]} />

<ResponseField name="chain_rpc" type="string" required post={["ok|fail"]} />

<RequestExample>
  ```bash cURL theme={null}
  curl "https://base.sepolia.api.4mica.xyz/core/health"
  ```

  ```javascript title="Fetch" theme={null}
  const response = await fetch("https://base.sepolia.api.4mica.xyz/core/health");
  console.log(await response.json());
  ```

  ```javascript title="Axios" theme={null}
  import axios from "axios";
  const { data } = await axios.get("https://base.sepolia.api.4mica.xyz/core/health");
  console.log(data);
  ```

  ```python Python theme={null}
  import requests
  print(requests.get("https://base.sepolia.api.4mica.xyz/core/health").json())
  ```

  ```go Go theme={null}
  package main
  import ("fmt"; "io"; "net/http")
  func main() {
    response, _ := http.Get("https://base.sepolia.api.4mica.xyz/core/health")
    defer response.Body.Close()
    body, _ := io.ReadAll(response.Body)
    fmt.Println(string(body))
  }
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={null}
  { "status": "ok", "db": "ok", "chain_rpc": "ok" }
  ```

  ```json 503 Service Unavailable theme={null}
  { "status": "fail", "db": "ok", "chain_rpc": "fail" }
  ```
</ResponseExample>

## Status codes

| Code  | Description                                        |
| ----- | -------------------------------------------------- |
| `200` | Core and required dependencies are healthy.        |
| `503` | One or more required dependencies are unavailable. |
