The Experiment Object
An object that represents an experiment, including its variants and per-variant story mappings.
Properties
Section titled “Properties”-
idnumberNumeric ID of the experiment.
-
namestringTechnical name of the experiment. Lowercase letters, numbers, and underscores only. Immutable after creation.
-
display_namestringHuman-readable display name of the experiment.
-
descriptionstringDescription of the experiment.
nullif there’s no description. -
statusstringStatus of the experiment. One of
draft,running,paused, orcompleted. -
started_atstringThe experiment’s first activation date and time (ISO 8601).
nulluntil activating the experiment. -
ended_atstringThe experiment’s completion date and time (ISO 8601).
nulluntil completing the experiment. -
created_atstringThe experiment’s creation date and time (ISO 8601).
-
updated_atstringThe experiment’s latest update date and time (ISO 8601).
-
story_idsnumber[]Array of story IDs associated with the experiment.
-
winning_variant_idnumberNumeric ID of the winning variant.
nulluntil the experiment is completed with a winning variant. -
experiment_variantsobject[]Array of variants that belong to the experiment.
Show child properties
-
idnumberNumeric ID of the variant.
-
namestringTechnical name of the variant. Lowercase letters, numbers, and underscores only.
-
display_namestringHuman-readable display name of the variant.
-
public_idstringPublic identifier of the variant. Used by client-side experimentation logic to reference the variant.
-
weightnumberTraffic weight of the variant in percent (0–100). The sum of all variant weights in an experiment must equal
100. -
is_controlbooleantrueif the variant is the control. The control is the baseline for measurements against other variants. -
story_mappingsobject[]Array of mappings from original stories to variant stories.
Show child properties
-
experiment_variant_idnumberNumeric ID of the variant the mapping belongs to.
-
original_story_idnumberNumeric ID of the original (main) story.
-
variant_story_idnumberNumeric ID of the variant story that replaces the original story when the loading the variant.
-
original_slugstringfull_slugof the original story. -
variant_slugstringfull_slugof the variant story. Storyblok derives the variant slug from the original slug, the experiment’s technical name, and the variant’s technical name, joined with hyphens. -
variant_storyobjectThe variant story object.
-
-
{"experiment": { "id": 176070002766742, "name": "a_simple_experiment", "display_name": "A simple experiment", "description": null, "status": "running", "started_at": "2026-01-15T10:00:00.000Z", "ended_at": null, "created_at": "2026-01-10T09:00:00.000Z", "updated_at": "2026-01-15T10:00:00.000Z", "story_ids": [176024833123843], "winning_variant_id": null, "experiment_variants": [ { "id": 1001, "name": "control", "display_name": "Control", "public_id": "var_uhjedoghzx68", "weight": 70, "is_control": true, "story_mappings": [] }, { "id": 1002, "name": "test", "display_name": "Test", "public_id": "var_xhicas8uin5l", "weight": 30, "is_control": false, "story_mappings": [ { "experiment_variant_id": 1002, "original_story_id": 176024833123843, "original_slug": "home", "variant_story_id": 176070141098149, "variant_slug": "home-a_simple_experiment-test" } ] } ]}}Was this page helpful?
This site uses reCAPTCHA and Google's Privacy Policy (opens in a new window) . Terms of Service (opens in a new window) apply.
Get in touch with the Storyblok community