admin

Recompute Interview Cost

Re-price every session in this interview using the current rates blob.

Motivating case: the agent stamps cost_breakdown onto each session at end-of-call using the rates active at that moment. If pricing_rates was updated later (admin PATCH, new models added to the seed), the stored totals are stale — typically $0 for any model that wasn't yet priced. The raw token counts, audio durations, and character counts ARE preserved per-turn, so we can recompute cleanly from stored data.

Idempotent. Running twice produces the same result. Does NOT recompute the interview's processing_cost (output generation) — that's a separate pipeline; we can add a sister endpoint if it becomes a real need.

post/v1/admin/interviews/{interview_id}/recompute-cost

Path parameters

interview_idstring required

Response

Successful Response

{"stackTrail":"paths:/v1/admin/interviews/{interview_id}/recompute-cost:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

No recorded changes to this endpoint across all 1 revision of this API.