For the complete documentation index, see llms.txt. This page is also available as Markdown.

POST /v2/evals/experiments

Create Eval Experiment

post

Snapshot a dataset and validate the selected workflow version and evaluators.

How to use

Snapshot an existing dataset with a selected saved workflow version or draft and compatible evaluators. This creates the experiment; execution starts separately through jobs.

Authentication and permissions

Required permissions: evals.create. Resource and owner access checks also apply.

Prepare request.json

Save the example body below as request.json for the curl sample. Replace example IDs, node keys, and dynamic configuration with values for your organization; these are illustrative, not pre-existing resources.

{
  "dataset_id": "00000000-0000-4000-8000-000000000001",
  "project_version_id": 1,
  "evaluator_ids": [
    "00000000-0000-4000-8000-000000000001"
  ]
}
Authorizations
AuthorizationstringRequired

Personal API key (sk_...) or supported user access JWT. See Authentication and authorization for endpoint restrictions and scopes. Use exactly one Authorization header.

Body
dataset_idstring · uuidRequired
project_version_idany ofRequired
const: draftOptional
or
integerOptional
evaluator_idsstring · uuid[]Optional
namestring · nullableOptional
notesstring · nullableOptional
Responses
201

Successful Response

application/json
post/v2/evals/experiments
curl
curl --fail-with-body -sS \
  "$STACKAI_BASE_URL/v2/evals/experiments" \
  -H "Authorization: Bearer $STACKAI_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-binary @request.json
{
  "response_code": "text",
  "meta": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "data": {
    "experiment": {
      "experiment_id": "123e4567-e89b-12d3-a456-426614174000",
      "project_id": "text",
      "dataset_id": "123e4567-e89b-12d3-a456-426614174000",
      "dataset_name": "text",
      "project_version_id": "text",
      "node_contract": {
        "input_kind": "start_node",
        "input_keys": [
          "text"
        ],
        "output_node_ids": [
          "text"
        ]
      },
      "name": "text",
      "notes": "text",
      "created_by": "123e4567-e89b-12d3-a456-426614174000",
      "created_at": "2026-01-01T00:00:00.000Z",
      "updated_at": "2026-01-01T00:00:00.000Z"
    },
    "warnings": {
      "draft_version": false,
      "rows_without_expected_output": 0
    }
  }
}

Last updated

Was this helpful?