GET /health
API health check endpoint
GET
Authentication
Not Required:[AllowAnonymous] (Line 13)
Response
Always
"healthy" (Line 18)Always
"DualMind API is running" (Line 19)ISO8601 UTC timestamp at response generation (Line 20)
API version (hardcoded
"1.0.0", Line 21)Side Effects
No Database Operations: Static response No Validation: Always returns 200 OKBehavioral Guarantees
Always Succeeds: Cannot fail (no database/external dependencies) Response Time: Sub-millisecond (no I/O operations) Idempotency: YES (identical response every time, except timestamp)Aliases
Identical Endpoint:GET /api/health (Lines 26-38)
- Same response format
- Same authentication requirements
- Frontend compatibility alias (Line 25 comment)
Use Cases
Health Monitoring:- Load balancer health checks
- Kubernetes liveness/readiness probes
- Uptime monitoring services
- Verify API is reachable
- Check API version