Duyetbot Agent
Reference

Health Checks

GET /health, /live, /ready. K8s probes + full status (name/version/timestamp).

TL;DR: Standard probes. /health full info. Always 200 on healthy.

Table of Contents

Endpoints

MethodPathPurposeK8s
GET/healthFull status-
GET/health/liveLiveness probe
GET/health/readyReadiness probe

Responses

GET /health routes/health.ts

{
  "status": "ok",
  "name": "telegram-bot",
  "version": "1.0.0",
  "timestamp": "2025-12-01T15:30:00Z"
}

/live, /ready:

{"status": "ok"}

Errors

Always 200 on healthy. 500 -> middleware error.

Code

From hono-middleware

routes.get('/health', (c) => c.json({
  status: 'ok',
  name,
  version,
  timestamp: new Date().toISOString(),
}));

createBaseApp auto-includes (health: true).

Quiz: /ready fail -> ? A: Pods not receive traffic ✅

Integrate

const app = createBaseApp({ name: 'my-app', health: true });

Deploy: curl https://your-worker/health -> Verify!

Related: Hono Middleware | Webhook ←

On this page