Experiments
End Experiment
Concludes the experiment and records required findings. Pass winning_arm to serve the winning treatment to everyone; omit it when control won. Ended experiments cannot restart, but may be ended again to correct the winner. Requires experiment:manage on the account, or internal access for platform experiments.
post/experiments/{id}/end
Headers
Idempotency-Keystring
Example:d9105228-4a08-46b1-8b91-42fed586d383
A unique key that makes this request safe to retry. See Idempotent requests.
Request body
Example request
{
"findings": "Treatment lifted signups 12%, shipping it to everyone.",
"winning_arm": "treatment"
}Response
experiment ended
Example response
{
"account_id": "internal",
"assignment_seed": "checkout_redesign_v21768435200",
"bucket_by": "user",
"configuration_revision": 1,
"control": {
"related_resource": {
"object": "app"
}
},
"created_at": "2026-01-01T12:00:00.000Z",
"created_by": "user_xxxxxxxxxxxxxx",
"ended_at": "2026-01-01T12:00:00.000Z",
"findings": "Treatment lifted conversion 8%",
"flag_key": "checkout_redesign_v2",
"hypothesis": "Users will convert more",
"id": "expt_xxxxxxxxxxxxxx",
"name": "Checkout Redesign V2",
"related_resource": {
"object": "app"
},
"started_at": "2026-01-01T12:00:00.000Z",
"status": "draft",
"targeting_rules": [
{
"conditions": [
{
"operator": "any",
"type": "user_id"
}
],
"type": "include"
}
],
"updated_at": "2026-01-01T12:00:00.000Z",
"variants": [
{
"name": "treatment",
"ranges": [
[
0,
50
]
],
"related_resource": {
"object": "app"
},
"weight": 50
}
],
"winning_arm": "treatment"
}Changes
No changes recorded. 1 of the 74 revisions has no diff computed, so it could not be searched.