Health

The health check endpoint enables you to periodically test the health of your MeiliSearch instance.

Get health

GET

  1. /health

Get health of MeiliSearch server.

Example

  1. $ curl \
  2. -X GET 'http://localhost:7700/health'
  1. client.isHealthy()
  1. client.health()
  1. $client->health();
  1. client.health
  1. client.Health().Get()
  1. // health() return an Err() if the server is not healthy, so this example would panic due to the unwrap
  2. client.health().await.unwrap();

Response: 204 No Content