Skip to main content
GET
/
health
cURL
curl \
  -X GET 'MEILISEARCH_URL/health'
client.health()
$client->health();
client.health()
client.health();
client.health
client.Health()
await client.HealthAsync();
// health() return an Err() if the server is not healthy, so this example would panic due to the unwrap
client
.health()
.await
.unwrap();
await client.health();
client.health { (result) in
switch result {
case .success:
print("Healthy!")
case .failure(let error):
print(error)
}
}
{
  "status": "available"
}

Response

200 - application/json

Instance is healthy.

status
enum<string>
required

The status of the instance.

Available options:
available,
mustRestart