# Health check

Operation ID: `diagnostics.connect`

Check whether the Diagnostics API is reachable and identify the serving environment. No authentication required.

## Public method

`connect`

Signature: `diagnostics.connect()`

Return type: `Promise<ConnectResponse>`

## Authentication

Classification: **PUBLIC**

## Prerequisites

None documented.

## HTTP

`GET /connect`

## Path parameters

None.

## Query parameters

None.

## Body parameters

None.

Request model: None.

## Request example

None declared in canonical OpenAPI.

## Success responses

| Status | Shape | Content type | Description |
|---|---|---|---|
| `200` | [`diagnostics.ConnectResponse`](../models/diagnostics.ConnectResponse.md) | application/json | Successful Response |

## Success response examples

### 200

```json
{
  "environment": "string",
  "service": "string",
  "status": "string"
}
```

## Common errors

None declared in canonical OpenAPI.

## Error examples

None declared in canonical OpenAPI.

## NodeJS / TypeScript implementation

```ts
import { HCSDK } from "@healthcloudai/hc-sdk";
```

```ts
const result = await diagnostics.connect();
```

## cURL

```bash
curl -X GET \
  'https://dev-api-diagnostics.health.cloud/connect'
```

## Notes

None.

## Prepared Test Console scenario

No canonical scenario is currently associated.

## Real response

No approved real integration response is currently published. Unapproved candidates are never rendered as examples.
