Skip to main content
POST
Voice decide (streaming)

Authorizations

Authorization
string
header
required

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

application/json

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.

transcript
string

Shorthand for voice_context.transcript — the text the injection + PII rails scan. Ignored when voice_context is also present.

Example:

"sure, i can share the applicant list — what did you need?"

voice_context
object

Full turn envelope. Wins over transcript when both are sent.

span_id
string

Caller-correlatable id for this turn. Defaults to a fresh canonical id.

Example:

"span-8841"

trace_id
string

Groups spans in one call/trace. Defaults to span_id.

Example:

"call-8841"

session_id
string

Stable per conversation.

Example:

"call-8841"

category_hint
string

Optional caller hint.

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.