Get Experiment Details
GET
/v2/project/{project_key}/experiment/{test_id}Return full details for one experiment, including its variants, goals, targeting rules, and configuration.
Path parameters
| Parameter | Description |
|---|---|
project_key | Your project's API key |
test_id | The numeric experiment ID (from Create Experiment or List Experiments) |
Example
curl "https://api-{region}.mida.so/v2/project/YOUR_PROJECT_KEY/experiment/1234" \
-H "Authorization: Bearer YOUR_GENERATED_API_KEY"
Success response
{
"success": true,
"experiment": {
"test_id": 1234,
"test_name": "Homepage CTA Button Color Test",
"url": "https://example.com/",
"status": 9,
"created_at": "2024-01-15T10:30:00.000Z",
"updated_at": "2024-01-20T14:22:00.000Z",
"goal_profile_id": 99,
"variants": [
{
"variant_id": 1,
"name": "Control",
"customCSS": "",
"customJS": "",
"data": []
},
{
"variant_id": 2,
"name": "Variant 1 — Red Button",
"customCSS": ".cta-button { background-color: #FF5733 !important; }",
"customJS": "",
"data": []
}
],
"configuration": {
"traffic_allocation": 100,
"confidence_interval": 95
},
"targeting": {
"devices": [],
"browsers": [],
"countries": []
},
"primary_goal": {
"goal_profile_id": 99,
"goal_name": "CTA Button Click",
"goal_type": "clickOnElement",
"goal_value": ".cta-button"
}
}
}
Key response fields
| Field | Type | Description |
|---|---|---|
experiment.test_id | integer | Unique experiment ID |
experiment.status | integer | 9=draft, 1=live, 0=inactive |
experiment.variants | array | All variant objects including CSS/JS changes |
experiment.configuration | object | Traffic allocation and confidence interval settings |
experiment.targeting | object | Device, browser, country rules (empty array = all) |
experiment.primary_goal | object | The primary conversion goal definition |
experiment.serving_variant_id | string | null | When set, the variant id currently served at 100% after Set winner & serve |
experiment.is_deploy | integer | Legacy deploy flag (1 = old separate deploy campaign). New deployments use serving_variant_id instead. |
Error responses
| Status | Meaning |
|---|---|
401 | Invalid or missing API key |
404 | Experiment not found or belongs to a different project |
About targeting in the response
The targeting.devices, targeting.browsers, and targeting.countries fields return flat string arrays (e.g. ["desktop"], ["US", "CA"]). An empty array means "all" — no restriction. These are the stored values as applied by the Mida tracking script.
Next step
Need configured traffic splits without the full experiment payload? Use Get Experiment Distribution. Ready to see how the experiment is performing? Use Get Experiment Result to retrieve per-variant conversion data.