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

# Model Health Check

> Detailed model service health check for monitoring and debugging

Detailed model service health check for monitoring and debugging.

Returns comprehensive information about the model fetching service, cache status, and available models for operational monitoring.

### Headers

<ParamField header="Authorization" type="string" required>
  API key in format: `Bearer sk-xxxxxx`
</ParamField>

### Response

<ResponseField name="status" type="string">
  Model service status: `healthy` or `unhealthy`
</ResponseField>

<ResponseField name="timestamp" type="string">
  Current timestamp (ISO 8601)
</ResponseField>

<ResponseField name="cache_status" type="object">
  Information about the model cache

  <Expandable title="Cache Status">
    <ResponseField name="enabled" type="boolean">
      Whether caching is enabled
    </ResponseField>

    <ResponseField name="last_updated" type="string">
      Last cache update timestamp
    </ResponseField>

    <ResponseField name="next_refresh" type="string">
      Next scheduled cache refresh
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="models" type="object">
  Model availability statistics

  <Expandable title="Model Statistics">
    <ResponseField name="total" type="integer">
      Total number of models
    </ResponseField>

    <ResponseField name="active" type="integer">
      Number of active models with providers
    </ResponseField>

    <ResponseField name="inactive" type="integer">
      Number of inactive models
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="blockchain_connection" type="object">
  Blockchain connectivity status
</ResponseField>

<Info>
  **Operational Monitoring**: This endpoint provides detailed insights into the model service's operational status, making it invaluable for debugging and monitoring the health of the model marketplace integration.
</Info>

<Warning>
  **Authentication Required**: Unlike the general health endpoint, this requires API key authentication as it exposes detailed operational information.
</Warning>

<Tip>
  **Troubleshooting**: If you're experiencing issues with model availability:

  1. Check this endpoint to see if the blockchain connection is healthy
  2. Verify the cache is updating regularly
  3. Check if active models are available
  4. Contact support with the timestamp and model statistics if issues persist
</Tip>

<Note>
  The cache refresh interval is typically 5-10 minutes. If the `last_updated` timestamp is significantly older, there may be an issue with the model fetching service.
</Note>
