curl --request GET \
--url https://api.limitguard.ai/v1/financial/health \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.limitguard.ai/v1/financial/health"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.limitguard.ai/v1/financial/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.limitguard.ai/v1/financial/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 => [
"X-API-Key: <api-key>"
],
]);
$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.limitguard.ai/v1/financial/health"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.limitguard.ai/v1/financial/health")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.limitguard.ai/v1/financial/health")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"treasury_balance_usdc": 1,
"pending_settlements": 1,
"total_revenue_usdc": 1,
"agents_tracked": 1,
"frozen": false,
"exhausted_settlements": 0,
"failed_settlements": 0,
"uncollected_usdc": 0,
"settlement_configured": false,
"solana_settlement_configured": false,
"failed_settlement_queue_depth": 0
}Financial Health
Get overall financial system health status.
The settlement fields are operator-wide and only disclosed to admin keys (#291); other callers do not receive them at all. So is treasury_balance_usdc, the platform treasury rather than the caller’s (#525). Revenue scope follows the same split (#427): an admin sees the platform-wide total — every key’s prepaid revenue plus anonymous x402 wallet revenue that belongs to no tenant; anyone else sees only revenue attributed to their own key.
curl --request GET \
--url https://api.limitguard.ai/v1/financial/health \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.limitguard.ai/v1/financial/health"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.limitguard.ai/v1/financial/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.limitguard.ai/v1/financial/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 => [
"X-API-Key: <api-key>"
],
]);
$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.limitguard.ai/v1/financial/health"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.limitguard.ai/v1/financial/health")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.limitguard.ai/v1/financial/health")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"treasury_balance_usdc": 1,
"pending_settlements": 1,
"total_revenue_usdc": 1,
"agents_tracked": 1,
"frozen": false,
"exhausted_settlements": 0,
"failed_settlements": 0,
"uncollected_usdc": 0,
"settlement_configured": false,
"solana_settlement_configured": false,
"failed_settlement_queue_depth": 0
}Authorizations
Response
Successful Response
Financial system health status.
x >= 0Pending rows still inside the sweep's retry budget (in-flight). Rows the sweep cannot rebuild into a payment are charged the same budget (#246), so they drain to exhausted_settlements rather than sitting here forever
x >= 0x >= 0x >= 0Pending rows whose sweep_attempts reached MAX_RETRIES: credited, never settled, no longer retried. Not included in pending_settlements
x >= 0Ledger rows the startup sweep resolved to FAILED (#196). These are no longer counted by pending_settlements, so without this they would disappear from the health view entirely.
x >= 0USDC credited to the ledger that will never settle: exhausted PENDING plus FAILED rows (#359). Reconciliation work, expressed as money rather than as two row counts.
x >= 0True when the EVM settler would run (SETTLEMENT_RPC_URL and SETTLEMENT_PRIVATE_KEY both set). EVM leg only; see solana_settlement_configured for the other leg. When False, EVM rows stay pending indefinitely
True when the Solana settler would run (SOLANA_RPC_URL and SOLANA_FEE_PAYER_PRIVATE_KEY both set). All three settlement counters above are chain-mixed, so both flags must be read to know whether they are trustworthy. When False, Solana rows stay pending indefinitely
x >= 0