3U

Health Checks

Implementing the /health endpoint ThreeU uses to verify your service.

Health Check Endpoint

Every plugin must implement a health check:

Health Check
TypeScript
app.get('/health', (req, res) => {
  res.json({
    status: "ok",
    version: "1.0.0",
    timestamp: new Date().toISOString()
  });
});

Requirements

  • Return HTTP 200 with { status: "ok" }
  • Respond within 5 seconds
  • Publicly accessible (no auth required)
  • Include version and timestamp
  • ThreeU checks during activation and periodically