> ## Documentation Index
> Fetch the complete documentation index at: https://meilisearch-6b28dec2-mintlify-code-samples.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Health

> The /health route allows you to verify the status and availability of a Meilisearch instance.

export const RouteHighlighter = ({method, path}) => <div className={`routeHighlighter routeHighlighter--${method}`}>
    <div className="routeHighlighter__method">
      {method}
    </div>
    <div className="routeHighlighter__path">
      {path}
    </div>
  </div>;

The `/health` route allows you to verify the status and availability of a Meilisearch instance.

## Get health

<RouteHighlighter method="GET" path="/health" />

Get health of Meilisearch server.

### Example

<CodeGroup>
  ```bash cURL theme={null}
  curl \
    -X GET 'MEILISEARCH_URL/health'
  ```

  ```javascript JS theme={null}
  client.health()
  ```

  ```python Python theme={null}
  client.health()
  ```

  ```php PHP theme={null}
  $client->health();
  ```

  ```java Java theme={null}
  client.health();
  ```

  ```ruby Ruby theme={null}
  client.health
  ```

  ```go Go theme={null}
  client.Health()
  ```

  ```csharp C# theme={null}
  await client.HealthAsync();
  ```

  ```rust Rust theme={null}
  // health() return an Err() if the server is not healthy, so this example would panic due to the unwrap
  client
    .health()
    .await
    .unwrap();
  ```

  ```swift Swift theme={null}
  client.health { (result) in
      switch result {
      case .success:
          print("Healthy!")
      case .failure(let error):
          print(error)
      }
  }
  ```

  ```dart Dart theme={null}
  await client.health();
  ```
</CodeGroup>

#### Response: `200 OK`

```json theme={null}
{ "status": "available" }
```
