API heartbeat

Returns the health status of the Makaira API. This endpoint is publicly accessible and does not require authentication.

Request

GET /api/heartbeat

Example Request

GET /api/heartbeat

Response

Returns a JSON object with the current API health state.

Response Body

FieldTypeDescription
okbooleantrue if all required services are healthy, false otherwise.

Status Codes

StatusDescription
200API is healthy.
503API is not healthy — one or more services are unavailable.

Example Response (healthy)

{
  "ok": true
}

Example Response (unhealthy)

{
  "ok": false
}