Test a grader
⚠️
Preview — this feature is being built; the design below is the spec.
POST https://app.syntic.ai/v1/evals/graders/{grader_id}/testGrade a single output against an ideal answer without starting a run. Use it to calibrate a rubric on a handful of known-good and known-bad answers before you trust it on hundreds.
For how this fits into a full workflow, see Evaluations.
Headers
| Header | Required | Value |
|---|---|---|
Authorization | Yes | Bearer <key>: a private inference key (sk_live_...). See Authentication. |
syntic-beta | Yes, while in preview | evals-2026-12-01. Without it the call fails with 400 beta_required. See Versioning. |
Content-Type | Yes | application/json |
Path parameters
| Parameter | Type | Description |
|---|---|---|
grader_id | string | Starts with evgr_. |
Body parameters
| Parameter | Type | Required | Notes |
|---|---|---|---|
output | string | Yes | |
ideal | string | No | |
input | object | No | Shown to rubric graders as context. |
Response
200 OK, Content-Type: application/json
{
"score": 2,
"passed": false,
"explanation": "Gives a 30-day timeline that contradicts the 3-working-day policy; apologises correctly.",
"usage": {
"input_tokens": 412,
"output_tokens": 58
}
}| Field | Type | Description |
|---|---|---|
score | number | On the grader’s scale: 0 or 1 for code graders, 1 to 5 for rubrics, 0 to 1 for similarity. |
explanation | string or null | Rubric graders explain their score. |
Examples
curl -sS "https://app.syntic.ai/v1/evals/graders/evgr_01JD46E8G0J2L4N6Q8S0/test" \
-H "Authorization: Bearer $SYNTIC_API_KEY" \
-H "syntic-beta: evals-2026-12-01" \
-H "Content-Type: application/json" \
-d '{
"input": {
"ticket": "I was charged twice for order 88123."
},
"output": "Sorry about that! Refunds normally take up to 30 days.",
"ideal": "Apologise, confirm the duplicate charge, say the refund is issued within 3 working days."
}'Errors
Errors use the error envelope and carry a request_id. Codes specific to this operation:
| Status | type | code | When |
|---|---|---|---|
| 400 | invalid_request_error | beta_required | The syntic-beta header is missing. |
| 404 | not_found_error | grader_not_found | No grader with this id. |
| 401 | authentication_error | invalid_api_key | The key is missing, unknown, revoked or expired. |
| 429 | rate_limit_error | rate_limited | Too many requests; wait for Retry-After. See Rate-limit headers. |
Was this page helpful?