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

# Health Check

> Verifica el estado de tu integración y si tienes webhook registrado.

Verifica el estado de tu integración y si tienes webhook registrado.

## Headers

| Header      | Tipo   | Req | Descripción          |
| ----------- | ------ | --- | -------------------- |
| `X-API-Key` | string | Sí  | API Key del merchant |

## Response

| Campo                | Tipo           | Descripción                                  |
| -------------------- | -------------- | -------------------------------------------- |
| `ok`                 | boolean        | `true` si la integración está activa.        |
| `merchant.id`        | string         | UUID del merchant en CUCU.                   |
| `merchant.name`      | string         | Nombre del merchant.                         |
| `webhook_registered` | boolean        | `true` si hay una URL de webhook registrada. |
| `webhook_url`        | string \| null | URL de webhook actualmente registrada.       |

<RequestExample>
  ```bash cURL theme={"system"}
  curl https://crypto.cucu.ai/api/v1/merchants/me/health \
    -H "X-API-Key: sk_live_xxxx"
  ```

  ```javascript JavaScript theme={"system"}
  const response = await fetch(
    'https://crypto.cucu.ai/api/v1/merchants/me/health',
    { headers: { 'X-API-Key': 'sk_live_xxxx' } }
  );
  const data = await response.json();
  ```

  ```python Python theme={"system"}
  import requests

  response = requests.get(
      'https://crypto.cucu.ai/api/v1/merchants/me/health',
      headers={'X-API-Key': 'sk_live_xxxx'}
  )
  print(response.json())
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={"system"}
  {
    "ok": true,
    "merchant": {
      "id": "392b8825-18d3-404f-a029-2f11c8d14d32",
      "name": "Mi Tienda"
    },
    "webhook_registered": true,
    "webhook_url": "https://tu-servidor.com/webhooks/cucu-crypto"
  }
  ```
</ResponseExample>
