Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Mida Exclusion groups API
version: 2.0.0
description: 'Manage Mida A/B tests, goals, events, hypotheses, surveys and personalization campaigns. Accounts live in one region: call the US or EU server your account is hosted in (Dashboard → Settings shows which). Generated from https://docs.mida.so.'
contact:
name: Mida
url: https://www.mida.so
servers:
- url: https://api-us.mida.so
description: US region
- url: https://api-eu.mida.so
description: EU region
security:
- bearerAuth: []
- apiKeyHeader: []
tags:
- name: Exclusion groups
paths:
/v2/project/{project_key}/exclusion-groups:
post:
operationId: createExclusionGroup
summary: Create Exclusion Group
description: 'Make a set of experiments mutually exclusive: each visitor is assigned to exactly one of them, by traffic split. Use this when experiments overlap on the same page or audience — the answer to overlap is a group, not fewer tests.'
tags:
- Exclusion groups
externalDocs:
url: https://docs.mida.so/docs/v2/create-exclusion-group
parameters:
- name: project_key
in: path
required: true
schema:
type: string
description: Your project's API key
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: '**Required.** Label shown in the dashboard''s Mutually Exclusive list'
description:
type: string
description: Optional note on why these are grouped
tests:
type: array
items: {}
description: '**Required.** At least two entries of `{ "test_id": number, "percent"?: number }`. Every experiment must belong to this project. If any `percent` is given, all must be, and they must sum to 100. Omit all percents for an even split (3 tests → 33/33/34)'
responses:
'200':
description: Success
content:
application/json:
example:
success: true
name: Pricing page tests
tests:
- test_id: 34567
percent: 60
- test_id: 34580
percent: 40
'401':
description: Missing or invalid API key
get:
operationId: listExclusionGroups
summary: List Exclusion Groups
description: List the project's mutually exclusive groups. A group splits traffic so each visitor enters exactly one of its experiments, keeping tests that share a page from contaminating each other's results.
tags:
- Exclusion groups
externalDocs:
url: https://docs.mida.so/docs/v2/list-exclusion-groups
parameters:
- name: project_key
in: path
required: true
schema:
type: string
description: Your project's API key
responses:
'200':
description: Success
content:
application/json:
example:
success: true
groups:
- id: 42
name: Pricing page tests
description: Both tests change the Growth plan card
tests:
- test_id: 34567
percent: 50
test_name: Daily-cost framing
status: 1
- test_id: 34580
percent: 50
test_name: Annual toggle default
status: 9
'401':
description: Missing or invalid API key
/v2/project/{project_key}/exclusion-groups/{group_id}:
delete:
operationId: deleteExclusionGroup
summary: Delete Exclusion Group
description: Remove a mutually exclusive group. The experiments in it keep running — they just stop being exclusive, so a visitor can enter more than one of them again.
tags:
- Exclusion groups
externalDocs:
url: https://docs.mida.so/docs/v2/delete-exclusion-group
parameters:
- name: project_key
in: path
required: true
schema:
type: string
description: Your project's API key
- name: group_id
in: path
required: true
schema:
type: integer
description: The group's `id` from List Exclusion Groups
responses:
'200':
description: Success
content:
application/json:
example:
success: true
group_id: 42
group_name: Pricing page tests
note: Removed. 2 experiments keep running, but they are no longer exclusive — a visitor can enter more than one of them again.
'401':
description: Missing or invalid API key
patch:
operationId: updateExclusionGroup
summary: Update Exclusion Group
description: Change an exclusion group's membership, splits, name or description. The tests array REPLACES the whole membership — to add one experiment, send the existing tests plus the new one.
tags:
- Exclusion groups
externalDocs:
url: https://docs.mida.so/docs/v2/update-exclusion-group
parameters:
- name: project_key
in: path
required: true
schema:
type: string
description: Your project's API key
- name: group_id
in: path
required: true
schema:
type: integer
description: The group's `id` from List Exclusion Groups
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: New label
description:
type: string
description: New note
tests:
type: array
items: {}
description: 'The **complete new membership**, replacing the old. Same rules as Create: at least two entries, percents all-or-none summing to 100'
responses:
'200':
description: Success
content:
application/json:
example:
success: true
group_id: 42
group_name: Pricing page tests
tests:
- test_id: 34567
percent: 33
- test_id: 34580
percent: 33
- test_id: 34601
percent: 34
'401':
description: Missing or invalid API key
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'An API key generated in the Mida dashboard, sent as `Authorization: Bearer <key>`.'
apiKeyHeader:
type: apiKey
in: header
name: x-api-key
description: 'The same API key, sent as `x-api-key: <key>`.'
externalDocs:
url: https://docs.mida.so/docs/intro