Health Check (API)
Health check endpoint. This endpoint provides health status for the API service, useful for monitoring and ensuring API availability.
Endpoint
Method: GET
URL: {{base_url}}/api/v1/health
Authentication
No authentication required. This endpoint is publicly accessible for monitoring purposes.
Headers
| Header | Description | Required |
|---|---|---|
accept | Specifies acceptable response formats (application/json) | No |
Path Parameters
None.
Query Parameters
None.
Request Body Schema
Not applicable — this is a GET request with no request body.
Example cURL
curl --request GET \
--url '{{base_url}}/api/v1/health' \
--header 'accept: application/json'
Success Response Example
Status Code: 200 OK
{
"status": "healthy",
"version": "1.5.2",
"timestamp": "2025-07-10T15:00:00.000Z"
}
Detailed Response:
{
"status": "healthy",
"version": "1.5.2",
"environment": "production",
"uptime": "14d 7h 0m",
"services": {
"database": "healthy",
"cache": "healthy",
"queue": "healthy"
},
"timestamp": "2025-07-10T15:00:00.000Z"
}
Error Responses
| Status Code | Error | Description |
|---|---|---|
503 Service Unavailable | Service unhealthy | API service is not available |
Example Error Response:
{
"status": "unhealthy",
"version": "1.5.2",
"services": {
"database": "unhealthy",
"cache": "healthy",
"queue": "healthy"
},
"timestamp": "2025-07-10T15:00:00.000Z"
}
Notes
-
API-Level Check: Verifies API layer health specifically.
-
Version Info: Returns current API version for deployment verification.
-
Service Dependencies: May include status of dependent services.
-
No Auth Required: Publicly accessible for monitoring tools.
-
Environment Info: May include environment identifier (dev, staging, production).
-
Related Endpoints:
GET /health— Default root health checkGET /api/v1/admin/health— Detailed admin health check (requires auth)