Health Check
Public endpoint for basic server health check. Does not require authentication and does not check database connectivity.Headers
No authentication required.Response
Always returns
true if the server is runningExample Request
Example Response
Use Case
This endpoint is designed for:- Load balancer health checks
- Monitoring systems
- Quick server availability verification without database overhead
- Diagnosing server issues without requiring valid authentication
This is the only endpoint that does not require the
x-api-key header.Status Check
Authenticated endpoint that verifies API key validity and miles system availability.Headers
Your airline’s API token
Response
Overall status (true if authenticated and system operational)
Whether the miles system is available (currently always true if server is up)
The authenticated airline’s information (excluding token)
Example Request
Example Response
Error Response
If authentication fails, you’ll receive a 401 error: Status:401 Unauthorized
Use Case
This endpoint is useful for:- Validating your API key is correct
- Checking that you have proper access to the API
- Verifying the miles system is operational
- Getting your airline information in one call
- Integration testing and debugging
Implementation
Location:apps/api/src/routes/status.ts:6