Get Health
curl --request GET \
--url https://api.peachdeskai.com/api/v1/analytics/post-call-variables/health \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.peachdeskai.com/api/v1/analytics/post-call-variables/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.peachdeskai.com/api/v1/analytics/post-call-variables/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.peachdeskai.com/api/v1/analytics/post-call-variables/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.peachdeskai.com/api/v1/analytics/post-call-variables/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.peachdeskai.com/api/v1/analytics/post-call-variables/health")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.peachdeskai.com/api/v1/analytics/post-call-variables/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{
"fields": [
{
"workflow_id": 123,
"workflow_name": "<string>",
"field_name": "<string>",
"field_type": "boolean",
"total_runs": 123,
"connected_runs": 123,
"null_count": 123,
"error_count": 123,
"null_pct": 123,
"error_pct": 123,
"sparkline": []
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Post-Call Variables
Extraction Health
Per-field null% and error% with a sparkline so extraction failures surface before they distort charts.
GET
/
api
/
v1
/
analytics
/
post-call-variables
/
health
Get Health
curl --request GET \
--url https://api.peachdeskai.com/api/v1/analytics/post-call-variables/health \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.peachdeskai.com/api/v1/analytics/post-call-variables/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.peachdeskai.com/api/v1/analytics/post-call-variables/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.peachdeskai.com/api/v1/analytics/post-call-variables/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.peachdeskai.com/api/v1/analytics/post-call-variables/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.peachdeskai.com/api/v1/analytics/post-call-variables/health")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.peachdeskai.com/api/v1/analytics/post-call-variables/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{
"fields": [
{
"workflow_id": 123,
"workflow_name": "<string>",
"field_name": "<string>",
"field_type": "boolean",
"total_runs": 123,
"connected_runs": 123,
"null_count": 123,
"error_count": 123,
"null_pct": 123,
"error_pct": 123,
"sparkline": []
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Return per-field extraction health for one or more workflows across the filtered window. Rows include
null_pct, error_pct, and a sparkline so silent extraction regressions are visible in a single view.
GET /api/v1/analytics/post-call-variables/health
Pair this endpoint with /aggregate to catch extraction drift: if error_pct climbs on one workflow while the others stay flat, the aggregateтАЩs headline number is misleading тАФ the health row surfaces the drift first.
Query parameters
string
required
Comma-separated workflow ids. Health rows are emitted per workflow ├Ч field.
string (ISO 8601)
Start of the window (inclusive). Defaults to
to - 30 days.string (ISO 8601)
End of the window (exclusive). Defaults to now.
Call-attribute filters
All optional; see Overview тЖТ Call-attribute filters.string
string
string
string
boolean
boolean
boolean
string
Response
array
One entry per workflow ├Ч extraction field over the window.
Show fields[]
Show fields[]
integer
string
string
string
One of
boolean, selector, number, text.integer
Runs on that workflow inside the filtered window.
integer
integer
number
null_count / total_runs, 0.0тАУ1.0.number
error_count / total_runs, 0.0тАУ1.0.Example
cURL
curl "https://api.peachdeskai.com/api/v1/analytics/post-call-variables/health?workflow_ids=42,43&from=2026-07-01T00:00:00Z&to=2026-08-01T00:00:00Z" \
-H "X-API-Key: $PEACHDESK_API_KEY"
Response
{
"fields": [
{
"workflow_id": 42,
"workflow_name": "Intake US",
"field_name": "qualified",
"field_type": "boolean",
"total_runs": 512,
"null_count": 18,
"error_count": 4,
"null_pct": 0.035,
"error_pct": 0.008,
"sparkline": [
{ "bucket": "2026-07-30T00:00:00Z", "null_pct": 0.02, "error_pct": 0.0 },
{ "bucket": "2026-07-31T00:00:00Z", "null_pct": 0.06, "error_pct": 0.01 }
]
},
{
"workflow_id": 43,
"workflow_name": "Intake UK",
"field_name": "qualified",
"field_type": "boolean",
"total_runs": 402,
"null_count": 6,
"error_count": 1,
"null_pct": 0.015,
"error_pct": 0.0025,
"sparkline": []
}
]
}
Errors
| Status | When |
|---|---|
400 | workflow_ids missing, empty, or contains a non-integer id. |
400 | from > to. |
404 | Any workflow_id does not belong to the callerтАЩs organization. |
Authorizations
SessionAuthApiKeyAuth
Interactive user session: the login JWT, sent as Authorization: Bearer <token>.
Query Parameters
Response
Successful Response
Show child attributes
Show child attributes

