curl --request GET \
--url https://api.trulayer.ai/v1/ingestion-health \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.trulayer.ai/v1/ingestion-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.trulayer.ai/v1/ingestion-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.trulayer.ai/v1/ingestion-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.trulayer.ai/v1/ingestion-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.trulayer.ai/v1/ingestion-health")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.trulayer.ai/v1/ingestion-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{
"window": "1h",
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z",
"bucket_interval": "5m",
"success_rate": 123,
"error_rate": 123,
"top_errors": [
{
"category": "<string>",
"count": 123
}
],
"dlq_depth": {
"traces": 123,
"evals": 123
},
"ingest_lag_ms": {
"p50": 123,
"p95": 123,
"p99": 123
},
"redaction_match_count": 123,
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_successful_span_at": "2023-11-07T05:31:56Z"
}{
"error": "<string>"
}{
"error": "<string>"
}Customer-facing ingestion pipeline health (TRU-167)
Returns ingest reliability signals (success/error rate, top error categories, DLQ depth, ingest lag percentiles, last-span timestamp, redaction match count) scoped to the authenticated tenant so customers can self-diagnose pipeline issues.
curl --request GET \
--url https://api.trulayer.ai/v1/ingestion-health \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.trulayer.ai/v1/ingestion-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.trulayer.ai/v1/ingestion-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.trulayer.ai/v1/ingestion-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.trulayer.ai/v1/ingestion-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.trulayer.ai/v1/ingestion-health")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.trulayer.ai/v1/ingestion-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{
"window": "1h",
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z",
"bucket_interval": "5m",
"success_rate": 123,
"error_rate": 123,
"top_errors": [
{
"category": "<string>",
"count": 123
}
],
"dlq_depth": {
"traces": 123,
"evals": 123
},
"ingest_lag_ms": {
"p50": 123,
"p95": 123,
"p99": 123
},
"redaction_match_count": 123,
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_successful_span_at": "2023-11-07T05:31:56Z"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
SDK API key (tl_...) or Clerk session JWT
Query Parameters
Filter to a single project. Omit for all projects in the tenant.
Rolling time window. Defaults to 24h. Ignored when both from
and to are supplied (TRU-393).
1h, 24h, 7d Inclusive ISO-8601 / RFC 3339 lower bound on the report window.
Must be supplied together with to. When both are present the
explicit range overrides the window enum (TRU-393). Bucket
granularity in the response scales with the requested span:
≤ 2h → 5m, ≤ 48h → 1h, > 48h → 1d.
Inclusive ISO-8601 / RFC 3339 upper bound on the report window.
Must be supplied together with from. to must not precede
from.
Response
Ingestion-health report
Echoes the window query param. Informational only when an
explicit from/to pair was supplied — the response's
from/to fields are the source of truth for the time bounds
actually used.
1h, 24h, 7d Inclusive lower bound the report was computed over (TRU-393).
Inclusive upper bound the report was computed over (TRU-393).
Bucket granularity that scales with the report's requested
range: ≤ 2h → 5m, ≤ 48h → 1h, > 48h → 1d (TRU-393).
Frontends that build time-series charts on top of this
endpoint should consume this value rather than re-deriving it.
5m, 1h, 1d Fraction 0–1 of traces without an error. 1.0 when no traffic in the window.
Fraction 0–1 of traces with a non-empty error.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Zero until redaction instrumentation lands.
Echoes the project_id query param when set; omitted for tenant-wide reports.