Launch Eval
Launch a graded eval over a workflow’s whole dataset on a target version
202 immediately with an eval_id and run_number. Grading finalizes on a worker — poll the eval by its eval_id until its status leaves in_progress.
The response carries counts, never internal ids: enqueued_count (documents whose extraction was queued) and failed_count (documents that failed to enqueue). Read the eval by eval_id for the per-document breakdown.
Target version
Omitversion_id to evaluate the workflow’s current version; pass one to override. A workflow with no version yet returns 404 NOT_FOUND.
Idempotency
Without anIdempotency-Key, every launch creates a new eval — re-launching runs a fresh cohort and is metered accordingly (see How credits work). Supplying the header replays: a retry with the same key returns the original eval instead of launching a second run. See Idempotency.
version_id, a replayed key sent after a new version was published resolves to a different version than the first call, so the request no longer matches and returns 422. Pass an explicit version_id when you need a stable replay across version changes.Errors
Authorizations
API key issued from app.anyformat.ai/api-key. Send as Authorization: Bearer <key>.
Headers
Optional caller-supplied key (Stripe convention). Retrying with the same key returns the original eval instead of launching (and billing) a second full-dataset run.
Path Parameters
Body
Body for POST /v3/workflows/{workflow_id}/evals/ (JSON, optional).
Send {} (or no body) to evaluate the workflow's current version.
Workflow version to evaluate. Omit to run against the workflow's current version; pass a value to override.
"abcdef1234"
Response
Successful Response
202 response: the eval was created and its cohort enqueued.
Exposes counts, never the internal extraction/file ids. Read the eval by
eval_id for the per-document breakdown (including which documents
failed to enqueue).
Unique identifier of the new eval (hyphenated UUID); the poll handle.
"069dcc2c-e14c-7606-8000-2ee4fb17b4f9"
Per-workflow run counter (#1, #2, …) for this eval.
3
Number of dataset documents whose extraction was enqueued for this run.
42
Number of dataset documents that failed to enqueue. Read the eval for the failed document ids.
0
