Skip to main content
Base URL: https://judge.tenetlabs.com. JSON in, JSON out — except the stream endpoint, which speaks Server-Sent Events. Use the raw API when your harness isn’t Python. If it is, the SDK already handles auth, retries, fail-closed semantics, and the request envelope — don’t rebuild those.

Auth

Every endpoint except GET /health requires a bearer token: an API key or an M2M token.
API keys work on the decide endpoints only. GET /ready, /health/warm and GET /v1/config require an M2M token. See Authentication. A missing or invalid bearer returns 401 (Errors). The SDK also stamps X-Tenet-Api-Version: 0.4 on every /decide request (sync, async, streaming), declaring the send-side wire contract it speaks. The SDK sets it for you; raw integrations don’t need it. Read-intent & wire contract.

Endpoints

/eeo/* paths 308-redirect to their unprefixed equivalents (/eeo/decide → /decide, etc.) and the redirect preserves method and body across the hop. Use the unprefixed path directly. Pick by how you consume the result: sync /decide by default; /decide/stream when a user-visible interaction should react to a block as early as possible. For backfills and audits, send each item to /decide from your own queue.

Batch API (retired)

The file-based batch surface — POST /files, POST /batches, GET /batches/{batch_id}, GET /files/{file_id}/content, and their /eeo/... aliases — was retired in September 2026. For an authenticated caller, every one of those routes returns 410 Gone in the error envelope:
A request without a bearer token gets 401, not 410. Migration: send each item to POST /decide. Branch on the 410 status or code, not the message text.

Request envelope

The fields that determine judgment quality:
  • surface — what kind of recruiting action this is: resume_triage | job_ad_drafting | candidate_ranking | interview_question_gen | candidate_outreach. The judge reads it with the request to frame the ask, so pick it per request from the user’s current intent — never hardwire one value for all traffic. The example above is a screening ask, hence resume_triage. Full guidance, per-surface examples, and the chat-product mapping: Surfaces.
  • context.recruiter_prompt — the user’s actual ask, verbatim. Required for full safety-pattern coverage.
  • context.candidate_content — resume/candidate text, whenever the action involves one. Omitting it disables candidate-side protections.
  • context.tool_input / context.tool_description — on a tool phase, the parameters you’re about to call with and what the tool requires. The judge reads them as facts and evaluates them; context.tool_name alone doesn’t move a verdict. Tool context.
  • session_id — stable per conversation; groups multi-turn evaluations into one verdict trace.
  • domains — optional per-call narrowing of the entitled domain set. Omit for full coverage. See Multi-verdict responses.
  • intent — optional top-level caller-asserted classification: read | action | unknown. The service’s highest-precedence intent signal, recorded on the decision trace; the current judge doesn’t change verdicts on it. Omit (or send unknown/null) for no assertion. A caller read is authoritative only at phase="tool_post" and advisory at agent_input — see the read-intent contract.
  • workflow — optional trace-only label naming which of your integrations made the call (resume-screener, recruiter-agent). Lowercase slug, ≤64 chars; never affects the verdict. Verdict traces.
  • mode — judge (default) or guardrails. See Guardrails mode.

Message content

messages[*].content is a string or a list of text parts. Parts of type text, input_text, or output_text are concatenated with no separator and judged as one string, so include your own whitespace between parts:
Any other part type — image, audio, file, tool block — is rejected rather than skipped, because the judge reads text only:
With more than one user message, the last is the request under judgment; earlier user turns are read as conversation context, so a turn that was already judged isn’t flagged again inside every later request. A follow-up that carries out or refers back to an earlier ask (“yes, do it”) is still judged against it. Put retrieved or tool-returned text in a role: "tool" message. The judge reads tool-role content as untrusted, so an instruction inside it is treated as a possible injection rather than as the user’s request.
All fields are snake_case — session_id, not sessionId. A camelCased field is silently ignored, not rejected, so a typo drops the field without an error.

Response shape

POST /decide returns one envelope. Five root fields are always present:
decision_id is the decision’s 32-hex correlation key — log it, and quote it when reporting a verdict (Verdict traces). route_reason and degraded are added on route_to_human verdicts (Route provenance), caveat on include_with_caveats. Per-domain detail — verdict, severity, enforcement, rule_ids, risk_labels, evidence_span — lives on each findings[] entry. A domain can appear on more than one finding (one pii finding per detected type), so the set of domains that ran is {f["domain"] for f in findings}. Which domains enforce depends on your plan (see Tier entitlements). PII detection runs on every request regardless of plan and lands as a pii finding. Disclosure and prompt injection collapse onto a single safety finding on the wire; per-sub-domain detail lives in that finding’s sub_findings array. EEO is the always-present spine for plans that include it. The top-level verdict carries the merged most-restrictive judgment across findings whose enforcement is enforce — an integration that branches only on verdict and severity is safe by construction. Read findings[] for per-domain audit logs and visibility into audit-only signals.

PII redaction

PII detection runs before the EEO judge and the safety rails. Any detected PII span — except an age, which the judge needs to read — is redacted out of the request before any third-party LLM sees it (the judge, the risk screener, and every safety rail consume placeholder-substituted text). Text the service returns carries the placeholders (<EMAIL_1>, <PERSON_1>, …) and PII findings carry a masked preview; detected values are not returned. The placeholder → original map isn’t returned, and the SDK doesn’t rehydrate placeholders — map them back on your side if you render that text to users. Full posture. Full rules — merge ordering, unknown-verdict normalization, the safety bundle, entitlement-driven bundles: Multi-verdict responses.

Guardrails mode

Send "mode": "guardrails" when you want PII redaction and injection/exfil screening without an EEO judgment. The EEO judge doesn’t run; the response carries the PII and safety findings plus redacted — your own messages and context with each detected PII value replaced by a typed placeholder:
The top-level verdict reflects only the checks that ran — it is not a hiring judgment. Guardrails mode is /decide only: /decide/stream returns 400 for it.

Errors

Errors share one envelope. Branch on code — except on a 401, which can arrive without the envelope, so branch on the status there. Quote request_id (also sent as the X-Tenet-Request-Id header) when reporting a problem. Each docs_url resolves to this table.
When the judge can’t answer, your request doesn’t 5xx — you get a normal 200 with verdict: "route_to_human", route_reason: "infra_degraded", and degraded: true. Treat that as “the judge declined to decide,” not as an allow.