Model Health Check
curl --request GET \
--url https://api.mor.org/health/models \
--header 'Authorization: <authorization>'import requests
url = "https://api.mor.org/health/models"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.mor.org/health/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mor.org/health/models",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.mor.org/health/models"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.mor.org/health/models")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mor.org/health/models")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"status": "<string>",
"timestamp": "<string>",
"cache_status": {
"enabled": true,
"last_updated": "<string>",
"next_refresh": "<string>"
},
"models": {
"total": 123,
"active": 123,
"inactive": 123
},
"blockchain_connection": {}
}Utility
Model Health Check
Detailed model service health check for monitoring and debugging
GET
/
health
/
models
Model Health Check
curl --request GET \
--url https://api.mor.org/health/models \
--header 'Authorization: <authorization>'import requests
url = "https://api.mor.org/health/models"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.mor.org/health/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mor.org/health/models",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.mor.org/health/models"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.mor.org/health/models")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mor.org/health/models")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"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
string
required
API key in format:
Bearer sk-xxxxxxResponse
string
Model service status:
healthy or unhealthystring
Current timestamp (ISO 8601)
object
object
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:
- Check this endpoint to see if the blockchain connection is healthy
- Verify the cache is updating regularly
- Check if active models are available
- 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.
