API reference
GET/health

Health check

Monitor the API and its Reacher backend. Send a GET request with no body and read data.status.

Request

cURL
curl --include \
  --url https://api.mailverifio.com/v1/health \
  --header 'Authorization: Bearer YOUR_API_KEY'

Response examples

HTTP 200Healthy
JSON body
{
  "success": true,
  "data": {
    "status": "healthy",
    "timestamp": "2026-08-29T18:30:00.000Z",
    "services": {
      "api": "up",
      "reacher": "up"
    }
  },
  "meta": {
    "requestId": "req_example",
    "duration": 42,
    "version": "v1"
  }
}
HTTP 200Degraded · Reacher returned an error
JSON body
{
  "success": true,
  "data": {
    "status": "degraded",
    "timestamp": "2026-08-29T18:30:00.000Z",
    "services": {
      "api": "up",
      "reacher": "degraded"
    }
  },
  "meta": {
    "requestId": "req_example",
    "duration": 64,
    "version": "v1"
  }
}
HTTP 200Degraded · Reacher timed out or could not be reached
JSON body
{
  "success": true,
  "data": {
    "status": "degraded",
    "timestamp": "2026-08-29T18:30:00.000Z",
    "services": {
      "api": "up",
      "reacher": "down"
    }
  },
  "meta": {
    "requestId": "req_example",
    "duration": 5012,
    "version": "v1"
  }
}

Response fields

FieldDescription
data.statushealthy if Reacher responded successfully, or degraded if the probe failed. Both outcomes return HTTP 200.
data.timestampISO 8601 timestamp in UTC for the start of the check.
data.services.apiup whenever the API returns a health result.
data.services.reacherup for a successful response, degraded for a non-2xx response, or down for a timeout or connection failure.

Error responses

Read error.code to handle application errors. See the JSON error example and retry headers.

HTTPCodeMessage
401UNAUTHORIZED
Invalid or missing API key. Include 'Authorization: Bearer <key>' header.

Applies on deployments with API_KEY_MASTER configured.

429RATE_LIMITED
Too many requests. Please slow down.

The default HTTP request limit was reached. The response includes Retry-After.

500INTERNAL_ERROR
An unexpected error occurred

Internal health check

Use GET /api/health for container probes. This route accepts unauthenticated requests and returns the health object directly. A failed Reacher probe returns HTTP 503.

cURL
curl --include http://localhost:3000/api/health
HTTP 200Internal probe healthy
JSON body
{
  "status": "healthy",
  "timestamp": "2026-08-29T18:30:00.000Z",
  "services": {
    "frontend": "up",
    "reacher": "up"
  }
}
HTTP 503Internal probe degraded · Reacher returned an error
JSON body
{
  "status": "degraded",
  "timestamp": "2026-08-29T18:30:00.000Z",
  "services": {
    "frontend": "up",
    "reacher": "degraded"
  }
}
HTTP 503Internal probe degraded · Reacher could not be reached
JSON body
{
  "status": "degraded",
  "timestamp": "2026-08-29T18:30:00.000Z",
  "services": {
    "frontend": "up",
    "reacher": "down"
  }
}

Operational notes

  • The probe exercises Reacher without making a DNS or SMTP check. Reacher has up to five seconds to respond.
  • The v1 health check requires the configured key when API_KEY_MASTER is set. Without a configured key, the default HTTP request limit applies.