Core Endpoints
Health API
Service health check with queue and Redis status
GET
Health API
Documentation Index
Fetch the complete documentation index at: https://mintlify.com/bio-xyz/BioAgents/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Health API provides a lightweight endpoint to check the operational status of the BioAgents service, including job queue and Redis connectivity when enabled.No Authentication Required
This endpoint is publicly accessible for monitoring and health checks.GET /api/health
Check service health status.Response Fields
Overall service status:
ok: All systems operationaldegraded: Some systems unavailable but core functionality works
ISO 8601 timestamp of health check
Job queue status information
Examples
Example: Healthy Service (Queue Disabled)
Example: Healthy Service (Queue Enabled)
Example: Degraded Service (Redis Unavailable)
Use Cases
Kubernetes Liveness Probe
Docker Compose Health Check
Monitoring Script
JavaScript Health Monitor
Status Interpretation
ok Status
- Core API endpoints are operational
- Database connectivity is working
- If queue enabled: Redis is connected
- Ready to accept requests
degraded Status
- Core API may still work
- Redis connection failed (if queue enabled)
- Queue-based endpoints will return 503 errors
- In-process mode endpoints continue working
No Response
- Service is down or unreachable
- Network connectivity issues
- Server crashed or not started
Implementation Details
Queue Disabled (USE_JOB_QUEUE=false)
- Health check always returns
ok(no external dependencies) - Response time: ~1-5ms
Queue Enabled (USE_JOB_QUEUE=true)
- Performs Redis PING to verify connectivity
- Response time: ~10-50ms (depends on Redis latency)
- If Redis unavailable, sets status to
degraded
Endpoint Location
Defined insrc/index.ts:212-251
Related Endpoints
- Status API - Check deep research job progress
- Chat API - Submit chat requests
- Deep Research API - Start research investigations
Monitoring Best Practices
- Set up automated health checks every 30-60 seconds
- Alert on degraded status - indicates Redis issues
- Alert on consecutive failures (3+ in a row) - service may be down
- Monitor response times - slow responses indicate resource constraints
- Check logs when health degrades - look for Redis connection errors
Example Alert Rules
Health API