openapi: 3.1.0
info:
title: Iterable Export Campaigns Experiments API
description: The Iterable Export API enables developers to extract data from Iterable projects for analytics, reporting, and data warehousing purposes. It provides export endpoints that allow retrieval of user data, event data, campaign metrics, and message engagement information in CSV and JSON formats. The export endpoints support filtering by date ranges and event types, making it possible to build custom reporting pipelines and synchronize Iterable data with external business intelligence tools.
version: 1.0.0
contact:
name: Iterable Support
url: https://support.iterable.com
termsOfService: https://iterable.com/trust/terms-of-service
servers:
- url: https://api.iterable.com/api
description: US Data Center (USDC)
- url: https://api.eu.iterable.com/api
description: European Data Center (EDC)
security:
- apiKeyAuth: []
tags:
- name: Experiments
description: Retrieve experiment configurations and metrics for A/B tests running across campaigns.
paths:
/experiments/metrics:
get:
operationId: getExperimentMetrics
summary: Get experiment metrics
description: Retrieves experiment metrics for A/B tests. Supports multiple experiment IDs and campaign IDs as query parameters, up to 200 total.
tags:
- Experiments
parameters:
- name: experimentId
in: query
description: One or more experiment IDs
schema:
type: array
items:
type: integer
- name: campaignId
in: query
description: One or more campaign IDs
schema:
type: array
items:
type: integer
responses:
'200':
description: Experiment metrics as CSV
content:
text/csv:
schema:
type: string
'401':
description: Unauthorized
components:
securitySchemes:
apiKeyAuth:
type: apiKey
in: header
name: Api-Key
description: Iterable API key passed in the Api-Key header. API keys can be created and managed in the Iterable project settings.
externalDocs:
description: Iterable API Endpoints and Sample Payloads
url: https://support.iterable.com/hc/en-us/articles/204780579-Iterable-API-Endpoints-and-Sample-Payloads