API reference

Meta

Service health

GET/health

Reports whether the database answers, how many docs are loaded, and whether reconciliation's cursors are moving. No auth. Used by the Fly health check.

Responses

StatusDescriptionBody
200

Successful Response

Health

Example

curl
curl -X GET "https://api.monetize.pay/health"
Python
import requests

response = requests.get(
    "https://api.monetize.pay/health",
)
print(response.json())
Node.js
const response = await fetch("https://api.monetize.pay/health", {
  method: "GET",
});
console.log(await response.json());

Pilot operational health

GET/health/pilot

Unauthenticated, read-only aggregate operational signal.

Returns 503 when pilot attention is required; contains only fixed reason codes, numeric counts and whether an alert channel is enabled (which never changes the status). Never-successful loops and missing backup configuration/markers have 180 seconds of startup grace. Does not change the existing /health liveness contract. Its answer is kept for up to 5 seconds, so a change can take that long, plus the time one check takes, to show.

Responses

StatusDescriptionBody
200

Successful Response

PilotHealth
503

Pilot attention required.

PilotHealth

Example

curl
curl -X GET "https://api.monetize.pay/health/pilot"
Python
import requests

response = requests.get(
    "https://api.monetize.pay/health/pilot",
)
print(response.json())
Node.js
const response = await fetch("https://api.monetize.pay/health/pilot", {
  method: "GET",
});
console.log(await response.json());