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

# Health Check

> Check MiCA Register API operational status

Returns the current operational status of the MiCA Register API, including total issuer count and last sync timestamp. Use this endpoint for uptime monitoring or to verify connectivity before making data requests.

## Response Fields

<ResponseField name="success" type="boolean">Request status</ResponseField>

<ResponseField name="data" type="object">
  <Expandable>
    <ResponseField name="status" type="string">Service status. Returns `operational` when healthy.</ResponseField>
    <ResponseField name="totalIssuers" type="integer">Current number of entities in the registry</ResponseField>
    <ResponseField name="lastSync" type="string">ISO 8601 timestamp of the last successful data sync from ESMA</ResponseField>
    <ResponseField name="apiVersion" type="string">API version identifier</ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl "https://api.trusset.org/api/mica/v1/health" \
    -H "X-API-Key: trusset_mica_your_key_here"
  ```

  ```typescript TypeScript theme={null}
  const response = await fetch(
    'https://api.trusset.org/api/mica/v1/health',
    { headers: { 'X-API-Key': 'trusset_mica_your_key_here' } }
  );
  const { data: health } = await response.json();
  console.log(`Status: ${health.status}, Issuers: ${health.totalIssuers}`);
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "success": true,
    "data": {
      "status": "operational",
      "totalIssuers": 312,
      "lastSync": "2025-06-15T06:00:00.000Z",
      "apiVersion": "v1"
    }
  }
  ```

  ```json Error - Unavailable theme={null}
  {
    "success": false,
    "error": {
      "code": "SERVICE_UNAVAILABLE",
      "message": "Service temporarily unavailable"
    }
  }
  ```
</ResponseExample>
