Create an experiment

Create a new experiment with workflows. Supports custom (submit results via API), completion (auto-run LLM calls), and prompt (test prompt versions) workflow types.

Headers

AuthorizationstringRequired

Bearer token. Use Bearer YOUR_API_KEY.

Request

This endpoint expects an object.
namestringRequired
Experiment name.
dataset_idstringRequired
Dataset ID to run against.
descriptionstringOptional
Experiment description.
workflowslist of objectsOptional

Array of workflow configs. Each has type, config, and optional settings.

evaluator_slugslist of stringsOptional

Evaluator slugs to auto-run on results.

Response

Successful response for Create experiment
idstring
namestring
descriptionstring
dataset_idstring
workflowslist of objects
evaluator_slugslist of strings
statusstring
created_atstring
updated_atstring

Errors

401
Unauthorized Error