Health

Liveness y readiness checks. Públicos para load balancers.

Base path: /health·3 endpoints·Source: mosend-wb-backend/src/modules/health/health.controller.ts
GET/health/live
público

Liveness check: el proceso está vivo (uptime). Público, para load balancers.

Respuestas

  • 200
curl -X GET 'https://api.mosend.dev/health/live'
Response · 200
{
  "data": {
    "id": "00000000-0000-0000-0000-000000000000",
    "createdAt": "2026-05-01T03:42:18.123Z"
  },
  "timestamp": "2026-05-01T03:42:18.123Z"
}
GET/health/ready
público

Readiness check: valida conexión a Postgres y Redis. 503 si alguno falla.

Respuestas

  • 200
curl -X GET 'https://api.mosend.dev/health/ready'
Response · 200
{
  "data": {
    "id": "00000000-0000-0000-0000-000000000000",
    "createdAt": "2026-05-01T03:42:18.123Z"
  },
  "timestamp": "2026-05-01T03:42:18.123Z"
}
GET/health
público

Ping raíz del servicio (status + nombre + timestamp). Público.

Respuestas

  • 200
curl -X GET 'https://api.mosend.dev/health'
Response · 200
{
  "data": {
    "id": "00000000-0000-0000-0000-000000000000",
    "createdAt": "2026-05-01T03:42:18.123Z"
  },
  "timestamp": "2026-05-01T03:42:18.123Z"
}