Start Prompt Version Evaluation Job

Start an offline evaluation of a version against the prompt's eval dataset and graders. The response carries eval run id; poll it with Get Prompt Version Eva…

Start an offline evaluation of a version against the prompt's eval dataset and graders. The response carries eval_run_id; poll it with Get Prompt Version Eval Run. Fails with 400 when no dataset or grader is attached.

posthttps://statsigapi.net/console/v1/prompts/{id}/versions/{versionId}/start_evals

Authorizations

STATSIG-API-KEYstringrequired

apiKey (header)

Path parameters

versionIdstringrequired
idstringrequired

id

Response

application/json
200· Start evaluation job for a Prompt Version
messagestringrequired

A simple string explaining the result of the operation.

dataobjectrequired
Show child attributes
idstringrequired
Constraints:min length: 3max length: 100
namestringrequired
Constraints:min length: 3max length: 100
typestring

Live is served to users; Candidate is served to code for shadow runs; Draft and Archive are not served.

Allowed values:LiveCandidateArchiveDraft
versionnumber
Constraints:format: double
promptsobject[]
rolestringrequired
contentstringrequired
modelstring
providerstring
eval_modelstring
temperaturenumber
Constraints:format: double
top_pnumber
Constraints:format: double
max_tokensnumber
Constraints:format: double
frequency_penaltynumber
Constraints:format: double
presence_penaltynumber
Constraints:format: double
workflow_urlstring
Constraints:nullable
createdTimenumber
Constraints:format: double
lastModifiedTimenumber
Constraints:format: double
eval_run_idstring

Set only by Start Prompt Version Evaluation Job: the eval run it started. Poll it with List Prompt Version Eval Runs.

400· Invalid request. Please check the request input and try again.
statusintegerrequired
Allowed values:400
messagestringrequired
402· Your organization's Included Credits have run out, and it has no API key of its own for a provider the run calls. Add one in Settings → Products → General, then retry.
statusintegerrequired
Allowed values:402
messagestringrequired
404· Not Found. The requested resource could not be found.
statusintegerrequired
Allowed values:404
messagestringrequired

Was this helpful?

For AI agents: a documentation index is available at /llms.txt. Append .md to any page URL for markdown, or send Accept: text/markdown.