Skip to main content
GET

Authentication

Not Required: [AllowAnonymous] (Line 13)

Response

string
Always "healthy" (Line 18)
string
Always "DualMind API is running" (Line 19)
string
ISO8601 UTC timestamp at response generation (Line 20)
string
API version (hardcoded "1.0.0", Line 21)

Side Effects

No Database Operations: Static response No Validation: Always returns 200 OK

Behavioral 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
API Discovery:
  • Verify API is reachable
  • Check API version

Error Conditions

None: Endpoint cannot fail No Exceptions: No try-catch block (Lines 14-23)

Performance

Cache-Safe: Response can be cached briefly (timestamp changes) Load: Negligible CPU/memory impact Concurrent Requests: Fully thread-safe