Skip to main content
GET
/
health
/
models
Model Health Check
curl --request GET \
  --url https://api.mor.org/health/models \
  --header 'Authorization: <authorization>'
{
  "status": "<string>",
  "timestamp": "<string>",
  "cache_status": {
    "enabled": true,
    "last_updated": "<string>",
    "next_refresh": "<string>"
  },
  "models": {
    "total": 123,
    "active": 123,
    "inactive": 123
  },
  "blockchain_connection": {}
}
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

Authorization
string
required
API key in format: Bearer sk-xxxxxx

Response

status
string
Model service status: healthy or unhealthy
timestamp
string
Current timestamp (ISO 8601)
cache_status
object
Information about the model cache
models
object
Model availability statistics
blockchain_connection
object
Blockchain connectivity status
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.
Authentication Required: Unlike the general health endpoint, this requires API key authentication as it exposes detailed operational information.
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
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.