/health endpoint provides a simple health check to verify that the Surge server is running and accepting requests.
Endpoint
Authentication
This endpoint does not require authentication.Parameters
No parameters required.Response
Health status - always returns
"ok" when the server is runningThe port number the server is listening on
Example Request
Example Response
Status Codes
| Code | Description |
|---|---|
| 200 | Server is healthy and running |
Use Cases
- Monitoring: Use in health check scripts or monitoring systems to verify the server is running
- Load Balancers: Configure load balancers to use this endpoint for health checks
- Container Orchestration: Use as a liveness/readiness probe in Docker or Kubernetes
- Startup Verification: Verify the server has started successfully before sending other requests