🔧 Bun Worker API

Background job processor for AI tasks (normalization, tagging, embeddings)

GET /health

Health check endpoint for orchestration tools (Docker, Kubernetes, Coolify)

Returns: { status: "healthy" | "unhealthy", workerId, activeJobs, uptime }

GET /metrics

Detailed worker statistics for monitoring and debugging

Returns: Extended metrics (worker stats, job utilization, database health)

GET /ready

Kubernetes readiness probe (ready to accept traffic)

Returns: 200 OK if ready, 503 Service Unavailable if not

GET /alive

Kubernetes liveness probe (process is alive)

Returns: 200 OK (always, unless process is dead)

POST /webhooks/resend-inbound

Resend inbound email webhook for email-to-document processing (PRO/Enterprise)

Purpose: Receives emails sent to u_<token>@docs.quixyl.com and queues document processing

Returns: 200 OK if accepted, various error codes for validation failures


Authentication: 🔓 No authentication required

Port: 3001

Environment: production