Experiments
Create Experiment
Creates a draft experiment for the specified account. Use internal for a Whop platform experiment.
post/experiments
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
{
"account_id": "internal",
"bucket_by": "user",
"control": {
"related_resource": {
"object": "app"
}
},
"flag_key": "checkout_redesign_v2",
"hypothesis": "If we send a blueprint nudge email 30 minutes after business creation, then GTV within 10 hours will increase among newly created businesses, resulting in more new business operators generating GTV within 10 hours, because operators currently land on an empty dashboard with no concrete next step. Created by Jane Doe.",
"name": "Checkout Redesign V2",
"related_resource": {
"object": "app"
},
"targeting_rules": [
{
"conditions": [
{
"operator": "any",
"type": "user_id"
}
],
"type": "include"
}
],
"variants": [
{
"name": "treatment",
"related_resource": {
"object": "app"
},
"weight": 50
}
]
}Response
experiment created
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"
}