Get Kg Health Endpoint
curl --request GET \
--url https://api.example.com/api/v1/kg/health \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v1/kg/health"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v1/kg/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://api.example.com/api/v1/kg/health",
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: Bearer <token>"
],
]);
$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.example.com/api/v1/kg/health"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.example.com/api/v1/kg/health")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/kg/health")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"avg_relevance": 123,
"contradict_warn_count": 123,
"dead_letter_count": 123,
"default_score_count": 123,
"default_score_ratio": 123,
"oldest_pending_age_s": 123,
"queue_depth": 123,
"schema_version": "<string>",
"top_disconnected_nodes": [
{
"degree": 123,
"id": "<string>",
"type": "<string>"
}
],
"total_nodes": 123,
"last_decay_tick_at": "<string>",
"nodes_recomputed_in_last_tick": 0,
"tick_in_progress": false
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}kg-health
Get Kg Health Endpoint
Return the live KG health snapshot for board_id.
Compute is in-process: SQL aggregations on the app DB and per-node-type queries against the board’s Kùzu graph. Kùzu errors degrade gracefully (zeros), so the endpoint stays available even when Kùzu hasn’t been bootstrapped or is under a transient lock.
GET
/
api
/
v1
/
kg
/
health
Get Kg Health Endpoint
curl --request GET \
--url https://api.example.com/api/v1/kg/health \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v1/kg/health"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v1/kg/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://api.example.com/api/v1/kg/health",
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: Bearer <token>"
],
]);
$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.example.com/api/v1/kg/health"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.example.com/api/v1/kg/health")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/kg/health")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"avg_relevance": 123,
"contradict_warn_count": 123,
"dead_letter_count": 123,
"default_score_count": 123,
"default_score_ratio": 123,
"oldest_pending_age_s": 123,
"queue_depth": 123,
"schema_version": "<string>",
"top_disconnected_nodes": [
{
"degree": 123,
"id": "<string>",
"type": "<string>"
}
],
"total_nodes": 123,
"last_decay_tick_at": "<string>",
"nodes_recomputed_in_last_tick": 0,
"tick_in_progress": false
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Board ID (uuid)
Response
Successful Response
Live KG health snapshot for one board.
Show child attributes
Show child attributes
Last modified on May 17, 2026