Skip to navigation

Queue Evaluation

Queue an evaluation of an uploaded case set against one to eight named query configurations. Idempotency-Key is required: within 24 hours the same key with the same body returns the stored 201 body with status 200; the same key with a different body is 409 (IDEMPOTENCY_KEY_REUSE). Gold is resolved at accept time (document id, then unique basename); unresolved cases are error and never queried or billed. Each configs[] entry is the v3 query body minus query and is validated the same way. Each unit (one question under one config) is billed as one query, so whether it costs credits depends on the plan; only units that ran (scored, or timed out at the 30 s limit) are counted. Scoring, limits, billing and the NDJSON format are on the Evaluations guide.

Path parameters

collection_namestringRequired

Headers

Idempotency-Keystring or nullRequired

Caller-chosen key, 1 to 256 characters of A-Z a-z 0-9 . _ : / = + -, scoped to the organization for 24 hours.

Request

This endpoint expects an object.
configslist of objectsRequired
upload_idstringRequired5-64 characters
environmentstring or nullOptional<=64 characters

Echo-only label for the scorecard. Does not switch collections.

Response

Idempotent replay: the stored original 201 body (including the original eval_id), not live status. Poll Get Eval for progress.

collection_namestring
configslist of objects
created_atstring
eval_idstring
idempotency_keystring
items_pageobject
previewobject
progressobject
request_idstring
statusenum
Allowed values:
updated_atstring
upload_idstring
billingobject or nullOptional
completed_atstring or nullOptional
environmentstring or nullOptional
error_codestring or nullOptional
error_messagestring or nullOptional
itemslist of objectsOptional
scorecardsmap from strings to objectsOptional
started_atstring or nullOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error