Skip to main content

List Experiments

GET/v2/project/{project_key}/experiments

Return all experiments for the company tied to the provided project key. Supports pagination.

Query parameters​

ParameterTypeDefaultDescription
limitinteger50Max results to return. Maximum 500.
offsetinteger0Number of records to skip (for pagination).

Example​

curl "https://api-{region}.mida.so/v2/project/YOUR_PROJECT_KEY/experiments?limit=20&offset=0" \
-H "Authorization: Bearer YOUR_GENERATED_API_KEY"

Success response​

{
"success": true,
"company_id": 1001,
"count": 2,
"experiments": [
{
"test_id": 1234,
"test_name": "Homepage CTA Button Color Test",
"url": "https://example.com/",
"status": 1,
"is_completed": 0,
"hypothesis_id": 4021,
"hypothesis": {
"hypothesis_id": 4021,
"problem": "The plan comparison is three screens tall on a phone.",
"solution": "Collapse the comparison into a single card with a plan switcher."
},
"created_at": "2024-01-15T10:30:00.000Z",
"updated_at": "2024-01-20T14:22:00.000Z"
},
{
"test_id": 1235,
"test_name": "Pricing Page Hero Copy Test",
"url": "https://example.com/pricing",
"status": 0,
"is_completed": 1,
"hypothesis_id": null,
"created_at": "2024-02-01T08:00:00.000Z",
"updated_at": "2024-03-01T09:00:00.000Z"
}
]
}

Response fields​

FieldTypeDescription
experimentsarrayList of experiment objects
experiments[].test_idintegerUnique experiment ID — use this in all other experiment endpoints
experiments[].test_namestringDisplay name
experiments[].urlstringThe page URL being tested
experiments[].statusintegerNumeric status (see table below)
experiments[].is_completedinteger1 if the experiment was formally concluded via the dashboard, 0 otherwise. Deactivating via API (status: 0) does not set this — it is only set from the Mida dashboard.
experiments[].hypothesis_idinteger|nullThe hypothesis this test came from, if any. Pass it to Get Hypothesis Details
experiments[].hypothesisobjectOnly present when the experiment has one: hypothesis_id, observation, problem and solution, so a list of tests reads as a list of reasons. Fields left blank are omitted. Ratings live on Get Hypothesis Details
experiments[].created_atstringISO 8601 creation timestamp
experiments[].updated_atstringISO 8601 last-updated timestamp
experiments[].serving_variant_idstring | nullPresent when the experiment is serving a winner at 100% on the same test
experiments[].is_deployintegerLegacy deploy flag; prefer serving_variant_id for unified serving
countintegerTotal number of experiments returned

Status values​

ValueMeaning
9Draft — created but not yet started
1Live — actively running
0Inactive — deactivated or paused

Pagination​

Increment offset by limit to retrieve the next page.

# Page 2 with 20 results per page
curl "https://api-{region}.mida.so/v2/project/YOUR_PROJECT_KEY/experiments?limit=20&offset=20" \
-H "Authorization: Bearer YOUR_GENERATED_API_KEY"

Error responses​

StatusMeaning
401Invalid or missing API key
Next step

Use the test_id from this response to call Get Experiment Details or Get Experiment Result.