> For the complete documentation index, see [llms.txt](https://docs.facephi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.facephi.com/docs.facephi-en/sdks/backend-sdk/selphid/technical_documentation/api_reference/management/api-v1-selphid-health.md). Agents can also search and read this documentation through its [MCP server](https://docs.facephi.com/~gitbook/mcp).

# /api/v1/selphid/health

Checks whether the service is alive by running the SDK health check. It answers `200` while the SDK is initialized and alive, and `503` otherwise, so container probes notice the failure. The result is also cached and published in `state.sdk` of `GET /api/v1/selphid/metrics`. It never requires a JWT.

```json
{"openapi":"3.0.0","info":{"title":"SelphID-SDK Rest API","version":"6.22.0"},"security":[],"paths":{"/api/v1/selphid/health":{"get":{"description":"Checks whether the service is alive by running the SDK health check. It answers `200` while the SDK is\ninitialized and alive, and `503` otherwise, so container probes notice the failure. The result is also\ncached and published in `state.sdk` of `GET /api/v1/selphid/metrics`. It never requires a JWT.\n","tags":["Management"],"responses":{"200":{"description":"The SDK is initialized and alive.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResult"}}}},"400":{"description":"Incorrect parameters in the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResult"}}}},"500":{"description":"An error occurred in the call to the SelphID-SDK backend.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExceptionResult"}}}},"503":{"description":"The SDK is not initialized or did not answer its health check. `message` gives the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableResult"}}}}}}}},"components":{"schemas":{"HealthResult":{"type":"object","description":"The result of a successful health check.","properties":{"message":{"$ref":"#/components/schemas/HealthStatus"},"initialized":{"type":"boolean","description":"Whether the SDK was loaded successfully when the service started."},"sdk":{"$ref":"#/components/schemas/HealthSdkState"}}},"HealthStatus":{"type":"string","description":"Result of the health service. Since 6.22.0 an unavailable SDK answers HTTP `503` instead of `Unhealthy`.","enum":["Healthy"]},"HealthSdkState":{"type":"object","description":"Detailed state of the SDK observed by the health check.","properties":{"healthy":{"type":"boolean","description":"Whether the SDK answered the health check."},"initialized":{"type":"boolean","description":"Whether the SDK was loaded successfully when the service started."},"lastInitStatus":{"type":"string","description":"Result of the SDK start up (`OK`)."},"lastHealthKnown":{"type":"boolean","description":"Whether a health check has already been run."},"lastHealthCheckAt":{"type":"string","description":"UTC instant of the last health check, with second precision."},"lastError":{"type":"string","description":"Detail of the last failed health check, empty when it succeeded."}}},"BadRequestResult":{"type":"object","description":"Result when incorrect parameters arrive in the request.","properties":{"status":{"type":"number"},"error":{"type":"string"},"message":{"type":"string","description":"Reason of the rejection."},"timeStamp":{"$ref":"#/components/schemas/TimeStamp"}}},"TimeStamp":{"type":"string","description":"A date and time value in \"%Y-%m-%dT%H:%M:%SZ\" format."},"ExceptionResult":{"type":"object","description":"An error occurred in the call to the SelphID-SDK backend.","properties":{"status":{"type":"number"},"error":{"type":"string"},"exception":{"type":"string"},"timeStamp":{"$ref":"#/components/schemas/TimeStamp"}}},"ServiceUnavailableResult":{"type":"object","description":"Result when the service cannot attend requests.","properties":{"status":{"type":"number"},"error":{"type":"string"},"message":{"type":"string","description":"Reason why the service is unavailable.","enum":["SDK health check failed","SelphID SDK is not initialized"]},"timeStamp":{"$ref":"#/components/schemas/TimeStamp"}}}}}}
```
