AI service health
curl --request GET \
--url https://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/ai/healthimport requests
url = "https://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/ai/health"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/ai/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://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/ai/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://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/ai/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://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/ai/health")
.asString();require 'uri'
require 'net/http'
url = URI("https://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/ai/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{
"success": true,
"data": {
"service": "ai",
"status": "healthy",
"provider": "<string>",
"model": "<string>",
"streamingSupport": true,
"streamingHeader": "<string>",
"ragEnabled": true,
"authMethod": "<string>",
"guest_chat_enabled": true,
"timestamp": "2023-11-07T05:31:56Z"
},
"meta": {
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}
}{
"success": false,
"error": {
"message": "Please enter a valid 10-digit phone number (e.g., 9876543210)",
"code": "VALIDATION_ERROR",
"details": [
{
"field": "phone",
"message": "Please enter a valid 10-digit phone number (e.g., 9876543210)"
}
]
},
"meta": {
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}
}AI service
AI Service Health
Returns provider, model, and capability metadata for the AI router.
GET
/
api
/
v1
/
ai
/
health
AI service health
curl --request GET \
--url https://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/ai/healthimport requests
url = "https://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/ai/health"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/ai/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://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/ai/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://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/ai/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://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/ai/health")
.asString();require 'uri'
require 'net/http'
url = URI("https://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/ai/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{
"success": true,
"data": {
"service": "ai",
"status": "healthy",
"provider": "<string>",
"model": "<string>",
"streamingSupport": true,
"streamingHeader": "<string>",
"ragEnabled": true,
"authMethod": "<string>",
"guest_chat_enabled": true,
"timestamp": "2023-11-07T05:31:56Z"
},
"meta": {
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}
}{
"success": false,
"error": {
"message": "Please enter a valid 10-digit phone number (e.g., 9876543210)",
"code": "VALIDATION_ERROR",
"details": [
{
"field": "phone",
"message": "Please enter a valid 10-digit phone number (e.g., 9876543210)"
}
]
},
"meta": {
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}
}Lightweight heartbeat for the AI router. Returns the active provider/model plus
capabilities that the chat endpoint currently exposes.
Response fields
data.service: Alwaysai.data.status:healthy,degraded, orunhealthy.data.provider: Which LLM vendor is active (openai,anthropic, ormulti).data.model: Default model returned byaiConfig.getDefaultModel().data.streaming_support:trueonce SSE streaming is available.data.streaming_header: Header key (X-Stream-ResponseorStream) clients should set to enable streaming.data.rag_enabled: Whether retrieval augmented generation is active.data.auth_method: Describes the accepted auth inputs (Auth0 JWT or device headers).data.guest_chat_enabled: Indicates whether unauthenticated guests can chat.data.timestamp: ISO 8601 server time.
Example request
curl https://api.handauncle.com/api/v1/ai/health
Example response
{
"success": true,
"data": {
"service": "ai",
"status": "healthy",
"provider": "openai",
"model": "gpt-4o-mini",
"streaming_support": true,
"streaming_header": "X-Stream-Response or Stream",
"rag_enabled": true,
"auth_method": "Auth0 JWT (RS256) OR Device Headers",
"guest_chat_enabled": true,
"timestamp": "2025-12-01T12:00:00.000Z"
},
"meta": {
"timestamp": "2025-12-01T12:00:00.000Z",
"request_id": "req_abc"
}
}