curl --request GET \
--url https://api.pyai.com/v1/trace/interactions/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.pyai.com/v1/trace/interactions/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pyai.com/v1/trace/interactions/{id}', 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.pyai.com/v1/trace/interactions/{id}",
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.pyai.com/v1/trace/interactions/{id}"
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.pyai.com/v1/trace/interactions/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pyai.com/v1/trace/interactions/{id}")
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{
"object": "trace.interaction",
"id": "<string>",
"agent_id": "<string>",
"product": "hear",
"verdict": "PASS",
"findings": 123,
"blocked_turns": 123,
"modified_turns": 123,
"packs_enforced": "<string>",
"scored_at": 123,
"source": "<string>",
"audit_hash": "<string>",
"scorecard": {},
"tier2_findings": [
{
"object": "trace.finding",
"id": "<string>",
"interaction_id": "<string>",
"agent_id": "<string>",
"check_id": "hallucination",
"severity": "low",
"verdict": "concern",
"confidence": 123,
"action": "flag",
"speaker": "agent",
"reason": "<string>",
"preempt_instruction": "<string>",
"at_t": 123,
"tier": 2
}
],
"timeline": [
{
"seq": 123,
"t_ms": 123,
"role": "<string>",
"text": "<string>",
"ttfb_ms": 123,
"endpointing_ms": 123,
"barge": {
"detect_ms": 123,
"recovered": true
},
"tool_calls": [
{
"name": "<string>",
"args": "<unknown>",
"result": "<unknown>",
"t_ms": 123
}
]
}
],
"quality_metrics": {
"wer": 123,
"ttfb_ms": 123,
"turn_p95_ms": 123,
"barge_recovery": 123,
"task_success": 123,
"vaqi": 123
},
"derived_metrics": {
"turns": 123,
"turns_by_role": {},
"ttfb_ms": {
"count": 123,
"p50": 123,
"p95": 123,
"p99": 123
},
"endpointing_ms": {
"count": 123,
"p50": 123,
"p95": 123,
"p99": 123
},
"barge": {
"count": 123,
"recovered": 123,
"recovery_rate": 123,
"detect_ms": {
"count": 123,
"p50": 123,
"p95": 123,
"p99": 123
}
},
"tool_calls": 123
}
}Get an interaction (the evidence view)
The full per-call scorecard (findings with plain-English reasons + cited regulations, satisfied requirements, redactions, gate health, verdict) plus the tamper-evident audit_hash. With scorecard-v1 the response also carries the optional per-call timeline and quality_metrics eval blocks (empty until the engine emits them) and derived_metrics, the platform’s score-ready rollup of the timeline (TTFB, turn counts, barge detect + recovery). Requires the trace:read scope.
curl --request GET \
--url https://api.pyai.com/v1/trace/interactions/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.pyai.com/v1/trace/interactions/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pyai.com/v1/trace/interactions/{id}', 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.pyai.com/v1/trace/interactions/{id}",
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.pyai.com/v1/trace/interactions/{id}"
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.pyai.com/v1/trace/interactions/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pyai.com/v1/trace/interactions/{id}")
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{
"object": "trace.interaction",
"id": "<string>",
"agent_id": "<string>",
"product": "hear",
"verdict": "PASS",
"findings": 123,
"blocked_turns": 123,
"modified_turns": 123,
"packs_enforced": "<string>",
"scored_at": 123,
"source": "<string>",
"audit_hash": "<string>",
"scorecard": {},
"tier2_findings": [
{
"object": "trace.finding",
"id": "<string>",
"interaction_id": "<string>",
"agent_id": "<string>",
"check_id": "hallucination",
"severity": "low",
"verdict": "concern",
"confidence": 123,
"action": "flag",
"speaker": "agent",
"reason": "<string>",
"preempt_instruction": "<string>",
"at_t": 123,
"tier": 2
}
],
"timeline": [
{
"seq": 123,
"t_ms": 123,
"role": "<string>",
"text": "<string>",
"ttfb_ms": 123,
"endpointing_ms": 123,
"barge": {
"detect_ms": 123,
"recovered": true
},
"tool_calls": [
{
"name": "<string>",
"args": "<unknown>",
"result": "<unknown>",
"t_ms": 123
}
]
}
],
"quality_metrics": {
"wer": 123,
"ttfb_ms": 123,
"turn_p95_ms": 123,
"barge_recovery": 123,
"task_success": 123,
"vaqi": 123
},
"derived_metrics": {
"turns": 123,
"turns_by_role": {},
"ttfb_ms": {
"count": 123,
"p50": 123,
"p95": 123,
"p99": 123
},
"endpointing_ms": {
"count": 123,
"p50": 123,
"p95": 123,
"p99": 123
},
"barge": {
"count": 123,
"recovered": 123,
"recovery_rate": 123,
"detect_ms": {
"count": 123,
"p50": 123,
"p95": 123,
"p99": 123
}
},
"tool_calls": 123
}
}Authorizations
Use Authorization: Bearer pyai_live_... (or pyai_test_...).
Path Parameters
The call_id.
Response
Interaction detail
"trace.interaction"
call_id
hear, speak, clone, cue, omni, agents, null PASS, WARN, FAIL Unix ms.
Call origin, for example external.
Hash-chain link proving this record is unaltered (the signed-evidence guarantee).
The full trace-scorecard-v0/v1 record: findings, satisfied requirements, redactions, gate health, verdict, and (scorecard-v1) the optional timeline/quality_metrics eval blocks.
Tier-2 (async semantic) findings for this call, joined at read time. They arrive after the scorecard and never alter audit_hash.
Show child attributes
Show child attributes
scorecard-v1 per-call timeline (transcript turns + latency stamps used for eval scoring), hoisted from the scorecard for convenience. Empty [] until the engine emits it.
Show child attributes
Show child attributes
scorecard-v1 per-call rolled-up quality metrics, hoisted from the scorecard. null until the engine emits it.
Show child attributes
Show child attributes
Platform-computed rollup of the timeline into score-ready eval aggregates (TTFB, turn counts, barge detect + recovery). Always present; zero counts and null percentiles until the engine emits a timeline. Percentiles use the same method as the offline eval harness, so an online per-call score lines up with the offline benchmark.
Show child attributes
Show child attributes