Overview
The LINE and WhatsApp relay workers (Cloudflare Workers) have a basic GET / health check that returns a simple text response. A structured JSON endpoint would help with monitoring and debugging.
What to do
Example response
{
"service": "whatsapp-relay",
"version": "1.0.0",
"status": "ok",
"uptime_seconds": 3600,
"queue_depth": 2,
"timestamp": "2026-03-24T12:00:00Z"
}
Notes
- Cloudflare Workers don't have persistent uptime, but you can track via a KV counter or
Date.now() minus a stored start time
- Queue depth: count keys in the KV namespace with
list()
- Keep the auth-free endpoint lightweight (no RELAY_SECRET needed)
Overview
The LINE and WhatsApp relay workers (Cloudflare Workers) have a basic
GET /health check that returns a simple text response. A structured JSON endpoint would help with monitoring and debugging.What to do
GET /(or addGET /health) to return structured JSONexternal_plugins/line-channel/relay/src/index.tsexternal_plugins/whatsapp-channel/relay/src/index.tsExample response
{ "service": "whatsapp-relay", "version": "1.0.0", "status": "ok", "uptime_seconds": 3600, "queue_depth": 2, "timestamp": "2026-03-24T12:00:00Z" }Notes
Date.now()minus a stored start timelist()