> ## Documentation Index
> Fetch the complete documentation index at: https://docs.enginy.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Health check

> Validate the CRM connection

<Card title="Your Implementation Required" icon="triangle-exclamation" color="#f59e0b">
  This endpoint must be implemented on **your server**
</Card>

Enginy calls this endpoint to validate the connection during setup and for periodic health checks.

## Request

No request body required. Enginy will send the API key in the configured header.

<RequestExample>`bash GET /health X-API-Key: your-api-key `</RequestExample>

## Response

Return any `2xx` status code to indicate your API is healthy.

<ResponseField name="status" type="string">
  Status indicator (e.g., "ok")
</ResponseField>

<ResponseExample>
  ```json theme={null}
  {
    "status": "ok"
  }
  ```
</ResponseExample>

## Error Responses

| Status | When to Return             |
| ------ | -------------------------- |
| `200`  | API is healthy             |
| `401`  | Invalid or missing API key |
| `500`  | Server error               |

<Tip>Return `401 Unauthorized` if the API key is invalid or missing.</Tip>
