latestOpenAPI 3.1.02026-08-218667571.2 MB

a8ca30023371

Integration APIs
lenses-judge-verdicts

Record Lenses Answer-Judge Verdict

Receive a runtime answer-judge verdict from power-api and upsert it into Pancake tracking.llm_judge_results, keyed by trace_id, for use as the historical-replay prod baseline.

post/api/v1/integration/lenses-judge-verdicts

Request body

trace_idstring nullable
session_idstring required
judge_modelstring required
questionstring required

The user question (exact_wording).

answeredboolean required
reasonstring
response_excerptstring

Relevant excerpt from the assistant response.

user_emailstring email nullable
trace_timestampstring date-time nullable

Turn timestamp; defaults to now if omitted.

Example request

{
  "answered": true,
  "judge_model": "claude-haiku-4-5-20251001",
  "question": "What was Walmart's card spend in Q1?",
  "reason": "States a specific figure for the requested metric.",
  "response_excerpt": "Walmart card spend was $1.2B in Q1 2026.",
  "session_id": "lenses-7abf23dd-2eb7-424a-a9e5-b764cae0e88e",
  "trace_id": "11045182356319810459",
  "trace_timestamp": "2026-06-29T15:00:00Z",
  "user_email": "karl.deek@carbonarc.co"
}

Response

Successful Response

trace_idstring required
messagestring

Example response

{
  "trace_id": "11045182356319810459"
}