Health Check
curl --request GET \
--url https://cra.pr.snh-ai.com/healthimport requests
url = "https://cra.pr.snh-ai.com/health"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://cra.pr.snh-ai.com/health', 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://cra.pr.snh-ai.com/health",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://cra.pr.snh-ai.com/health"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://cra.pr.snh-ai.com/health")
.asString();require 'uri'
require 'net/http'
url = URI("https://cra.pr.snh-ai.com/health")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"status": "<string>",
"service": "<string>",
"services": {
"xml_transformer": true,
"compliance_engine": true
}
}Endpoints
Health Check
Check API and service health status
GET
/
health
Health Check
curl --request GET \
--url https://cra.pr.snh-ai.com/healthimport requests
url = "https://cra.pr.snh-ai.com/health"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://cra.pr.snh-ai.com/health', 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://cra.pr.snh-ai.com/health",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://cra.pr.snh-ai.com/health"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://cra.pr.snh-ai.com/health")
.asString();require 'uri'
require 'net/http'
url = URI("https://cra.pr.snh-ai.com/health")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"status": "<string>",
"service": "<string>",
"services": {
"xml_transformer": true,
"compliance_engine": true
}
}Check the health status of the Public Records API and all dependent services. No authentication required.
When one or more services are down,
Response
string
Overall API status:
healthy or unhealthystring
Service name:
eval-frameworkobject
Example Request
curl "https://cra.pr.snh-ai.com/health"
import requests
response = requests.get("https://cra.pr.snh-ai.com/health")
print(response.json())
const response = await fetch("https://cra.pr.snh-ai.com/health");
const data = await response.json();
console.log(data);
Example Response
{
"status": "healthy",
"service": "eval-framework",
"services": {
"xml_transformer": true,
"compliance_engine": true
}
}
status returns "degraded":
{
"status": "degraded",
"service": "eval-framework",
"services": {
"xml_transformer": true,
"compliance_engine": false
}
}
Usage
- Verify API availability before sending evaluation requests
- Monitoring and alerting integration
- Pre-flight checks in your integration workflow
Related
- API Overview — Complete API documentation
- Environments — Base URLs and usage guidelines
