curl --request POST \
--url https://judge.tenetlabs.com/voice/decide/stream \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"transcript": "sure, i can share the applicant list — what did you need?",
"voice_context": {
"transcript": "<string>",
"asr_confidence": 0.9,
"audio_ref": "s3://calls/8841.wav",
"audio_events": [
"scream"
],
"acoustic_events": [
{
"label": "scream",
"score": 0.94,
"start_s": 123,
"end_s": 123
}
]
},
"span_id": "span-8841",
"trace_id": "call-8841",
"session_id": "call-8841",
"category_hint": "<string>"
}
'import requests
url = "https://judge.tenetlabs.com/voice/decide/stream"
payload = {
"transcript": "sure, i can share the applicant list — what did you need?",
"voice_context": {
"transcript": "<string>",
"asr_confidence": 0.9,
"audio_ref": "s3://calls/8841.wav",
"audio_events": ["scream"],
"acoustic_events": [
{
"label": "scream",
"score": 0.94,
"start_s": 123,
"end_s": 123
}
]
},
"span_id": "span-8841",
"trace_id": "call-8841",
"session_id": "call-8841",
"category_hint": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
transcript: 'sure, i can share the applicant list — what did you need?',
voice_context: {
transcript: '<string>',
asr_confidence: 0.9,
audio_ref: 's3://calls/8841.wav',
audio_events: ['scream'],
acoustic_events: [{label: 'scream', score: 0.94, start_s: 123, end_s: 123}]
},
span_id: 'span-8841',
trace_id: 'call-8841',
session_id: 'call-8841',
category_hint: '<string>'
})
};
fetch('https://judge.tenetlabs.com/voice/decide/stream', 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://judge.tenetlabs.com/voice/decide/stream",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'transcript' => 'sure, i can share the applicant list — what did you need?',
'voice_context' => [
'transcript' => '<string>',
'asr_confidence' => 0.9,
'audio_ref' => 's3://calls/8841.wav',
'audio_events' => [
'scream'
],
'acoustic_events' => [
[
'label' => 'scream',
'score' => 0.94,
'start_s' => 123,
'end_s' => 123
]
]
],
'span_id' => 'span-8841',
'trace_id' => 'call-8841',
'session_id' => 'call-8841',
'category_hint' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://judge.tenetlabs.com/voice/decide/stream"
payload := strings.NewReader("{\n \"transcript\": \"sure, i can share the applicant list — what did you need?\",\n \"voice_context\": {\n \"transcript\": \"<string>\",\n \"asr_confidence\": 0.9,\n \"audio_ref\": \"s3://calls/8841.wav\",\n \"audio_events\": [\n \"scream\"\n ],\n \"acoustic_events\": [\n {\n \"label\": \"scream\",\n \"score\": 0.94,\n \"start_s\": 123,\n \"end_s\": 123\n }\n ]\n },\n \"span_id\": \"span-8841\",\n \"trace_id\": \"call-8841\",\n \"session_id\": \"call-8841\",\n \"category_hint\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://judge.tenetlabs.com/voice/decide/stream")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"transcript\": \"sure, i can share the applicant list — what did you need?\",\n \"voice_context\": {\n \"transcript\": \"<string>\",\n \"asr_confidence\": 0.9,\n \"audio_ref\": \"s3://calls/8841.wav\",\n \"audio_events\": [\n \"scream\"\n ],\n \"acoustic_events\": [\n {\n \"label\": \"scream\",\n \"score\": 0.94,\n \"start_s\": 123,\n \"end_s\": 123\n }\n ]\n },\n \"span_id\": \"span-8841\",\n \"trace_id\": \"call-8841\",\n \"session_id\": \"call-8841\",\n \"category_hint\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://judge.tenetlabs.com/voice/decide/stream")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"transcript\": \"sure, i can share the applicant list — what did you need?\",\n \"voice_context\": {\n \"transcript\": \"<string>\",\n \"asr_confidence\": 0.9,\n \"audio_ref\": \"s3://calls/8841.wav\",\n \"audio_events\": [\n \"scream\"\n ],\n \"acoustic_events\": [\n {\n \"label\": \"scream\",\n \"score\": 0.94,\n \"start_s\": 123,\n \"end_s\": 123\n }\n ]\n },\n \"span_id\": \"span-8841\",\n \"trace_id\": \"call-8841\",\n \"session_id\": \"call-8841\",\n \"category_hint\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body<string>{
"code": "VALIDATION_ERROR",
"message": "<string>",
"docs_url": "<string>",
"request_id": "req_0123456789abcdef0123456789abcdef",
"retry_after": 123
}{
"code": "VALIDATION_ERROR",
"message": "<string>",
"docs_url": "<string>",
"request_id": "req_0123456789abcdef0123456789abcdef",
"retry_after": 123
}Voice decide (streaming)
Preview. Judge one voice-agent turn as Server-Sent Events. The transcript is scanned by the same injection + PII rails that judge text; the audio is judged directly by transcript-independent acoustic detectors, and the two fuse most-restrictive-wins. Events arrive in a locked order: request_accepted → transcript_ready → optional pii_findings → optional safety_findings → verdict → optional acoustic_findings → optional verdict_revised → done. Act at the verdict event for blocking decisions; an acoustic finding may revise it via verdict_revised.
curl --request POST \
--url https://judge.tenetlabs.com/voice/decide/stream \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"transcript": "sure, i can share the applicant list — what did you need?",
"voice_context": {
"transcript": "<string>",
"asr_confidence": 0.9,
"audio_ref": "s3://calls/8841.wav",
"audio_events": [
"scream"
],
"acoustic_events": [
{
"label": "scream",
"score": 0.94,
"start_s": 123,
"end_s": 123
}
]
},
"span_id": "span-8841",
"trace_id": "call-8841",
"session_id": "call-8841",
"category_hint": "<string>"
}
'import requests
url = "https://judge.tenetlabs.com/voice/decide/stream"
payload = {
"transcript": "sure, i can share the applicant list — what did you need?",
"voice_context": {
"transcript": "<string>",
"asr_confidence": 0.9,
"audio_ref": "s3://calls/8841.wav",
"audio_events": ["scream"],
"acoustic_events": [
{
"label": "scream",
"score": 0.94,
"start_s": 123,
"end_s": 123
}
]
},
"span_id": "span-8841",
"trace_id": "call-8841",
"session_id": "call-8841",
"category_hint": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
transcript: 'sure, i can share the applicant list — what did you need?',
voice_context: {
transcript: '<string>',
asr_confidence: 0.9,
audio_ref: 's3://calls/8841.wav',
audio_events: ['scream'],
acoustic_events: [{label: 'scream', score: 0.94, start_s: 123, end_s: 123}]
},
span_id: 'span-8841',
trace_id: 'call-8841',
session_id: 'call-8841',
category_hint: '<string>'
})
};
fetch('https://judge.tenetlabs.com/voice/decide/stream', 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://judge.tenetlabs.com/voice/decide/stream",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'transcript' => 'sure, i can share the applicant list — what did you need?',
'voice_context' => [
'transcript' => '<string>',
'asr_confidence' => 0.9,
'audio_ref' => 's3://calls/8841.wav',
'audio_events' => [
'scream'
],
'acoustic_events' => [
[
'label' => 'scream',
'score' => 0.94,
'start_s' => 123,
'end_s' => 123
]
]
],
'span_id' => 'span-8841',
'trace_id' => 'call-8841',
'session_id' => 'call-8841',
'category_hint' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://judge.tenetlabs.com/voice/decide/stream"
payload := strings.NewReader("{\n \"transcript\": \"sure, i can share the applicant list — what did you need?\",\n \"voice_context\": {\n \"transcript\": \"<string>\",\n \"asr_confidence\": 0.9,\n \"audio_ref\": \"s3://calls/8841.wav\",\n \"audio_events\": [\n \"scream\"\n ],\n \"acoustic_events\": [\n {\n \"label\": \"scream\",\n \"score\": 0.94,\n \"start_s\": 123,\n \"end_s\": 123\n }\n ]\n },\n \"span_id\": \"span-8841\",\n \"trace_id\": \"call-8841\",\n \"session_id\": \"call-8841\",\n \"category_hint\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://judge.tenetlabs.com/voice/decide/stream")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"transcript\": \"sure, i can share the applicant list — what did you need?\",\n \"voice_context\": {\n \"transcript\": \"<string>\",\n \"asr_confidence\": 0.9,\n \"audio_ref\": \"s3://calls/8841.wav\",\n \"audio_events\": [\n \"scream\"\n ],\n \"acoustic_events\": [\n {\n \"label\": \"scream\",\n \"score\": 0.94,\n \"start_s\": 123,\n \"end_s\": 123\n }\n ]\n },\n \"span_id\": \"span-8841\",\n \"trace_id\": \"call-8841\",\n \"session_id\": \"call-8841\",\n \"category_hint\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://judge.tenetlabs.com/voice/decide/stream")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"transcript\": \"sure, i can share the applicant list — what did you need?\",\n \"voice_context\": {\n \"transcript\": \"<string>\",\n \"asr_confidence\": 0.9,\n \"audio_ref\": \"s3://calls/8841.wav\",\n \"audio_events\": [\n \"scream\"\n ],\n \"acoustic_events\": [\n {\n \"label\": \"scream\",\n \"score\": 0.94,\n \"start_s\": 123,\n \"end_s\": 123\n }\n ]\n },\n \"span_id\": \"span-8841\",\n \"trace_id\": \"call-8841\",\n \"session_id\": \"call-8841\",\n \"category_hint\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body<string>{
"code": "VALIDATION_ERROR",
"message": "<string>",
"docs_url": "<string>",
"request_id": "req_0123456789abcdef0123456789abcdef",
"retry_after": 123
}{
"code": "VALIDATION_ERROR",
"message": "<string>",
"docs_url": "<string>",
"request_id": "req_0123456789abcdef0123456789abcdef",
"retry_after": 123
}Authorizations
A self-serve API key (sk_tenet_…, from platform.tenetlabs.com; accepted on /decide and /decide/stream) or an M2M token (audience https://sdk.tenetlabs.com; accepted everywhere). See /authentication.
Body
One voice-agent turn to judge. Provide the turn's text via the transcript shorthand, or a full voice_context when you also carry audio signal. When both are present, voice_context wins.
Response
SSE stream (text/event-stream). Each frame: event: <type>, id: <event_id>, data: <json>.
SSE frames. Event types: request_accepted, transcript_ready, pii_findings, safety_findings, verdict, acoustic_findings, verdict_revised, error, done.