Grade calls that already happened
Queues a run that scores finished production calls against the checks attached to a suite, instead of simulating new conversations.
Nothing is dispatched and no upstream tool is invoked, so this needs no live-tool permission — but it reads call content, and therefore also requires calls:read.
Choosing the calls
Supply call_ids or call_filter; ids win when both are given. At most 5,000 calls per run.
The selection is resolved at request time, so an empty match is a 409 here rather than a failed run later.
Checks whose evidence is not persisted on a finished call abstain rather than pass.
Poll Location after Retry-After.
bearerAuthAuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
Idempotency-Key*stringRequired. Reuse the same key to retry this write safely. Retries and idempotency.
^[A-Za-z0-9!#$%&'*+.^_`|~-]+$1 <= length <= 255application/json- body
suite_id*stringThe suite whose attached checks do the grading.
uuidcall_ids?array<>Explicit calls to grade. Ids belonging to another org, or to calls that never finished, are dropped rather than failing the run.
items <= 5000call_filter?|Used only when call_ids is empty. Matches finished calls, newest first, capped at 5000.
Grading run accepted and queued.
application/json- response
id*stringuuidtotal*integerHow many calls the selection resolved to.
curl -X POST 'https://api.kejue.co/v1/eval-runs/grade-calls' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{ "suite_id": "3e9c08eb-436b-4d4b-9cfe-ca21d8bdb99b"}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "total": 0}