experiments
Create experiment
Create a new experiment with specified configuration.
Supports two modes:
1. Simple creation: Provide name (required), description, stages, prolificConfig. This is the easiest way to create a basic experiment.
2. Full template creation: Provide a complete template object (ExperimentTemplate). This creates the experiment with all stages and agents, using the same logic as the UI. Other fields are ignored when template is provided.
post/experiments
Request body
Response
Experiment created successfully
Example response
{
"experiment": {
"id": "exp123",
"versionId": 18,
"metadata": {
"name": "Decision Making Study",
"publicName": "Decision Study",
"description": "Research on group decision making",
"tags": [
"research",
"decision-making"
],
"creator": "experimenter123"
},
"permissions": {
"visibility": "private",
"readers": [
"experimenter123"
]
},
"stageIds": [
"stage1",
"stage2"
]
}
}