MailInApp Experiments API
The Experiments API from MailInApp — 3 operation(s) for experiments.
The Experiments API from MailInApp — 3 operation(s) for experiments.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/mailinapp-com:mailinapp-com-experiments-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a 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.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Mailinapp Com Experiments API
version: 1.0.0
contact:
name: MailInApp
url: https://mailinapp.com
description: 'Operations tagged Experiments across 2 of this provider''s published API definitions: mailinapp-com-openapi.json, mailinapp-com-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://mailinapp.com
security:
- apiKey: []
tags:
- name: Experiments
paths:
/api/v1/experiments:
get:
tags:
- Experiments
operationId: listExperiments
summary: List experiments
description: 'The account''s send and journey experiments, newest first (up to 500). Read-only: experiments are created, launched and decided in the dashboard.'
parameters:
- name: status
in: query
required: false
description: Only experiments in this status.
schema:
type: string
enum:
- draft
- scheduled
- sending
- observing
- analyzing
- decided
- inconclusive
- closed
- cancelled
- name: kind
in: query
required: false
description: Only send or only journey experiments.
schema:
type: string
enum:
- send
- journey
- name: projectId
in: query
required: false
description: Only experiments stored on this email.
schema:
type: string
- name: journeyId
in: query
required: false
description: Only this journey's experiments.
schema:
type: string
responses:
'200':
description: The experiments
content:
application/json:
schema:
type: object
required:
- experiments
properties:
experiments:
type: array
items:
$ref: '#/components/schemas/Experiment'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
servers:
- url: https://mailinapp.com
/api/v1/experiments/{id}:
get:
tags:
- Experiments
operationId: getExperiment
summary: Get an experiment
parameters:
- $ref: '#/components/parameters/Id'
responses:
'200':
description: The experiment
content:
application/json:
schema:
type: object
required:
- experiment
properties:
experiment:
$ref: '#/components/schemas/Experiment'
'404':
$ref: '#/components/responses/NotFound'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
servers:
- url: https://mailinapp.com
/api/v1/experiments/{id}/results:
get:
tags:
- Experiments
operationId: getExperimentResults
summary: Get an experiment's results
parameters:
- $ref: '#/components/parameters/Id'
description: The experiment plus its full report, the same as the dashboard's JSON export.
responses:
'200':
description: The experiment and its report
content:
application/json:
schema:
type: object
required:
- experiment
- report
properties:
experiment:
$ref: '#/components/schemas/Experiment'
report:
$ref: '#/components/schemas/ExperimentReport'
'404':
$ref: '#/components/responses/NotFound'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
servers:
- url: https://mailinapp.com
components:
schemas:
ExperimentArm:
type: object
required:
- key
- label
- isControl
- isHoldout
- allocation
- pathIndex
properties:
key:
type: string
label:
type: string
isControl:
type: boolean
isHoldout:
type: boolean
description: A holdout is mailed nothing.
allocation:
type: number
description: The arm's share of the sample, 0–1.
pathIndex:
type:
- integer
- 'null'
description: The split path this arm is (0-based), for a journey experiment; null for a send experiment.
Error:
type: object
description: An RFC 9457 problem details document. Routes may add extension members, such as a machine-readable `code`.
required:
- type
- title
- status
- detail
- error
properties:
type:
type: string
description: A URI naming the problem type; `about:blank` means the HTTP status says it all.
example: about:blank
title:
type: string
description: The HTTP status's reason phrase.
example: Not Found
status:
type: integer
description: The HTTP status code, repeated.
example: 404
detail:
type: string
description: What went wrong with this request, for a person to read.
example: List not found
error:
type: string
description: The same text as `detail`, kept for clients written before problem details.
example: List not found
code:
type: string
description: A machine-readable reason, on the routes that have one.
additionalProperties: true
Experiment:
type: object
description: An A/B experiment. A send experiment mails its arms; a journey experiment's arms are a journey split's paths, and contacts are assigned as they reach the split. The same object is the `experiment` in the experiment.decided and experiment.completed webhook events.
required:
- id
- name
- kind
- status
- projectId
- journey
- hypothesis
- primaryMetric
- secondaryMetrics
- guardrailMetrics
- analysis
- arms
- createdAt
- lockedAt
- sendAt
- observationEndsAt
- closedAt
- result
- decision
- deployment
- resultsUrl
properties:
id:
type: string
name:
type: string
kind:
type: string
enum:
- send
- journey
status:
type: string
enum:
- draft
- scheduled
- sending
- observing
- analyzing
- decided
- inconclusive
- closed
- cancelled
projectId:
type: string
description: 'The email the experiment is stored on: the one it sends, or for a journey experiment the first email its split reaches.'
journey:
type:
- object
- 'null'
required:
- journeyId
- nodeId
- windowHours
properties:
journeyId:
type: string
nodeId:
type: string
description: The split step.
windowHours:
type: integer
description: How long each contact is measured from reaching the split.
description: Null for a send experiment.
hypothesis:
type: string
primaryMetric:
$ref: '#/components/schemas/ExperimentMetric'
secondaryMetrics:
type: array
items:
$ref: '#/components/schemas/ExperimentMetric'
guardrailMetrics:
type: array
items:
$ref: '#/components/schemas/ExperimentMetric'
analysis:
type: string
enum:
- fixed
- sequential
arms:
type: array
items:
$ref: '#/components/schemas/ExperimentArm'
createdAt:
type: integer
description: Epoch milliseconds, like every time below.
lockedAt:
type:
- integer
- 'null'
sendAt:
type: integer
observationEndsAt:
type:
- integer
- 'null'
closedAt:
type:
- integer
- 'null'
result:
type:
- object
- 'null'
description: What the statistics engine said in the latest analysis; null before the first.
required:
- outcome
- armKey
- final
- computedAt
properties:
outcome:
type: string
enum:
- invalid
- winner
- no_difference
- inconclusive
armKey:
type:
- string
- 'null'
description: The winning arm, for a winner.
final:
type: boolean
description: The analysis covers the whole observation window.
computedAt:
type: integer
decision:
type:
- object
- 'null'
description: What a person recorded; null until then.
required:
- outcome
- armKey
- pathIndex
- evidence
- rationale
- decidedAt
properties:
outcome:
type: string
enum:
- winner
- inconclusive
- no_difference
armKey:
type:
- string
- 'null'
pathIndex:
type:
- integer
- 'null'
description: For a journey experiment's winner, the path everyone can be sent down. Sending them is done by a person in the journey editor, never automatically.
evidence:
type: string
enum:
- significant
- not_significant
- invalid
description: What the statistics said when the decision was recorded.
rationale:
type: string
decidedAt:
type: integer
deployment:
description: How the winner was put to use; null until then. A path deployment has no email.
oneOf:
- type: 'null'
- type: object
required:
- kind
- projectId
- armKey
- deployedAt
properties:
kind:
const: email
projectId:
type: string
description: The email made from the winning arm.
armKey:
type: string
deployedAt:
type: integer
- type: object
required:
- kind
- pathIndex
- armKey
- deployedAt
properties:
kind:
const: path
pathIndex:
type: integer
armKey:
type: string
deployedAt:
type: integer
resultsUrl:
type: string
format: uri
description: The results page in the dashboard.
ExperimentReport:
type: object
additionalProperties: true
description: 'The dashboard''s report export (aggregates only, never a contact): pre-registration, sample design, delivery, the latest analysis snapshot with each arm''s metrics, intervals and quality checks, the daily history and the decision. Fields not listed here may be added.'
required:
- experiment
- preRegistration
- arms
- results
- history
- decision
- journey
- concurrentExperiments
- generatedAt
properties:
experiment:
type: object
preRegistration:
type: object
arms:
type: array
items:
type: object
rewards:
type:
- object
- 'null'
description: Per-arm reward codes issued and failed; null without a rewarded arm or before the send.
properties:
arms:
type: array
items:
type: object
properties:
key:
type: string
issued:
type: integer
failed:
type: integer
money:
type:
- object
- 'null'
description: Attributed revenue, AOV, promotional cost, refunds and code redemption per arm per currency; null before an analysis that has them.
properties:
currency:
type:
- string
- 'null'
description: The experiment's currency; other currencies are listed apart and never added in.
note:
type: string
description: Revenue excludes taxes and shipping; discounts are already reflected; not a profit calculation.
arms:
type: array
description: One entry per arm per currency with orders (the experiment's currency always).
items:
type: object
properties:
armKey:
type: string
currency:
type: string
denominator:
type: integer
description: Delivered recipients (assigned for the holdout) that revenue per delivered divides by.
purchasers:
type: integer
description: Recipients with at least one attributed order in the window.
orders:
type: integer
description: Attributed orders in the window.
grossRevenue:
type: number
description: Merchandise after discounts, without taxes and shipping, before refunds.
refunds:
type: number
description: Merchandise refunded in the window, subtracted from revenue.
refundedOrders:
type: integer
description: Orders with a refund in the window.
revenue:
type: number
description: grossRevenue minus refunds.
aov:
type:
- number
- 'null'
description: 'Average order value: grossRevenue / orders.'
revenuePerDelivered:
type:
- number
- 'null'
description: revenue / denominator.
discount:
type: number
description: The orders' discount-code amounts on the goods.
freeShippingOrders:
type: integer
description: Orders that used a free-shipping code.
shippingSubsidy:
type:
- number
- 'null'
description: The arm reward's configured shipping subsidy estimate per order.
promoCost:
type: number
description: 'Promotional cost granted: discount + shippingSubsidy × freeShippingOrders.'
redemption:
type: array
description: Per rewarded arm, codes redeemed on an attributed order over codes issued.
items:
type: object
properties:
armKey:
type: string
issued:
type: integer
redeemed:
type: integer
rate:
type:
- number
- 'null'
description: redeemed / issued; null when none were issued.
results:
type:
- object
- 'null'
description: The latest analysis snapshot; null before the first.
properties:
orders:
type: object
description: Attributed orders in the window by attribution rule (discount_code, utm, checkout_token, email_match; email_match is probable) and those left out.
properties:
byRule:
type: object
additionalProperties:
type: integer
excluded:
type: object
properties:
otherCurrency:
type: integer
money:
type: object
description: The same money summary as the top-level money, without currency and note.
history:
type: array
items:
type: object
decision:
type:
- object
- 'null'
journey:
type:
- object
- 'null'
description: A journey experiment's design and enrollment; null for a send experiment.
required:
- journeyId
- deleted
- nodeId
- windowHours
- enrollmentEndsAt
- maturing
- assignedByDay
- edits
properties:
journeyId:
type: string
deleted:
type: boolean
description: The journey was deleted after the experiment ended; its results stay.
nodeId:
type: string
windowHours:
type: integer
enrollmentEndsAt:
type:
- integer
- 'null'
maturing:
type: integer
description: Assigned contacts still inside their window, not yet counted.
assignedByDay:
type: array
items:
type: object
properties:
day:
type: string
arms:
type: object
additionalProperties:
type: integer
edits:
type: array
description: Changes to the paths' steps saved while the experiment observed, oldest first.
items:
type: object
concurrentExperiments:
type: array
description: Other experiments the quality checks tested this one against for an interaction.
items:
type: object
required:
- id
- name
- projectId
- journeyId
properties:
id:
type: string
name:
type:
- string
- 'null'
projectId:
type:
- string
- 'null'
journeyId:
type:
- string
- 'null'
generatedAt:
type: integer
ExperimentMetric:
type: string
enum:
- purchase_conversion
- revenue_per_delivered
- unique_click_rate
- response_rate
- reveal_rate
- post_reveal_click_rate
- open_rate
- goal_rate
- unsubscribe_rate
- complaint_rate
description: '`goal_rate` is for journey experiments only.'
responses:
BadRequest:
description: Invalid request
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Error'
example:
type: about:blank
title: Bad Request
status: 400
detail: A valid `email` is required
error: A valid `email` is required
Unauthorized:
description: Missing or invalid API key
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Error'
example:
type: about:blank
title: Unauthorized
status: 401
detail: 'Missing or invalid Authorization: Bearer <apiKey>'
error: 'Missing or invalid Authorization: Bearer <apiKey>'
RateLimited:
description: Too many requests for this key
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Error'
example:
type: about:blank
title: Too Many Requests
status: 429
detail: Too many requests
error: Too many requests
NotFound:
description: Not found, or not this account's
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Error'
example:
type: about:blank
title: Not Found
status: 404
detail: List not found
error: List not found
parameters:
Id:
name: id
in: path
required: true
schema:
type: string
securitySchemes:
apiKey:
type: http
scheme: bearer
description: An API key from Dashboard → Developers (mia_live_…).
x-refined-from:
- mailinapp-com-openapi.json
- mailinapp-com-openapi.json
x-provenance:
method: harvested
publisher: MailInApp
source: https://mailinapp.com/openapi.json
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)